BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ParticleIDBase Class Referenceabstract

#include <ParticleIDBase.h>

Inheritance diagram for ParticleIDBase:

Public Member Functions

 ParticleIDBase ()
virtual ~ParticleIDBase ()
virtual void init ()=0
virtual void calculate ()=0
virtual bool IsPidInfoValid () const =0
virtual double chi (int n) const =0
virtual double prob (int n) const =0
virtual int ndof () const =0
EvtRecTrackPidTrk () const
void setRecTrack (EvtRecTrack *trk)
double chiMinCut () const
void setChiMinCut (const double chi=4)
double chiMaxCut () const
void setChiMaxCut (const double chi=6)
double pdfMinSigmaCut () const
void setPdfMinSigmaCut (const double pdf=4)
double getRunNo () const
void setRunNo (const double runh=8093)
double p ()
double pt ()
double charge ()
double xmass (int n)
double velc ()
double probCalculate (double chi2, int n)
double pdfCalculate (double offset, double sigma)
double interpolation (double *x, double *y, double x1)
double pol2 (double x, double *par)
double pol3 (double x, double *par)
double pol4 (double x, double *par)
int useDedx () const
int useTof () const
int useTof1 () const
int useTof2 () const
int useTofE () const
int useTofQ () const
int useTofC () const
int useTofCorr () const
int useEmc () const
int useMuc () const
int onlyPionKaon () const
int onlyPionKaonProton () const
int onlyPionKaonElectron () const
int all () const
int onlyElectron () const
int onlyMuon () const
int onlyPion () const
int onlyKaon () const
int onlyProton () const
int methodLikelihood () const
int methodProbability () const
int methodNeuronNetwork () const
int dedxValid () const
int tofValid () const
int tofeValid () const
int tofqValid () const
int tofcValid () const
int tofcorrValid () const
int emcValid () const
int mucValid () const
void set_path (const char *s_path=0)
void set_path (std::string s_path)
 ParticleIDBase ()
virtual ~ParticleIDBase ()
virtual void init ()=0
virtual void calculate ()=0
virtual bool IsPidInfoValid () const =0
virtual double chi (int n) const =0
virtual double prob (int n) const =0
virtual int ndof () const =0
EvtRecTrackPidTrk () const
void setRecTrack (EvtRecTrack *trk)
double chiMinCut () const
void setChiMinCut (const double chi=4)
double chiMaxCut () const
void setChiMaxCut (const double chi=6)
double pdfMinSigmaCut () const
void setPdfMinSigmaCut (const double pdf=4)
double getRunNo () const
void setRunNo (const double runh=8093)
double p ()
double pt ()
double charge ()
double xmass (int n)
double velc ()
double probCalculate (double chi2, int n)
double pdfCalculate (double offset, double sigma)
double interpolation (double *x, double *y, double x1)
double pol2 (double x, double *par)
double pol3 (double x, double *par)
double pol4 (double x, double *par)
int useDedx () const
int useTof () const
int useTof1 () const
int useTof2 () const
int useTofE () const
int useTofQ () const
int useTofC () const
int useTofCorr () const
int useEmc () const
int useMuc () const
int onlyPionKaon () const
int onlyPionKaonProton () const
int onlyPionKaonElectron () const
int all () const
int onlyElectron () const
int onlyMuon () const
int onlyPion () const
int onlyKaon () const
int onlyProton () const
int methodLikelihood () const
int methodProbability () const
int methodNeuronNetwork () const
int dedxValid () const
int tofValid () const
int tofeValid () const
int tofqValid () const
int tofcValid () const
int tofcorrValid () const
int emcValid () const
int mucValid () const
void set_path (const char *s_path=0)
void set_path (std::string s_path)
 ParticleIDBase ()
virtual ~ParticleIDBase ()
virtual void init ()=0
virtual void calculate ()=0
virtual bool IsPidInfoValid () const =0
virtual double chi (int n) const =0
virtual double prob (int n) const =0
virtual int ndof () const =0
EvtRecTrackPidTrk () const
void setRecTrack (EvtRecTrack *trk)
double chiMinCut () const
void setChiMinCut (const double chi=4)
double chiMaxCut () const
void setChiMaxCut (const double chi=6)
double pdfMinSigmaCut () const
void setPdfMinSigmaCut (const double pdf=4)
double getRunNo () const
void setRunNo (const double runh=8093)
double p ()
double pt ()
double charge ()
double xmass (int n)
double velc ()
double probCalculate (double chi2, int n)
double pdfCalculate (double offset, double sigma)
double interpolation (double *x, double *y, double x1)
double pol2 (double x, double *par)
double pol3 (double x, double *par)
double pol4 (double x, double *par)
int useDedx () const
int useTof () const
int useTof1 () const
int useTof2 () const
int useTofE () const
int useTofQ () const
int useTofC () const
int useTofCorr () const
int useEmc () const
int useMuc () const
int onlyPionKaon () const
int onlyPionKaonProton () const
int onlyPionKaonElectron () const
int all () const
int onlyElectron () const
int onlyMuon () const
int onlyPion () const
int onlyKaon () const
int onlyProton () const
int methodLikelihood () const
int methodProbability () const
int methodNeuronNetwork () const
int dedxValid () const
int tofValid () const
int tofeValid () const
int tofqValid () const
int tofcValid () const
int tofcorrValid () const
int emcValid () const
int mucValid () const
void set_path (const char *s_path=0)
void set_path (std::string s_path)

Protected Member Functions

virtual int particleIDCalculation ()=0
virtual int LikelihoodCalculation ()=0
virtual int particleIDCalculation ()=0
virtual int LikelihoodCalculation ()=0
virtual int particleIDCalculation ()=0
virtual int LikelihoodCalculation ()=0

Static Protected Attributes

static std::string path = ""

Detailed Description

Constructor & Destructor Documentation

◆ ParticleIDBase() [1/3]

ParticleIDBase::ParticleIDBase ( )

Definition at line 42 of file ParticleIDBase.cxx.

42 {
43 m_trk = 0;
44 m_chimin_cut = 4;
45 m_chimax_cut = 6;
46 m_pdfsigmamin_cut = 99;
47
48#ifndef BEAN
49 if ( path.empty() ) set_path( 0 );
50#endif
51}
void set_path(const char *s_path=0)

◆ ~ParticleIDBase() [1/3]

virtual ParticleIDBase::~ParticleIDBase ( )
inlinevirtual

Definition at line 25 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

25{ ; }

◆ ParticleIDBase() [2/3]

ParticleIDBase::ParticleIDBase ( )

◆ ~ParticleIDBase() [2/3]

virtual ParticleIDBase::~ParticleIDBase ( )
inlinevirtual

◆ ParticleIDBase() [3/3]

ParticleIDBase::ParticleIDBase ( )

◆ ~ParticleIDBase() [3/3]

virtual ParticleIDBase::~ParticleIDBase ( )
inlinevirtual

Member Function Documentation

◆ all() [1/3]

int ParticleIDBase::all ( ) const
inline

Definition at line 80 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

80 {
81 return ( IDENTIFY_ELECTRON | IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
82 }

◆ all() [2/3]

int ParticleIDBase::all ( ) const
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

80 {
81 return ( IDENTIFY_ELECTRON | IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
82 }

◆ all() [3/3]

int ParticleIDBase::all ( ) const
inline

Definition at line 80 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

80 {
81 return ( IDENTIFY_ELECTRON | IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
82 }

◆ calculate() [1/3]

◆ calculate() [2/3]

◆ calculate() [3/3]

◆ charge() [1/3]

double ParticleIDBase::charge ( )

◆ charge() [2/3]

double ParticleIDBase::charge ( )

◆ charge() [3/3]

double ParticleIDBase::charge ( )

◆ chi() [1/3]

◆ chi() [2/3]

◆ chi() [3/3]

◆ chiMaxCut() [1/3]

double ParticleIDBase::chiMaxCut ( ) const
inline

◆ chiMaxCut() [2/3]

double ParticleIDBase::chiMaxCut ( ) const
inline

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

39{ return m_chimax_cut; }

◆ chiMaxCut() [3/3]

double ParticleIDBase::chiMaxCut ( ) const
inline

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

39{ return m_chimax_cut; }

◆ chiMinCut() [1/3]

◆ chiMinCut() [2/3]

double ParticleIDBase::chiMinCut ( ) const
inline

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

37{ return m_chimin_cut; }

◆ chiMinCut() [3/3]

double ParticleIDBase::chiMinCut ( ) const
inline

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

37{ return m_chimin_cut; }

◆ dedxValid() [1/3]

int ParticleIDBase::dedxValid ( ) const
inline

Definition at line 95 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

95{ return DEDX_VALID; }

◆ dedxValid() [2/3]

int ParticleIDBase::dedxValid ( ) const
inline

Definition at line 95 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

95{ return DEDX_VALID; }

◆ dedxValid() [3/3]

int ParticleIDBase::dedxValid ( ) const
inline

Definition at line 95 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

95{ return DEDX_VALID; }

◆ emcValid() [1/3]

int ParticleIDBase::emcValid ( ) const
inline

Definition at line 101 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

101{ return EMC_VALID; }

◆ emcValid() [2/3]

int ParticleIDBase::emcValid ( ) const
inline

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

101{ return EMC_VALID; }

◆ emcValid() [3/3]

int ParticleIDBase::emcValid ( ) const
inline

Definition at line 101 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

101{ return EMC_VALID; }

◆ getRunNo() [1/3]

◆ getRunNo() [2/3]

double ParticleIDBase::getRunNo ( ) const
inline

Definition at line 43 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

43{ return m_runno; }

◆ getRunNo() [3/3]

double ParticleIDBase::getRunNo ( ) const
inline

Definition at line 43 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

43{ return m_runno; }

◆ init() [1/3]

◆ init() [2/3]

◆ init() [3/3]

◆ interpolation() [1/3]

double ParticleIDBase::interpolation ( double * x,
double * y,
double x1 )

Definition at line 123 of file ParticleIDBase.cxx.

123 {
124 double c1 = ( y[0] - y[1] ) * ( x[1] - x[2] ) - ( x[0] - x[1] ) * ( y[1] - y[2] );
125 double c2 = ( x[0] * x[0] - x[1] * x[1] ) * ( x[1] - x[2] ) -
126 ( x[1] * x[1] - x[2] * x[2] ) * ( x[0] - x[1] );
127 double c = c1 / c2;
128 double b1 = ( y[0] - y[1] ) * ( x[1] * x[1] - x[2] * x[2] ) -
129 ( x[0] * x[0] - x[1] * x[1] ) * ( y[1] - y[2] );
130 double b2 = ( x[0] - x[1] ) * ( x[1] * x[1] - x[2] * x[2] ) -
131 ( x[1] - x[2] ) * ( x[0] * x[0] - x[1] * x[1] );
132 double b = b1 / b2;
133 double a = y[0] - b * x[0] - c * x[0] * x[0];
134 double y1 = a + b * x1 + c * x1 * x1;
135 return y1;
136}
Double_t x[10]

◆ interpolation() [2/3]

double ParticleIDBase::interpolation ( double * x,
double * y,
double x1 )

◆ interpolation() [3/3]

double ParticleIDBase::interpolation ( double * x,
double * y,
double x1 )

◆ IsPidInfoValid() [1/3]

◆ IsPidInfoValid() [2/3]

◆ IsPidInfoValid() [3/3]

◆ LikelihoodCalculation() [1/3]

virtual int ParticleIDBase::LikelihoodCalculation ( )
protectedpure virtual

◆ LikelihoodCalculation() [2/3]

virtual int ParticleIDBase::LikelihoodCalculation ( )
protectedpure virtual

◆ LikelihoodCalculation() [3/3]

virtual int ParticleIDBase::LikelihoodCalculation ( )
protectedpure virtual

◆ methodLikelihood() [1/3]

int ParticleIDBase::methodLikelihood ( ) const
inline

Definition at line 90 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

90{ return LIKELIHOOD_PID; }

◆ methodLikelihood() [2/3]

int ParticleIDBase::methodLikelihood ( ) const
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

90{ return LIKELIHOOD_PID; }

◆ methodLikelihood() [3/3]

int ParticleIDBase::methodLikelihood ( ) const
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

90{ return LIKELIHOOD_PID; }

◆ methodNeuronNetwork() [1/3]

int ParticleIDBase::methodNeuronNetwork ( ) const
inline

Definition at line 92 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

92{ return NEURONNETWORK_PID; }

◆ methodNeuronNetwork() [2/3]

int ParticleIDBase::methodNeuronNetwork ( ) const
inline

Definition at line 92 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

92{ return NEURONNETWORK_PID; }

◆ methodNeuronNetwork() [3/3]

int ParticleIDBase::methodNeuronNetwork ( ) const
inline

Definition at line 92 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

92{ return NEURONNETWORK_PID; }

◆ methodProbability() [1/3]

◆ methodProbability() [2/3]

int ParticleIDBase::methodProbability ( ) const
inline

Definition at line 91 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

91{ return PROBABILITY_PID; }

◆ methodProbability() [3/3]

int ParticleIDBase::methodProbability ( ) const
inline

Definition at line 91 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

91{ return PROBABILITY_PID; }

◆ mucValid() [1/3]

int ParticleIDBase::mucValid ( ) const
inline

Definition at line 102 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

102{ return MUC_VALID; }

◆ mucValid() [2/3]

int ParticleIDBase::mucValid ( ) const
inline

Definition at line 102 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

102{ return MUC_VALID; }

◆ mucValid() [3/3]

int ParticleIDBase::mucValid ( ) const
inline

Definition at line 102 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

102{ return MUC_VALID; }

◆ ndof() [1/3]

◆ ndof() [2/3]

◆ ndof() [3/3]

◆ onlyElectron() [1/3]

◆ onlyElectron() [2/3]

int ParticleIDBase::onlyElectron ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

83{ return IDENTIFY_ELECTRON; }

◆ onlyElectron() [3/3]

int ParticleIDBase::onlyElectron ( ) const
inline

Definition at line 83 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

83{ return IDENTIFY_ELECTRON; }

◆ onlyKaon() [1/3]

◆ onlyKaon() [2/3]

int ParticleIDBase::onlyKaon ( ) const
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

86{ return IDENTIFY_KAON; }

◆ onlyKaon() [3/3]

int ParticleIDBase::onlyKaon ( ) const
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

86{ return IDENTIFY_KAON; }

◆ onlyMuon() [1/3]

◆ onlyMuon() [2/3]

int ParticleIDBase::onlyMuon ( ) const
inline

Definition at line 84 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

84{ return IDENTIFY_MUON; }

◆ onlyMuon() [3/3]

int ParticleIDBase::onlyMuon ( ) const
inline

Definition at line 84 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

84{ return IDENTIFY_MUON; }

◆ onlyPion() [1/3]

◆ onlyPion() [2/3]

int ParticleIDBase::onlyPion ( ) const
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

85{ return IDENTIFY_PION; }

◆ onlyPion() [3/3]

int ParticleIDBase::onlyPion ( ) const
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

85{ return IDENTIFY_PION; }

◆ onlyPionKaon() [1/3]

int ParticleIDBase::onlyPionKaon ( ) const
inline

Definition at line 73 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

73{ return ( IDENTIFY_PION | IDENTIFY_KAON ); }

◆ onlyPionKaon() [2/3]

int ParticleIDBase::onlyPionKaon ( ) const
inline

Definition at line 73 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

73{ return ( IDENTIFY_PION | IDENTIFY_KAON ); }

◆ onlyPionKaon() [3/3]

int ParticleIDBase::onlyPionKaon ( ) const
inline

Definition at line 73 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

73{ return ( IDENTIFY_PION | IDENTIFY_KAON ); }

◆ onlyPionKaonElectron() [1/3]

int ParticleIDBase::onlyPionKaonElectron ( ) const
inline

Definition at line 77 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

77 {
78 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_ELECTRON );
79 }

◆ onlyPionKaonElectron() [2/3]

int ParticleIDBase::onlyPionKaonElectron ( ) const
inline

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

77 {
78 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_ELECTRON );
79 }

◆ onlyPionKaonElectron() [3/3]

int ParticleIDBase::onlyPionKaonElectron ( ) const
inline

Definition at line 77 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

77 {
78 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_ELECTRON );
79 }

◆ onlyPionKaonProton() [1/3]

int ParticleIDBase::onlyPionKaonProton ( ) const
inline

Definition at line 74 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

74 {
75 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
76 }

Referenced by DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), KsKpi::execute(), PPbar::execute(), Rhopi::execute(), and Single::execute().

◆ onlyPionKaonProton() [2/3]

int ParticleIDBase::onlyPionKaonProton ( ) const
inline

Definition at line 74 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

74 {
75 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
76 }

◆ onlyPionKaonProton() [3/3]

int ParticleIDBase::onlyPionKaonProton ( ) const
inline

Definition at line 74 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

74 {
75 return ( IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON );
76 }

◆ onlyProton() [1/3]

◆ onlyProton() [2/3]

int ParticleIDBase::onlyProton ( ) const
inline

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

87{ return IDENTIFY_PROTON; }

◆ onlyProton() [3/3]

int ParticleIDBase::onlyProton ( ) const
inline

Definition at line 87 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

87{ return IDENTIFY_PROTON; }

◆ p() [1/3]

double ParticleIDBase::p ( )

Definition at line 98 of file ParticleIDBase.cxx.

98 {
99 double val = 999;
100 if ( !m_trk ) return val;
101 if ( !m_trk->isMdcTrackValid() ) return val;
102 RecMdcTrack* mdcTrk = m_trk->mdcTrack();
103 val = mdcTrk->p();
104 return val;
105}

Referenced by DedxPID::cal_par(), DedxPID::iterate(), TofCorrPID::particleIDCalculation(), and probCalculate().

◆ p() [2/3]

double ParticleIDBase::p ( )

◆ p() [3/3]

double ParticleIDBase::p ( )

◆ particleIDCalculation() [1/3]

virtual int ParticleIDBase::particleIDCalculation ( )
protectedpure virtual

◆ particleIDCalculation() [2/3]

virtual int ParticleIDBase::particleIDCalculation ( )
protectedpure virtual

◆ particleIDCalculation() [3/3]

virtual int ParticleIDBase::particleIDCalculation ( )
protectedpure virtual

◆ pdfCalculate() [1/3]

double ParticleIDBase::pdfCalculate ( double offset,
double sigma )

Definition at line 89 of file ParticleIDBase.cxx.

89 {
90 // const double pi = 3.141592653589793238;
91 const double pi = M_PI;
92 const double twoPi = 2 * pi;
93 double chi2 = -0.5 * offset * offset / ( sigma * sigma );
94 double pdf = exp( chi2 ) / ( sigma * sqrt( twoPi ) );
95 return pdf;
96}
EvtComplex exp(const EvtComplex &c)
double pi
const double twoPi
Definition MdcSeg.cxx:32
#define M_PI
Definition TConstant.h:4

Referenced by TofCorrPID::correlationCheck(), ParticleID::LikelihoodCalculation(), DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), and TofPID::particleIDCalculation().

◆ pdfCalculate() [2/3]

double ParticleIDBase::pdfCalculate ( double offset,
double sigma )

◆ pdfCalculate() [3/3]

double ParticleIDBase::pdfCalculate ( double offset,
double sigma )

◆ pdfMinSigmaCut() [1/3]

◆ pdfMinSigmaCut() [2/3]

double ParticleIDBase::pdfMinSigmaCut ( ) const
inline

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

41{ return m_pdfsigmamin_cut; }

◆ pdfMinSigmaCut() [3/3]

double ParticleIDBase::pdfMinSigmaCut ( ) const
inline

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

41{ return m_pdfsigmamin_cut; }

◆ PidTrk() [1/3]

◆ PidTrk() [2/3]

EvtRecTrack * ParticleIDBase::PidTrk ( ) const
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

35{ return m_trk; }

◆ PidTrk() [3/3]

EvtRecTrack * ParticleIDBase::PidTrk ( ) const
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

35{ return m_trk; }

◆ pol2() [1/3]

double ParticleIDBase::pol2 ( double x,
double * par )

Definition at line 138 of file ParticleIDBase.cxx.

138 {
139 double y = x;
140 // return par[0] + (par[1] * y) +(par[2] * y * y);
141 return par[0] + y * ( par[1] + y * ( par[2] ) );
142}

◆ pol2() [2/3]

double ParticleIDBase::pol2 ( double x,
double * par )

◆ pol2() [3/3]

double ParticleIDBase::pol2 ( double x,
double * par )

◆ pol3() [1/3]

double ParticleIDBase::pol3 ( double x,
double * par )

Definition at line 144 of file ParticleIDBase.cxx.

144 {
145 double y = x;
146 // return par[0] + (par[1] * y) +(par[2] * y * y)+(par[3] * y * y*y);
147 return par[0] + y * ( par[1] + y * ( par[2] + y * ( par[3] ) ) );
148}

◆ pol3() [2/3]

double ParticleIDBase::pol3 ( double x,
double * par )

◆ pol3() [3/3]

double ParticleIDBase::pol3 ( double x,
double * par )

◆ pol4() [1/3]

double ParticleIDBase::pol4 ( double x,
double * par )

Definition at line 150 of file ParticleIDBase.cxx.

150 {
151 double y = x;
152 // return par[0] + (par[1] * y) +(par[2] * y * y)+(par[3] * y * y*y) + (par[4] * y *
153 // y*y*y);
154 return par[0] + y * ( par[1] + y * ( par[2] + y * ( par[3] + y * ( par[4] ) ) ) );
155}

◆ pol4() [2/3]

double ParticleIDBase::pol4 ( double x,
double * par )

◆ pol4() [3/3]

double ParticleIDBase::pol4 ( double x,
double * par )

◆ prob() [1/3]

◆ prob() [2/3]

◆ prob() [3/3]

◆ probCalculate() [1/3]

double ParticleIDBase::probCalculate ( double chi2,
int n )

◆ probCalculate() [2/3]

double ParticleIDBase::probCalculate ( double chi2,
int n )

◆ probCalculate() [3/3]

double ParticleIDBase::probCalculate ( double chi2,
int n )

◆ pt() [1/3]

double ParticleIDBase::pt ( )

Definition at line 106 of file ParticleIDBase.cxx.

106 {
107 double val = 999;
108 if ( !m_trk ) return val;
109 if ( !m_trk->isMdcTrackValid() ) return val;
110 RecMdcTrack* mdcTrk = m_trk->mdcTrack();
111 val = mdcTrk->pxy();
112 return val;
113}

◆ pt() [2/3]

double ParticleIDBase::pt ( )

◆ pt() [3/3]

double ParticleIDBase::pt ( )

◆ set_path() [1/6]

void ParticleIDBase::set_path ( const char * s_path = 0)

Definition at line 53 of file ParticleIDBase.cxx.

53 {
54 if ( s_path ) { path = string( s_path ); }
55 else
56 {
57 char* env_path = getenv( "PARTICLEIDROOT" );
58 if ( !env_path )
59 {
60 cout << " ParticleIDBase::set_path ERROR:"
61 " the environment PARTICLEIDROOT not defined "
62 << endl;
63 exit( 1 );
64 }
65 path = string( env_path );
66 }
67}

Referenced by ParticleIDBase().

◆ set_path() [2/6]

void ParticleIDBase::set_path ( const char * s_path = 0)

◆ set_path() [3/6]

void ParticleIDBase::set_path ( const char * s_path = 0)

◆ set_path() [4/6]

void ParticleIDBase::set_path ( std::string s_path)
inline

Definition at line 110 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

110{ path = s_path; }

◆ set_path() [5/6]

void ParticleIDBase::set_path ( std::string s_path)
inline

◆ set_path() [6/6]

void ParticleIDBase::set_path ( std::string s_path)
inline

◆ setChiMaxCut() [1/3]

void ParticleIDBase::setChiMaxCut ( const double chi = 6)
inline

Definition at line 40 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

40{ m_chimax_cut = chi; }
virtual double chi(int n) const =0

Referenced by ParticleID::init().

◆ setChiMaxCut() [2/3]

void ParticleIDBase::setChiMaxCut ( const double chi = 6)
inline

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

40{ m_chimax_cut = chi; }

◆ setChiMaxCut() [3/3]

void ParticleIDBase::setChiMaxCut ( const double chi = 6)
inline

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

40{ m_chimax_cut = chi; }

◆ setChiMinCut() [1/3]

◆ setChiMinCut() [2/3]

void ParticleIDBase::setChiMinCut ( const double chi = 4)
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

38{ m_chimin_cut = chi; }

◆ setChiMinCut() [3/3]

void ParticleIDBase::setChiMinCut ( const double chi = 4)
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

38{ m_chimin_cut = chi; }

◆ setPdfMinSigmaCut() [1/3]

void ParticleIDBase::setPdfMinSigmaCut ( const double pdf = 4)
inline

Definition at line 42 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

42{ m_pdfsigmamin_cut = pdf; }

◆ setPdfMinSigmaCut() [2/3]

void ParticleIDBase::setPdfMinSigmaCut ( const double pdf = 4)
inline

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

42{ m_pdfsigmamin_cut = pdf; }

◆ setPdfMinSigmaCut() [3/3]

void ParticleIDBase::setPdfMinSigmaCut ( const double pdf = 4)
inline

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

42{ m_pdfsigmamin_cut = pdf; }

◆ setRecTrack() [1/3]

◆ setRecTrack() [2/3]

void ParticleIDBase::setRecTrack ( EvtRecTrack * trk)
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

36{ m_trk = trk; }

◆ setRecTrack() [3/3]

void ParticleIDBase::setRecTrack ( EvtRecTrack * trk)
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

36{ m_trk = trk; }

◆ setRunNo() [1/3]

void ParticleIDBase::setRunNo ( const double runh = 8093)
inline

Definition at line 44 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

44{ m_runno = runh; }

◆ setRunNo() [2/3]

void ParticleIDBase::setRunNo ( const double runh = 8093)
inline

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

44{ m_runno = runh; }

◆ setRunNo() [3/3]

void ParticleIDBase::setRunNo ( const double runh = 8093)
inline

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

44{ m_runno = runh; }

◆ tofcorrValid() [1/3]

int ParticleIDBase::tofcorrValid ( ) const
inline

Definition at line 100 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

100{ return TOFCorr_VALID; }

◆ tofcorrValid() [2/3]

int ParticleIDBase::tofcorrValid ( ) const
inline

Definition at line 100 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

100{ return TOFCorr_VALID; }

◆ tofcorrValid() [3/3]

int ParticleIDBase::tofcorrValid ( ) const
inline

Definition at line 100 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

100{ return TOFCorr_VALID; }

◆ tofcValid() [1/3]

int ParticleIDBase::tofcValid ( ) const
inline

Definition at line 99 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

99{ return TOFC_VALID; }

◆ tofcValid() [2/3]

int ParticleIDBase::tofcValid ( ) const
inline

Definition at line 99 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

99{ return TOFC_VALID; }

◆ tofcValid() [3/3]

int ParticleIDBase::tofcValid ( ) const
inline

Definition at line 99 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

99{ return TOFC_VALID; }

◆ tofeValid() [1/3]

int ParticleIDBase::tofeValid ( ) const
inline

Definition at line 97 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

97{ return TOFE_VALID; }

◆ tofeValid() [2/3]

int ParticleIDBase::tofeValid ( ) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

97{ return TOFE_VALID; }

◆ tofeValid() [3/3]

int ParticleIDBase::tofeValid ( ) const
inline

Definition at line 97 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

97{ return TOFE_VALID; }

◆ tofqValid() [1/3]

int ParticleIDBase::tofqValid ( ) const
inline

Definition at line 98 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

98{ return TOFQ_VALID; }

◆ tofqValid() [2/3]

int ParticleIDBase::tofqValid ( ) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

98{ return TOFQ_VALID; }

◆ tofqValid() [3/3]

int ParticleIDBase::tofqValid ( ) const
inline

Definition at line 98 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

98{ return TOFQ_VALID; }

◆ tofValid() [1/3]

int ParticleIDBase::tofValid ( ) const
inline

Definition at line 96 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

96{ return TOF_VALID; }

◆ tofValid() [2/3]

int ParticleIDBase::tofValid ( ) const
inline

Definition at line 96 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

96{ return TOF_VALID; }

◆ tofValid() [3/3]

int ParticleIDBase::tofValid ( ) const
inline

Definition at line 96 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

96{ return TOF_VALID; }

◆ useDedx() [1/3]

◆ useDedx() [2/3]

int ParticleIDBase::useDedx ( ) const
inline

Definition at line 61 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

61{ return USE_DEDX; }

◆ useDedx() [3/3]

int ParticleIDBase::useDedx ( ) const
inline

Definition at line 61 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

61{ return USE_DEDX; }

◆ useEmc() [1/3]

int ParticleIDBase::useEmc ( ) const
inline

Definition at line 69 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

69{ return USE_EMC; }

Referenced by BeamParams::execute().

◆ useEmc() [2/3]

int ParticleIDBase::useEmc ( ) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

69{ return USE_EMC; }

◆ useEmc() [3/3]

int ParticleIDBase::useEmc ( ) const
inline

Definition at line 69 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

69{ return USE_EMC; }

◆ useMuc() [1/3]

int ParticleIDBase::useMuc ( ) const
inline

Definition at line 70 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

70{ return USE_MUC; }

Referenced by BeamParams::execute().

◆ useMuc() [2/3]

int ParticleIDBase::useMuc ( ) const
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

70{ return USE_MUC; }

◆ useMuc() [3/3]

int ParticleIDBase::useMuc ( ) const
inline

Definition at line 70 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

70{ return USE_MUC; }

◆ useTof() [1/3]

int ParticleIDBase::useTof ( ) const
inline

Definition at line 62 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

62{ return USE_TOF; }

◆ useTof() [2/3]

int ParticleIDBase::useTof ( ) const
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

62{ return USE_TOF; }

◆ useTof() [3/3]

int ParticleIDBase::useTof ( ) const
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

62{ return USE_TOF; }

◆ useTof1() [1/3]

◆ useTof1() [2/3]

int ParticleIDBase::useTof1 ( ) const
inline

Definition at line 63 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

63{ return USE_TOF1; }

◆ useTof1() [3/3]

int ParticleIDBase::useTof1 ( ) const
inline

Definition at line 63 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

63{ return USE_TOF1; }

◆ useTof2() [1/3]

◆ useTof2() [2/3]

int ParticleIDBase::useTof2 ( ) const
inline

Definition at line 64 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

64{ return USE_TOF2; }

◆ useTof2() [3/3]

int ParticleIDBase::useTof2 ( ) const
inline

Definition at line 64 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

64{ return USE_TOF2; }

◆ useTofC() [1/3]

int ParticleIDBase::useTofC ( ) const
inline

Definition at line 67 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

67{ return USE_TOFC; }

◆ useTofC() [2/3]

int ParticleIDBase::useTofC ( ) const
inline

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

67{ return USE_TOFC; }

◆ useTofC() [3/3]

int ParticleIDBase::useTofC ( ) const
inline

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

67{ return USE_TOFC; }

◆ useTofCorr() [1/3]

◆ useTofCorr() [2/3]

int ParticleIDBase::useTofCorr ( ) const
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

68{ return USE_TOFCorr; }

◆ useTofCorr() [3/3]

int ParticleIDBase::useTofCorr ( ) const
inline

Definition at line 68 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

68{ return USE_TOFCorr; }

◆ useTofE() [1/3]

int ParticleIDBase::useTofE ( ) const
inline

◆ useTofE() [2/3]

int ParticleIDBase::useTofE ( ) const
inline

Definition at line 65 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

65{ return USE_TOFE; }

◆ useTofE() [3/3]

int ParticleIDBase::useTofE ( ) const
inline

Definition at line 65 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

65{ return USE_TOFE; }

◆ useTofQ() [1/3]

int ParticleIDBase::useTofQ ( ) const
inline

Definition at line 66 of file Analysis/ParticleID/include/ParticleID/ParticleIDBase.h.

66{ return USE_TOFQ; }

Referenced by BeamParams::execute(), and DQAKsKpiDEDX::execute().

◆ useTofQ() [2/3]

int ParticleIDBase::useTofQ ( ) const
inline

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-dbg/include/ParticleID/ParticleIDBase.h.

66{ return USE_TOFQ; }

◆ useTofQ() [3/3]

int ParticleIDBase::useTofQ ( ) const
inline

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-opt/include/ParticleID/ParticleIDBase.h.

66{ return USE_TOFQ; }

◆ velc() [1/3]

double ParticleIDBase::velc ( )

Definition at line 75 of file ParticleIDBase.cxx.

75 {
76 // double vel = 29.9792458; // tof_path unit in cm.
77 double vel = 299.792458; // tof path unit in mm
78 return vel;
79}

Referenced by Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCPID::particleIDCalculation(), and TofEPID::particleIDCalculation().

◆ velc() [2/3]

double ParticleIDBase::velc ( )

◆ velc() [3/3]

double ParticleIDBase::velc ( )

◆ xmass() [1/3]

double ParticleIDBase::xmass ( int n)

Definition at line 69 of file ParticleIDBase.cxx.

69 {
70 double mass[5] = { 0.000511, 0.105658, 0.139570, 0.493677, 0.938272 };
71 if ( n < 0 || n >= 5 ) return 0.0;
72 return mass[n];
73}
double mass
const Int_t n

◆ xmass() [2/3]

double ParticleIDBase::xmass ( int n)

◆ xmass() [3/3]

double ParticleIDBase::xmass ( int n)

Member Data Documentation

◆ path


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