#include <ParticleIDBase.h>
|
static std::string | path = "" |
|
Definition at line 21 of file ParticleIDBase.h.
◆ ParticleIDBase()
ParticleIDBase::ParticleIDBase |
( |
| ) |
|
Definition at line 45 of file ParticleIDBase.cxx.
46{
47 m_trk = 0;
48 m_chimin_cut = 4;
49 m_pdfsigmamin_cut=99;
50
51#ifndef BEAN
53#endif
54}
void set_path(const char *s_path=0)
◆ ~ParticleIDBase()
virtual ParticleIDBase::~ParticleIDBase |
( |
| ) |
|
|
inlinevirtual |
◆ all()
int ParticleIDBase::all |
( |
| ) |
const |
|
inline |
Definition at line 79 of file ParticleIDBase.h.
79{return (IDENTIFY_ELECTRON | IDENTIFY_PION | IDENTIFY_KAON | IDENTIFY_PROTON);}
◆ calculate()
virtual void ParticleIDBase::calculate |
( |
| ) |
|
|
pure virtual |
Implemented in DedxPID, EmcPID, MrpcPID, 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, MrpcPID, 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, MrpcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ interpolation()
double ParticleIDBase::interpolation |
( |
double * | x, |
|
|
double * | y, |
|
|
double | x1 ) |
Definition at line 126 of file ParticleIDBase.cxx.
126 {
127 double c1 = (y[0]-y[1])*(x[1]-x[2])-(
x[0]-
x[1])*(y[1]-y[2]);
128 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]);
130 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]);
131 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]);
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}
◆ IsPidInfoValid()
virtual bool ParticleIDBase::IsPidInfoValid |
( |
| ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MrpcPID, MucPID, ParticleID, Tof1PID, Tof2PID, TofCorrPID, TofCPID, TofEPID, TofPID, and TofQPID.
◆ LikelihoodCalculation()
virtual int ParticleIDBase::LikelihoodCalculation |
( |
| ) |
|
|
protectedpure virtual |
Implemented in DedxPID, EmcPID, MrpcPID, 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 88 of file ParticleIDBase.h.
88{return PROBABILITY_PID;}
Referenced by BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), and LocalPionSelector::operator()().
◆ MrpcValid()
int ParticleIDBase::MrpcValid |
( |
| ) |
const |
|
inline |
◆ mucValid()
int ParticleIDBase::mucValid |
( |
| ) |
const |
|
inline |
◆ ndof()
virtual int ParticleIDBase::ndof |
( |
| ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MrpcPID, 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 82 of file ParticleIDBase.h.
82{return IDENTIFY_PION;}
Referenced by BeamParams::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), ParticleID::LikelihoodCalculation(), LocalKaonSelector::operator()(), and LocalPionSelector::operator()().
◆ onlyPionKaon()
int ParticleIDBase::onlyPionKaon |
( |
| ) |
const |
|
inline |
Definition at line 76 of file ParticleIDBase.h.
76{return (IDENTIFY_PION | IDENTIFY_KAON);}
◆ onlyPionKaonElectron()
int ParticleIDBase::onlyPionKaonElectron |
( |
| ) |
const |
|
inline |
Definition at line 78 of file ParticleIDBase.h.
78{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, MrpcPID, 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()
Definition at line 36 of file ParticleIDBase.h.
Referenced by DedxPID::particleIDCalculation(), EmcPID::particleIDCalculation(), MrpcPID::particleIDCalculation(), MucPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCorrPID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), TofPID::particleIDCalculation(), and TofQPID::particleIDCalculation().
◆ pol2()
double ParticleIDBase::pol2 |
( |
double | x, |
|
|
double * | par ) |
Definition at line 138 of file ParticleIDBase.cxx.
138 {
140
141 return par[0] + y*(par[1] + y*(par[2]));
142}
◆ pol3()
double ParticleIDBase::pol3 |
( |
double | x, |
|
|
double * | par ) |
Definition at line 144 of file ParticleIDBase.cxx.
144 {
146
147 return par[0] + y*(par[1] + y*(par[2] + y*(par[3])));
148}
◆ pol4()
double ParticleIDBase::pol4 |
( |
double | x, |
|
|
double * | par ) |
Definition at line 150 of file ParticleIDBase.cxx.
150 {
152
153 return par[0] + y*(par[1] + y*(par[2] + y*(par[3] + y*(par[4]))));
154}
◆ prob()
virtual double ParticleIDBase::prob |
( |
int | n | ) |
const |
|
pure virtual |
Implemented in DedxPID, EmcPID, MrpcPID, 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 109 of file ParticleIDBase.cxx.
109 {
110 double val = 999;
111 if(!m_trk) return val;
115 return val;
116}
◆ set_path() [1/2]
void ParticleIDBase::set_path |
( |
const char * | s_path = 0 | ) |
|
Definition at line 56 of file ParticleIDBase.cxx.
57{
58 if ( s_path ) {
59 path = string(s_path);
60 } else {
61 char* env_path = getenv("PARTICLEIDROOT");
62 if ( !env_path ) {
63 cout << " ParticleIDBase::set_path ERROR:"
64 " the environment PARTICLEIDROOT not defined " << endl;
65 exit(1);
66 }
67 path = string(env_path);
68 }
69}
Referenced by ParticleIDBase().
◆ set_path() [2/2]
void ParticleIDBase::set_path |
( |
std::string | s_path | ) |
|
|
inline |
◆ 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 BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), and TofPID::particleIDCalculation().
◆ setPdfMinSigmaCut()
void ParticleIDBase::setPdfMinSigmaCut |
( |
const double | pdf = 4 | ) |
|
|
inline |
◆ setRecTrack()
Definition at line 37 of file ParticleIDBase.h.
Referenced by BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), LocalPionSelector::operator()(), 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 BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQAKsKpi::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), and LocalPionSelector::operator()().
◆ useEmc()
int ParticleIDBase::useEmc |
( |
| ) |
const |
|
inline |
◆ useMrpc()
int ParticleIDBase::useMrpc |
( |
| ) |
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 BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), and LocalPionSelector::operator()().
◆ useTof2()
int ParticleIDBase::useTof2 |
( |
| ) |
const |
|
inline |
Definition at line 66 of file ParticleIDBase.h.
Referenced by BeamParams::execute(), DQAJpsi2PPbarAlg::execute(), DQARhopi::execute(), DQASelBhabha::execute(), DQASelDimu::execute(), DQASelHadron::execute(), Gam4pikp::execute(), inclks::execute(), inclkstar::execute(), incllambda::execute(), inclphi::execute(), Rhopi::execute(), LocalKaonSelector::operator()(), and LocalPionSelector::operator()().
◆ 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 72 of file ParticleIDBase.cxx.
72 {
73 double mass[5] = {0.000511, 0.105658, 0.139570,0.493677, 0.938272};
76}
◆ path
std::string ParticleIDBase::path = "" |
|
staticprotected |
Definition at line 102 of file ParticleIDBase.h.
Referenced by TofCPID::calculate(), MucPID::init(), DedxPID::inputpar(), TofCorrPID::inputParameter(), ParticleIDBase(), MrpcPID::particleIDCalculation(), Tof1PID::particleIDCalculation(), Tof2PID::particleIDCalculation(), TofCPID::particleIDCalculation(), TofEPID::particleIDCalculation(), set_path(), and set_path().
The documentation for this class was generated from the following files: