BOSS 7.1.0
BESIII Offline Software System
|
#include <ParticleIDBase.h>
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 |
EvtRecTrack * | PidTrk () 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 |
Static Protected Attributes | |
static std::string | path = "" |
Definition at line 21 of file ParticleIDBase.h.
ParticleIDBase::ParticleIDBase | ( | ) |
Definition at line 43 of file ParticleIDBase.cxx.
|
inlinevirtual |
Definition at line 26 of file ParticleIDBase.h.
|
inline |
Definition at line 79 of file ParticleIDBase.h.
|
pure virtual |
double ParticleIDBase::charge | ( | ) |
Definition at line 116 of file ParticleIDBase.cxx.
Referenced by DedxPID::CorrDedx(), TofCorrPID::offsetTof(), TofEPID::offsetTofE(), DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCorrPID::sigmaTof(), and TofEPID::sigmaTofE().
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
Referenced by setChiMaxCut(), and setChiMinCut().
|
inline |
Definition at line 40 of file ParticleIDBase.h.
Referenced by TofCorrPID::correlationCheck(), and TofCorrPID::particleIDCalculation().
|
inline |
Definition at line 38 of file ParticleIDBase.h.
Referenced by TofCorrPID::correlationCheck(), DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), and TofPID::particleIDCalculation().
|
inline |
Definition at line 91 of file ParticleIDBase.h.
|
inline |
Definition at line 97 of file ParticleIDBase.h.
|
inline |
Definition at line 44 of file ParticleIDBase.h.
Referenced by TofCPID::calculate(), DedxPID::CorrDedx(), TofCorrPID::init(), TofCPID::offsetTofC(), DedxPID::particleIDCalculation(), TofCorrPID::sigmaTof(), and TofCPID::sigmaTofC().
|
pure virtual |
double ParticleIDBase::interpolation | ( | double * | x, |
double * | y, | ||
double | x1 | ||
) |
Definition at line 125 of file ParticleIDBase.cxx.
|
pure virtual |
|
protectedpure virtual |
|
inline |
Definition at line 87 of file ParticleIDBase.h.
|
inline |
Definition at line 89 of file ParticleIDBase.h.
|
inline |
Definition at line 88 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), TestV::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
|
inline |
Definition at line 98 of file ParticleIDBase.h.
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
Referenced by probCalculate().
|
inline |
Definition at line 80 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), and ParticleID::LikelihoodCalculation().
|
inline |
Definition at line 83 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), inclphi::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), rhopi::execute(), ParticleID::LikelihoodCalculation(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
|
inline |
Definition at line 81 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), and ParticleID::LikelihoodCalculation().
|
inline |
Definition at line 82 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), rhopi::execute(), ParticleID::LikelihoodCalculation(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
|
inline |
Definition at line 76 of file ParticleIDBase.h.
|
inline |
Definition at line 78 of file ParticleIDBase.h.
|
inline |
Definition at line 77 of file ParticleIDBase.h.
Referenced by Rhopi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), Single::execute(), Signal::execute(), and TestV::execute().
|
inline |
Definition at line 84 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), incllambda::execute(), DQAPi2p2::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), ParticleID::LikelihoodCalculation(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
double ParticleIDBase::p | ( | ) |
Definition at line 100 of file ParticleIDBase.cxx.
Referenced by DedxPID::cal_par(), DedxPID::iterate(), TofCorrPID::particleIDCalculation(), and probCalculate().
|
protectedpure virtual |
double ParticleIDBase::pdfCalculate | ( | double | offset, |
double | sigma | ||
) |
Definition at line 91 of file ParticleIDBase.cxx.
Referenced by TofCorrPID::correlationCheck(), ParticleID::LikelihoodCalculation(), DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), and TofPID::particleIDCalculation().
|
inline |
Definition at line 42 of file ParticleIDBase.h.
Referenced by TofCorrPID::correlationCheck(), ParticleID::LikelihoodCalculation(), DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), and TofPID::particleIDCalculation().
|
inline |
Definition at line 36 of file ParticleIDBase.h.
Referenced by DedxPID::particleIDCalculation(), EmcPID::particleIDCalculation(), MucPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), TofPID::particleIDCalculation(), and TofQPID::particleIDCalculation().
double ParticleIDBase::pol2 | ( | double | x, |
double * | par | ||
) |
double ParticleIDBase::pol3 | ( | double | x, |
double * | par | ||
) |
double ParticleIDBase::pol4 | ( | double | x, |
double * | par | ||
) |
|
pure virtual |
double ParticleIDBase::probCalculate | ( | double | chi2, |
int | n | ||
) |
Definition at line 83 of file ParticleIDBase.cxx.
Referenced by DedxPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), and TofPID::particleIDCalculation().
double ParticleIDBase::pt | ( | ) |
Definition at line 108 of file ParticleIDBase.cxx.
void ParticleIDBase::set_path | ( | const char * | s_path = 0 | ) |
Definition at line 55 of file ParticleIDBase.cxx.
Referenced by ParticleIDBase().
|
inline |
Definition at line 105 of file ParticleIDBase.h.
|
inline |
Definition at line 41 of file ParticleIDBase.h.
Referenced by ParticleID::init().
|
inline |
Definition at line 39 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), TestV::execute(), ParticleID::init(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), LocalProtonSelector::operator()(), and TofPID::particleIDCalculation().
|
inline |
Definition at line 43 of file ParticleIDBase.h.
Referenced by TofPID::particleIDCalculation().
|
inline |
Definition at line 37 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), TestV::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), LocalProtonSelector::operator()(), and TofPID::particleIDCalculation().
|
inline |
Definition at line 45 of file ParticleIDBase.h.
|
inline |
Definition at line 96 of file ParticleIDBase.h.
|
inline |
Definition at line 95 of file ParticleIDBase.h.
|
inline |
Definition at line 93 of file ParticleIDBase.h.
|
inline |
Definition at line 94 of file ParticleIDBase.h.
|
inline |
Definition at line 92 of file ParticleIDBase.h.
|
inline |
Definition at line 64 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), TagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), TestV::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
|
inline |
Definition at line 72 of file ParticleIDBase.h.
Referenced by BeamParams::execute().
|
inline |
Definition at line 73 of file ParticleIDBase.h.
Referenced by BeamParams::execute().
|
inline |
Definition at line 65 of file ParticleIDBase.h.
|
inline |
Definition at line 66 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), and TestV::execute().
|
inline |
Definition at line 67 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpiDEDX::execute(), DQAPi2p2::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), DTagSetAlg::execute(), LTagSetAlg::execute(), XYZTagSetAlg::execute(), BeamParams::execute(), Single::execute(), rhopi::execute(), Signal::execute(), and TestV::execute().
|
inline |
Definition at line 70 of file ParticleIDBase.h.
|
inline |
Definition at line 71 of file ParticleIDBase.h.
Referenced by Rhopi::execute(), TagSetAlg::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), LocalLambdaSelector::operator()(), and LocalProtonSelector::operator()().
|
inline |
Definition at line 68 of file ParticleIDBase.h.
Referenced by DQAKsKpiDEDX::execute(), BeamParams::execute(), and Single::execute().
|
inline |
Definition at line 69 of file ParticleIDBase.h.
Referenced by DQAKsKpiDEDX::execute(), and BeamParams::execute().
double ParticleIDBase::velc | ( | ) |
Definition at line 77 of file ParticleIDBase.cxx.
Referenced by Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCPID::particleIDCalculation(), and TofEPID::particleIDCalculation().
double ParticleIDBase::xmass | ( | int | n | ) |
Definition at line 71 of file ParticleIDBase.cxx.
|
staticprotected |
Definition at line 102 of file ParticleIDBase.h.
Referenced by TofCPID::calculate(), MucPID::init(), DedxPID::inputpar(), TofCorrPID::inputParameter(), ParticleIDBase(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), and set_path().