Belle II Software development
DedxPDFs Class Reference

dE/dx wire gain calibration constants More...

#include <DedxPDFs.h>

Inheritance diagram for DedxPDFs:

Public Member Functions

 DedxPDFs ()
 Default constructor.
 
 DedxPDFs (TFile *pdffile)
 Constructor.
 
 ~DedxPDFs ()
 Destructor.
 
const TH2F * getPXDPDF (int part, bool truncated) const
 Return pdf for the PXD dE/dx for the given particle.
 
const TH2F * getSVDPDF (int part, bool truncated) const
 Return pdf for the PXD dE/dx for the given particle.
 
const TH2F * getCDCPDF (int part, bool truncated) const
 Return pdf for the PXD dE/dx for the given particle.
 

Private Member Functions

 ClassDef (DedxPDFs, 2)
 ClassDef.
 

Private Attributes

std::vector< TH2F > m_PXDpdfs
 2D histograms of PXD dE/dx versus momentum
 
std::vector< TH2F > m_SVDpdfs
 2D histograms of SVD dE/dx versus momentum
 
std::vector< TH2F > m_CDCpdfs
 2D histograms of CDC dE/dx versus momentum
 
std::vector< TH2F > m_PXDpdfs_trunc
 2D histograms of PXD dE/dx versus momentum
 
std::vector< TH2F > m_SVDpdfs_trunc
 2D histograms of SVD dE/dx versus momentum
 
std::vector< TH2F > m_CDCpdfs_trunc
 2D histograms of CDC dE/dx versus momentum
 

Detailed Description

dE/dx wire gain calibration constants

Definition at line 27 of file DedxPDFs.h.

Constructor & Destructor Documentation

◆ DedxPDFs() [1/2]

DedxPDFs ( )
inline

Default constructor.

Definition at line 34 of file DedxPDFs.h.

34: m_PXDpdfs() {};
std::vector< TH2F > m_PXDpdfs
2D histograms of PXD dE/dx versus momentum
Definition: DedxPDFs.h:103

◆ DedxPDFs() [2/2]

DedxPDFs ( TFile *  pdffile)
inlineexplicit

Constructor.

Definition at line 39 of file DedxPDFs.h.

40 {
41 for (unsigned int iPart = 0; iPart < Const::ChargedStable::c_SetSize; iPart++) {
42 const int pdgCode = Const::chargedStableSet.at(iPart).getPDGCode();
43
44 TH2F pxdhist;
45 pdffile->Get(TString::Format("hist_d0_%d", pdgCode))->Copy(pxdhist);
46 m_PXDpdfs.push_back(pxdhist);
47
48 TH2F pxdhist_trunc;
49 pdffile->Get(TString::Format("hist_d0_%d_trunc", pdgCode))->Copy(pxdhist_trunc);
50 m_PXDpdfs_trunc.push_back(pxdhist_trunc);
51
52 TH2F svdhist;
53 pdffile->Get(TString::Format("hist_d1_%d", pdgCode))->Copy(svdhist);
54 m_SVDpdfs.push_back(svdhist);
55
56 TH2F svdhist_trunc;
57 pdffile->Get(TString::Format("hist_d1_%d_trunc", pdgCode))->Copy(svdhist_trunc);
58 m_SVDpdfs_trunc.push_back(svdhist_trunc);
59
60 TH2F cdchist;
61 pdffile->Get(TString::Format("hist_d2_%d", pdgCode))->Copy(cdchist);
62 m_CDCpdfs.push_back(cdchist);
63
64 TH2F cdchist_trunc;
65 pdffile->Get(TString::Format("hist_d2_%d_trunc", pdgCode))->Copy(cdchist_trunc);
66 m_CDCpdfs_trunc.push_back(cdchist_trunc);
67 }
68 };
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
Definition: Const.h:615
const ParticleType & at(unsigned int index) const
Return particle at given index, or end() if out of range.
Definition: Const.h:549
int getPDGCode() const
PDG code.
Definition: Const.h:473
static const ParticleSet chargedStableSet
set of charged stable particles
Definition: Const.h:618
std::vector< TH2F > m_CDCpdfs_trunc
2D histograms of CDC dE/dx versus momentum
Definition: DedxPDFs.h:109
std::vector< TH2F > m_PXDpdfs_trunc
2D histograms of PXD dE/dx versus momentum
Definition: DedxPDFs.h:107
std::vector< TH2F > m_CDCpdfs
2D histograms of CDC dE/dx versus momentum
Definition: DedxPDFs.h:105
std::vector< TH2F > m_SVDpdfs_trunc
2D histograms of SVD dE/dx versus momentum
Definition: DedxPDFs.h:108
std::vector< TH2F > m_SVDpdfs
2D histograms of SVD dE/dx versus momentum
Definition: DedxPDFs.h:104

◆ ~DedxPDFs()

~DedxPDFs ( )
inline

Destructor.

Definition at line 73 of file DedxPDFs.h.

73{};

Member Function Documentation

◆ getCDCPDF()

const TH2F * getCDCPDF ( int  part,
bool  truncated 
) const
inline

Return pdf for the PXD dE/dx for the given particle.

Parameters
partparticle number (as in Const::ChargedStable::c_SetSize)
truncatedis truncated or not

Definition at line 97 of file DedxPDFs.h.

98 {
99 return truncated ? &m_CDCpdfs_trunc[part] : &m_CDCpdfs[part];
100 }

◆ getPXDPDF()

const TH2F * getPXDPDF ( int  part,
bool  truncated 
) const
inline

Return pdf for the PXD dE/dx for the given particle.

Parameters
partparticle number (as in Const::ChargedStable::c_SetSize)
truncatedis truncated or not

Definition at line 79 of file DedxPDFs.h.

80 {
81 return truncated ? &m_PXDpdfs_trunc[part] : &m_PXDpdfs[part];
82 }

◆ getSVDPDF()

const TH2F * getSVDPDF ( int  part,
bool  truncated 
) const
inline

Return pdf for the PXD dE/dx for the given particle.

Parameters
partparticle number (as in Const::ChargedStable::c_SetSize)
truncatedis truncated or not

Definition at line 88 of file DedxPDFs.h.

89 {
90 return truncated ? &m_SVDpdfs_trunc[part] : &m_SVDpdfs[part];
91 }

Member Data Documentation

◆ m_CDCpdfs

std::vector<TH2F> m_CDCpdfs
private

2D histograms of CDC dE/dx versus momentum

Definition at line 105 of file DedxPDFs.h.

◆ m_CDCpdfs_trunc

std::vector<TH2F> m_CDCpdfs_trunc
private

2D histograms of CDC dE/dx versus momentum

Definition at line 109 of file DedxPDFs.h.

◆ m_PXDpdfs

std::vector<TH2F> m_PXDpdfs
private

2D histograms of PXD dE/dx versus momentum

Definition at line 103 of file DedxPDFs.h.

◆ m_PXDpdfs_trunc

std::vector<TH2F> m_PXDpdfs_trunc
private

2D histograms of PXD dE/dx versus momentum

Definition at line 107 of file DedxPDFs.h.

◆ m_SVDpdfs

std::vector<TH2F> m_SVDpdfs
private

2D histograms of SVD dE/dx versus momentum

Definition at line 104 of file DedxPDFs.h.

◆ m_SVDpdfs_trunc

std::vector<TH2F> m_SVDpdfs_trunc
private

2D histograms of SVD dE/dx versus momentum

Definition at line 108 of file DedxPDFs.h.


The documentation for this class was generated from the following file: