#include <ParticleIDBase.h>
|
static std::string | path = "" |
|
Definition at line 21 of file ParticleIDBase.h.
◆ ParticleIDBase()
ParticleIDBase::ParticleIDBase |
( |
| ) |
|
Definition at line 43 of file ParticleIDBase.cxx.
44{
45 m_trk = 0;
46 m_chimin_cut = 4;
47 m_pdfsigmamin_cut=99;
48
49#ifndef BEAN
51#endif
52}
void set_path(const char *s_path=0)
◆ ~ParticleIDBase()
virtual ParticleIDBase::~ParticleIDBase |
( |
| ) |
|
|
inlinevirtual |
◆ all()
int ParticleIDBase::all |
( |
| ) |
const |
|
inline |
Definition at line 78 of file ParticleIDBase.h.
78{return (IDENTIFY_ELECTRON | IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON);}
◆ calculate()
virtual void ParticleIDBase::calculate |
( |
| ) |
|
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ charge()
double ParticleIDBase::charge |
( |
| ) |
|
◆ chi()
virtual double ParticleIDBase::chi |
( |
int |
n | ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
Referenced by setChiMinCut().
◆ chiMinCut()
double ParticleIDBase::chiMinCut |
( |
| ) |
const |
|
inline |
◆ dedxValid()
int ParticleIDBase::dedxValid |
( |
| ) |
const |
|
inline |
◆ emcValid()
int ParticleIDBase::emcValid |
( |
| ) |
const |
|
inline |
◆ getRunNo()
double ParticleIDBase::getRunNo |
( |
| ) |
const |
|
inline |
◆ init()
virtual void ParticleIDBase::init |
( |
| ) |
|
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ interpolation()
double ParticleIDBase::interpolation |
( |
double * |
x, |
|
|
double * |
y, |
|
|
double |
x1 |
|
) |
| |
Definition at line 124 of file ParticleIDBase.cxx.
124 {
125 double c1 = (y[0]-y[1])*(x[1]-x[2])-(
x[0]-
x[1])*(y[1]-y[2]);
126 double c2 = (
x[0]*
x[0]-
x[1]*
x[1])*(x[1]-x[2])-(
x[1]*
x[1]-
x[2]*
x[2])*(x[0]-x[1]);
128 double b1 = (y[0]-y[1])*(x[1]*x[1]-x[2]*x[2])-(
x[0]*
x[0]-
x[1]*
x[1])*(y[1]-y[2]);
129 double b2 = (
x[0]-
x[1])*(x[1]*x[1]-x[2]*x[2])-(
x[1]-
x[2])*(x[0]*x[0]-x[1]*x[1]);
130 double b = b1/b2;
131 double a = y[0] - b*
x[0]-c*
x[0]*
x[0];
132 double y1 = a + b*x1 +c*x1*x1;
133 return y1;
134}
◆ IsPidInfoValid()
virtual bool ParticleIDBase::IsPidInfoValid |
( |
| ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ LikelihoodCalculation()
virtual int ParticleIDBase::LikelihoodCalculation |
( |
| ) |
|
|
protectedpure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ methodLikelihood()
int ParticleIDBase::methodLikelihood |
( |
| ) |
const |
|
inline |
◆ methodNeuronNetwork()
int ParticleIDBase::methodNeuronNetwork |
( |
| ) |
const |
|
inline |
◆ methodProbability()
int ParticleIDBase::methodProbability |
( |
| ) |
const |
|
inline |
Definition at line 87 of file ParticleIDBase.h.
87{return PROBABILITY_PID;}
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), and BeamParams::execute().
◆ mucValid()
int ParticleIDBase::mucValid |
( |
| ) |
const |
|
inline |
◆ ndof()
virtual int ParticleIDBase::ndof |
( |
| ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
Referenced by probCalculate().
◆ onlyElectron()
int ParticleIDBase::onlyElectron |
( |
| ) |
const |
|
inline |
◆ onlyKaon()
int ParticleIDBase::onlyKaon |
( |
| ) |
const |
|
inline |
◆ onlyMuon()
int ParticleIDBase::onlyMuon |
( |
| ) |
const |
|
inline |
◆ onlyPion()
int ParticleIDBase::onlyPion |
( |
| ) |
const |
|
inline |
Definition at line 81 of file ParticleIDBase.h.
81{return IDENTIFY_PION;}
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), BeamParams::execute(), and ParticleID::LikelihoodCalculation().
◆ onlyPionKaon()
int ParticleIDBase::onlyPionKaon |
( |
| ) |
const |
|
inline |
Definition at line 75 of file ParticleIDBase.h.
75{return (IDENTIFY_PION | IDENTIFY_KAON);}
◆ onlyPionKaonElectron()
int ParticleIDBase::onlyPionKaonElectron |
( |
| ) |
const |
|
inline |
Definition at line 77 of file ParticleIDBase.h.
77{return (IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_ELECTRON);}
◆ onlyPionKaonProton()
int ParticleIDBase::onlyPionKaonProton |
( |
| ) |
const |
|
inline |
◆ onlyProton()
int ParticleIDBase::onlyProton |
( |
| ) |
const |
|
inline |
◆ p()
double ParticleIDBase::p |
( |
| ) |
|
◆ particleIDCalculation()
virtual int ParticleIDBase::particleIDCalculation |
( |
| ) |
|
|
protectedpure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ pdfCalculate()
double ParticleIDBase::pdfCalculate |
( |
double |
offset, |
|
|
double |
sigma |
|
) |
| |
◆ pdfMinSigmaCut()
double ParticleIDBase::pdfMinSigmaCut |
( |
| ) |
const |
|
inline |
◆ PidTrk()
◆ pol2()
double ParticleIDBase::pol2 |
( |
double |
x, |
|
|
double * |
par |
|
) |
| |
Definition at line 136 of file ParticleIDBase.cxx.
136 {
138
139 return par[0] + y*(par[1] + y*(par[2]));
140}
◆ pol3()
double ParticleIDBase::pol3 |
( |
double |
x, |
|
|
double * |
par |
|
) |
| |
Definition at line 142 of file ParticleIDBase.cxx.
142 {
144
145 return par[0] + y*(par[1] + y*(par[2] + y*(par[3])));
146}
◆ pol4()
double ParticleIDBase::pol4 |
( |
double |
x, |
|
|
double * |
par |
|
) |
| |
Definition at line 148 of file ParticleIDBase.cxx.
148 {
150
151 return par[0] + y*(par[1] + y*(par[2] + y*(par[3] + y*(par[4]))));
152}
◆ prob()
virtual double ParticleIDBase::prob |
( |
int |
n | ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ probCalculate()
double ParticleIDBase::probCalculate |
( |
double |
chi2, |
|
|
int |
n |
|
) |
| |
◆ pt()
double ParticleIDBase::pt |
( |
| ) |
|
Definition at line 107 of file ParticleIDBase.cxx.
107 {
108 double val = 999;
109 if(!m_trk) return val;
113 return val;
114}
◆ set_path()
void ParticleIDBase::set_path |
( |
const char * |
s_path = 0 | ) |
|
Definition at line 54 of file ParticleIDBase.cxx.
55{
56 if ( s_path ) {
57 path = string(s_path);
58 } else {
59 char* env_path = getenv("PARTICLEIDROOT");
60 if ( !env_path ) {
61 cout << " ParticleIDBase::set_path ERROR:"
62 " the environment PARTICLEIDROOT not defined " << endl;
63 exit(1);
64 }
65 path = string(env_path);
66 }
67}
Referenced by ParticleIDBase().
◆ setChiMinCut()
void ParticleIDBase::setChiMinCut |
( |
const double |
chi = 4 | ) |
|
|
inline |
Definition at line 39 of file ParticleIDBase.h.
virtual double chi(int n) const =0
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), BeamParams::execute(), and TofPID::particleIDCalculation().
◆ setPdfMinSigmaCut()
void ParticleIDBase::setPdfMinSigmaCut |
( |
const double |
pdf = 4 | ) |
|
|
inline |
◆ setRecTrack()
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(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), BeamParams::execute(), and TofPID::particleIDCalculation().
◆ setRunNo()
void ParticleIDBase::setRunNo |
( |
const double |
runh = 8093 | ) |
|
|
inline |
◆ tofcorrValid()
int ParticleIDBase::tofcorrValid |
( |
| ) |
const |
|
inline |
◆ tofcValid()
int ParticleIDBase::tofcValid |
( |
| ) |
const |
|
inline |
◆ tofeValid()
int ParticleIDBase::tofeValid |
( |
| ) |
const |
|
inline |
◆ tofqValid()
int ParticleIDBase::tofqValid |
( |
| ) |
const |
|
inline |
◆ tofValid()
int ParticleIDBase::tofValid |
( |
| ) |
const |
|
inline |
◆ useDedx()
int ParticleIDBase::useDedx |
( |
| ) |
const |
|
inline |
Definition at line 63 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), and BeamParams::execute().
◆ useEmc()
int ParticleIDBase::useEmc |
( |
| ) |
const |
|
inline |
◆ useMuc()
int ParticleIDBase::useMuc |
( |
| ) |
const |
|
inline |
◆ useTof()
int ParticleIDBase::useTof |
( |
| ) |
const |
|
inline |
◆ useTof1()
int ParticleIDBase::useTof1 |
( |
| ) |
const |
|
inline |
Definition at line 65 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), and BeamParams::execute().
◆ useTof2()
int ParticleIDBase::useTof2 |
( |
| ) |
const |
|
inline |
Definition at line 66 of file ParticleIDBase.h.
Referenced by Gam4pikp::execute(), Rhopi::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), DQAJpsi2PPbarAlg::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), and BeamParams::execute().
◆ useTofC()
int ParticleIDBase::useTofC |
( |
| ) |
const |
|
inline |
◆ useTofCorr()
int ParticleIDBase::useTofCorr |
( |
| ) |
const |
|
inline |
◆ useTofE()
int ParticleIDBase::useTofE |
( |
| ) |
const |
|
inline |
◆ useTofQ()
int ParticleIDBase::useTofQ |
( |
| ) |
const |
|
inline |
◆ velc()
double ParticleIDBase::velc |
( |
| ) |
|
◆ xmass()
double ParticleIDBase::xmass |
( |
int |
n | ) |
|
Definition at line 70 of file ParticleIDBase.cxx.
70 {
71 double mass[5] = {0.000511, 0.105658, 0.139570,0.493677, 0.938272};
72 if(n < 0 || n >=5) return 0.0;
74}
◆ path
std::string ParticleIDBase::path = "" |
|
staticprotected |
The documentation for this class was generated from the following files: