BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof1PID Class Reference

#include <Tof1PID.h>

Inheritance diagram for Tof1PID:

Public Member Functions

 ~Tof1PID ()
void init ()
void calculate ()
bool IsPidInfoValid () const
double chi (int n) const
double prob (int n) const
double offset (int n) const
double sigma (int n) const
int ndof () const
double mass2 () const
double ph1 () const
double zhit1 () const
double path1 () const
double tof1 () const
int neuronPID () const
 ~Tof1PID ()
void init ()
void calculate ()
bool IsPidInfoValid () const
double chi (int n) const
double prob (int n) const
double offset (int n) const
double sigma (int n) const
int ndof () const
double mass2 () const
double ph1 () const
double zhit1 () const
double path1 () const
double tof1 () const
int neuronPID () const
 ~Tof1PID ()
void init ()
void calculate ()
bool IsPidInfoValid () const
double chi (int n) const
double prob (int n) const
double offset (int n) const
double sigma (int n) const
int ndof () const
double mass2 () const
double ph1 () const
double zhit1 () const
double path1 () const
double tof1 () const
int neuronPID () const
Public Member Functions inherited from ParticleIDBase
 ParticleIDBase ()
virtual ~ParticleIDBase ()
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 ()
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 ()
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)

Static Public Member Functions

static Tof1PIDinstance ()
static Tof1PIDinstance ()
static Tof1PIDinstance ()

Protected Member Functions

int particleIDCalculation ()
int neuronPIDCalculation ()
int LikelihoodCalculation ()
double offsetTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sigmaTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sampleQ0 (double betagamma, double beta)
int particleIDCalculation ()
int neuronPIDCalculation ()
int LikelihoodCalculation ()
double offsetTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sigmaTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sampleQ0 (double betagamma, double beta)
int particleIDCalculation ()
int neuronPIDCalculation ()
int LikelihoodCalculation ()
double offsetTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sigmaTof1 (int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
double sampleQ0 (double betagamma, double beta)

Additional Inherited Members

Static Protected Attributes inherited from ParticleIDBase
static std::string path = ""

Detailed Description

Constructor & Destructor Documentation

◆ ~Tof1PID() [1/3]

Tof1PID::~Tof1PID ( )
inline

Definition at line 18 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

18{ ; }

◆ ~Tof1PID() [2/3]

Tof1PID::~Tof1PID ( )
inline

◆ ~Tof1PID() [3/3]

Tof1PID::~Tof1PID ( )
inline

Member Function Documentation

◆ calculate() [1/3]

void Tof1PID::calculate ( )
virtual

Implements ParticleIDBase.

Definition at line 55 of file Tof1PID.cxx.

55 {
56 if ( particleIDCalculation() == 0 ) m_ndof = 1;
57}
int particleIDCalculation()
Definition Tof1PID.cxx:59

◆ calculate() [2/3]

void Tof1PID::calculate ( )
virtual

Implements ParticleIDBase.

◆ calculate() [3/3]

void Tof1PID::calculate ( )
virtual

Implements ParticleIDBase.

◆ chi() [1/3]

double Tof1PID::chi ( int n) const
inlinevirtual

Implements ParticleIDBase.

Definition at line 23 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

23{ return m_chi[n]; }
const Int_t n

◆ chi() [2/3]

double Tof1PID::chi ( int n) const
inlinevirtual

Implements ParticleIDBase.

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

23{ return m_chi[n]; }

◆ chi() [3/3]

double Tof1PID::chi ( int n) const
inlinevirtual

Implements ParticleIDBase.

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

23{ return m_chi[n]; }

◆ init() [1/3]

void Tof1PID::init ( )
virtual

Implements ParticleIDBase.

Definition at line 39 of file Tof1PID.cxx.

39 {
40 for ( int i = 0; i < 5; i++ )
41 {
42 m_chi[i] = 99.0;
43 m_prob[i] = -1.0;
44 m_sigma[i] = 1;
45 m_offset[i] = 99.0;
46 }
47 m_chimin = 99.;
48 m_pdfmin = 99.;
49 m_ndof = 0;
50 m_mass2 = -999;
51 m_ph1 = -99;
52 m_zhit1 = -99;
53}

◆ init() [2/3]

void Tof1PID::init ( )
virtual

Implements ParticleIDBase.

◆ init() [3/3]

void Tof1PID::init ( )
virtual

Implements ParticleIDBase.

◆ instance() [1/3]

Tof1PID * Tof1PID::instance ( )
static

Definition at line 16 of file Tof1PID.cxx.

16 {
17 if ( !m_pointer ) m_pointer = new Tof1PID();
18 return m_pointer;
19}

Referenced by TofPID::particleIDCalculation().

◆ instance() [2/3]

Tof1PID * Tof1PID::instance ( )
static

◆ instance() [3/3]

Tof1PID * Tof1PID::instance ( )
static

◆ IsPidInfoValid() [1/3]

bool Tof1PID::IsPidInfoValid ( ) const
inlinevirtual

Implements ParticleIDBase.

Definition at line 22 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

22{ return ( m_ndof > 0 ); }

◆ IsPidInfoValid() [2/3]

bool Tof1PID::IsPidInfoValid ( ) const
inlinevirtual

Implements ParticleIDBase.

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

22{ return ( m_ndof > 0 ); }

◆ IsPidInfoValid() [3/3]

bool Tof1PID::IsPidInfoValid ( ) const
inlinevirtual

Implements ParticleIDBase.

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

22{ return ( m_ndof > 0 ); }

◆ LikelihoodCalculation() [1/3]

int Tof1PID::LikelihoodCalculation ( )
inlineprotectedvirtual

Implements ParticleIDBase.

Definition at line 38 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

38{ return -1; }

◆ LikelihoodCalculation() [2/3]

int Tof1PID::LikelihoodCalculation ( )
inlineprotectedvirtual

Implements ParticleIDBase.

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

38{ return -1; }

◆ LikelihoodCalculation() [3/3]

int Tof1PID::LikelihoodCalculation ( )
inlineprotectedvirtual

Implements ParticleIDBase.

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

38{ return -1; }

◆ mass2() [1/3]

double Tof1PID::mass2 ( ) const
inline

Definition at line 28 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

28{ return m_mass2; }

◆ mass2() [2/3]

double Tof1PID::mass2 ( ) const
inline

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

28{ return m_mass2; }

◆ mass2() [3/3]

double Tof1PID::mass2 ( ) const
inline

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

28{ return m_mass2; }

◆ ndof() [1/3]

int Tof1PID::ndof ( ) const
inlinevirtual

Implements ParticleIDBase.

Definition at line 27 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

27{ return m_ndof; }

◆ ndof() [2/3]

int Tof1PID::ndof ( ) const
inlinevirtual

Implements ParticleIDBase.

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

27{ return m_ndof; }

◆ ndof() [3/3]

int Tof1PID::ndof ( ) const
inlinevirtual

Implements ParticleIDBase.

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

27{ return m_ndof; }

◆ neuronPID() [1/3]

int Tof1PID::neuronPID ( ) const
inline

Definition at line 33 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

33{ return -1; }

◆ neuronPID() [2/3]

int Tof1PID::neuronPID ( ) const
inline

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

33{ return -1; }

◆ neuronPID() [3/3]

int Tof1PID::neuronPID ( ) const
inline

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

33{ return -1; }

◆ neuronPIDCalculation() [1/3]

int Tof1PID::neuronPIDCalculation ( )
inlineprotected

Definition at line 37 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

37{ return -1; }

◆ neuronPIDCalculation() [2/3]

int Tof1PID::neuronPIDCalculation ( )
inlineprotected

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

37{ return -1; }

◆ neuronPIDCalculation() [3/3]

int Tof1PID::neuronPIDCalculation ( )
inlineprotected

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

37{ return -1; }

◆ offset() [1/3]

double Tof1PID::offset ( int n) const
inline

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

25{ return m_offset[n]; }

Referenced by offsetTof1().

◆ offset() [2/3]

double Tof1PID::offset ( int n) const
inline

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

25{ return m_offset[n]; }

◆ offset() [3/3]

double Tof1PID::offset ( int n) const
inline

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

25{ return m_offset[n]; }

◆ offsetTof1() [1/3]

double Tof1PID::offsetTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

Definition at line 138 of file Tof1PID.cxx.

139 {
140 double offset;
141 // double gb = ptrk/xmass(n);
142 double betagamma;
143 switch ( n )
144 {
145
146 case 0: { // Electron
147 offset = 0.0;
148 return offset;
149 }
150
151 case 1: { // Muon
152 offset = 0.0;
153 return offset;
154 }
155
156 case 2: { // Pion
157 betagamma = ptrk / 139.57;
158 break;
159 }
160 case 3: { // Kaon
161 betagamma = ptrk / 493.68;
162 break;
163 }
164
165 case 4: { // Proton
166 betagamma = ptrk / 938.27;
167 break;
168 }
169
170 default: {
171 offset = 0.0;
172 return offset;
173 }
174 break;
175 }
176 double Q = ph1;
177 z = z / 1000.0;
178 double beta = betagamma / TMath::Sqrt( 1 + betagamma * betagamma );
179 double Q0 = sampleQ0( betagamma, beta );
180 double func[15] = { 0. };
181 func[0] = 1.;
182 func[1] = 1. / sqrt( Q );
183 func[2] = z / sqrt( Q );
184 func[3] = z * z / sqrt( Q );
185 func[4] = Q;
186 func[5] = Q * Q;
187 func[6] = Q * Q * Q;
188 func[7] = 1. / ( 0.84 * 0.84 + z * z );
189 func[8] = z;
190 func[9] = z * z;
191 func[10] = z * z * z;
192 func[11] = 1. / sqrt( Q0 );
193 func[12] = z / sqrt( Q0 );
194 func[13] = z * z / sqrt( Q0 );
195 func[14] = z * z * z / sqrt( Q0 );
196 offset = 0.;
197 for ( int i = 0; i < 15; i++ ) { offset += m_pars[i] * func[i]; }
198
199 return offset;
200}
double sampleQ0(double betagamma, double beta)
Definition Tof1PID.cxx:242

◆ offsetTof1() [2/3]

double Tof1PID::offsetTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

◆ offsetTof1() [3/3]

double Tof1PID::offsetTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

◆ particleIDCalculation() [1/3]

int Tof1PID::particleIDCalculation ( )
protectedvirtual

Implements ParticleIDBase.

Definition at line 59 of file Tof1PID.cxx.

59 {
60 int irc = -1;
61
62 EvtRecTrack* recTrk = PidTrk();
63 if ( !( recTrk->isMdcTrackValid() ) ) return irc;
64 RecMdcTrack* mdcTrk = recTrk->mdcTrack();
65 double ptrk = mdcTrk->p();
66 double charge = mdcTrk->charge();
67 // double cost = cos(mdcTrk->theta());
68 if ( !( recTrk->isTofTrackValid() ) ) return irc;
69
70#ifndef BEAN
71 SmartRefVector<RecTofTrack> tofTrk = recTrk->tofTrack();
72 SmartRefVector<RecTofTrack>::iterator it; //=tofTrk.begin();
73#else
74 const std::vector<TTofTrack*>& tofTrk = recTrk->tofTrack();
75 std::vector<TTofTrack*>::const_iterator it; //=tofTrk.begin();
76#endif
77
78 TofHitStatus* hitst = new TofHitStatus;
79 std::vector<int> tof1count;
80 int goodtof1trk = 0;
81 for ( it = tofTrk.begin(); it != tofTrk.end(); it++, goodtof1trk++ )
82 {
83 unsigned int st = ( *it )->status();
84 hitst->setStatus( st );
85 if ( !( hitst->is_barrel() ) ) continue;
86 if ( !( hitst->is_counter() ) ) continue;
87 if ( hitst->layer() == 1 ) tof1count.push_back( goodtof1trk );
88 }
89 delete hitst;
90 if ( tof1count.size() != 1 ) return irc; // not tof2 track or more than 1 tracks
91 it = tofTrk.begin() + tof1count[0];
92 double tof = ( *it )->tof();
93 m_tof1 = tof;
94 // int qual = (*it)->quality();
95 // if(qual != 1) return irc;
96 int cntr = ( *it )->tofID();
97 double path = ( ( *it )->path() ) * 10.0; // the unit from mm to cm
98 m_path1 = path;
99 m_ph1 = ( *it )->ph(); // no change
100 m_zhit1 = ( ( *it )->zrhit() ) * 10; // the unit from mm to cm
101 double beta2 = path * path / velc() / velc() / tof / tof;
102 m_mass2 = ptrk * ptrk * ( 1 / beta2 - 1 );
103 if ( ( m_mass2 > 20 ) || ( m_mass2 < -1 ) ) return irc;
104 if ( tof <= 0 ) return irc;
105 double chitemp = 99.;
106 double pdftemp = 0;
107 double sigma_tmp = ( *it )->sigma( 0 );
108 for ( int i = 0; i < 5; i++ )
109 {
110
111 m_offset[i] = tof - ( *it )->texp( i ) -
112 ( *it )->toffset( i ); //- offsetTof1(i, cntr, ptrk, m_zhit1, m_ph1,charge);
113 if ( sigma_tmp != 0 )
114 {
115 m_sigma[i] = 1.2 * sigma_tmp;
116 if ( i < 2 ) m_sigma[i] = sigma_tmp;
117 }
118 else m_sigma[i] = sigmaTof1( i, cntr, ptrk, m_zhit1, m_ph1, charge );
119 m_chi[i] = m_offset[i] / m_sigma[i];
120
121 if ( fabs( m_chi[i] ) < chitemp ) chitemp = fabs( m_chi[i] );
122 double ppp = pdfCalculate( m_chi[i], 1 );
123 if ( fabs( ppp ) > pdftemp ) pdftemp = fabs( ppp );
124 }
125 m_chimin = chitemp;
126 m_pdfmin = pdftemp;
127 if ( pdftemp < pdfCalculate( pdfMinSigmaCut(), 1 ) ) return irc;
128 if ( fabs( m_chimin ) > chiMinCut() ) return irc;
129 for ( int i = 0; i < 5; i++ ) { m_prob[i] = probCalculate( m_chi[i] * m_chi[i], 1 ); }
130 irc = 0;
131 return irc;
132}
SmartRefVector< RecTofTrack > tofTrack()
double probCalculate(double chi2, int n)
double pdfCalculate(double offset, double sigma)
double sigmaTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
Definition Tof1PID.cxx:202
void setStatus(unsigned int status)

Referenced by calculate().

◆ particleIDCalculation() [2/3]

int Tof1PID::particleIDCalculation ( )
protectedvirtual

Implements ParticleIDBase.

◆ particleIDCalculation() [3/3]

int Tof1PID::particleIDCalculation ( )
protectedvirtual

Implements ParticleIDBase.

◆ path1() [1/3]

double Tof1PID::path1 ( ) const
inline

Definition at line 31 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

31{ return m_path1; }

◆ path1() [2/3]

double Tof1PID::path1 ( ) const
inline

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

31{ return m_path1; }

◆ path1() [3/3]

double Tof1PID::path1 ( ) const
inline

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

31{ return m_path1; }

◆ ph1() [1/3]

double Tof1PID::ph1 ( ) const
inline

Definition at line 29 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

29{ return m_ph1; }

Referenced by offsetTof1().

◆ ph1() [2/3]

double Tof1PID::ph1 ( ) const
inline

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

29{ return m_ph1; }

◆ ph1() [3/3]

double Tof1PID::ph1 ( ) const
inline

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

29{ return m_ph1; }

◆ prob() [1/3]

double Tof1PID::prob ( int n) const
inlinevirtual

Implements ParticleIDBase.

Definition at line 24 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

24{ return m_prob[n]; }

◆ prob() [2/3]

double Tof1PID::prob ( int n) const
inlinevirtual

Implements ParticleIDBase.

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

24{ return m_prob[n]; }

◆ prob() [3/3]

double Tof1PID::prob ( int n) const
inlinevirtual

Implements ParticleIDBase.

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

24{ return m_prob[n]; }

◆ sampleQ0() [1/3]

double Tof1PID::sampleQ0 ( double betagamma,
double beta )
protected

Definition at line 242 of file Tof1PID.cxx.

242 {
243 double val = 0.261 / TMath::Power( beta, 1.96 ) *
244 ( 5.43 - TMath::Power( beta, 1.96 ) -
245 TMath::Log( 1.12 + TMath::Power( 1 / betagamma, 0.386 ) ) );
246 return val * 100.;
247}

Referenced by offsetTof1().

◆ sampleQ0() [2/3]

double Tof1PID::sampleQ0 ( double betagamma,
double beta )
protected

◆ sampleQ0() [3/3]

double Tof1PID::sampleQ0 ( double betagamma,
double beta )
protected

◆ sigma() [1/3]

double Tof1PID::sigma ( int n) const
inline

Definition at line 26 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

26{ return m_sigma[n]; }

Referenced by sigmaTof1().

◆ sigma() [2/3]

double Tof1PID::sigma ( int n) const
inline

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

26{ return m_sigma[n]; }

◆ sigma() [3/3]

double Tof1PID::sigma ( int n) const
inline

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

26{ return m_sigma[n]; }

◆ sigmaTof1() [1/3]

double Tof1PID::sigmaTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

Definition at line 202 of file Tof1PID.cxx.

203 {
204 double sigma;
205 // double gb = ptrk/xmass(n);
206 double cosz = cos( ztof / 1000.0 );
207
208 switch ( n )
209 {
210
211 case 0: { // Electron
212 sigma = 0.132405 - 0.135638 * cosz + 0.105528 * cosz * cosz;
213 break;
214 }
215
216 case 1: { // Muon
217 sigma = 0.164057 - 0.199648 * cosz + 0.139481 * cosz * cosz;
218 break;
219 }
220
221 case 2: { // Pion
222 sigma = 0.132943 - 0.0996678 * cosz + 0.0785578 * cosz * cosz;
223 break;
224 }
225 case 3: { // Kaon
226 sigma = 0.146572 - 0.124672 * cosz + 0.0920656 * cosz * cosz;
227 break;
228 }
229
230 case 4: { // Proton
231 sigma = 0.1513 - 0.0806081 * cosz + 0.0607409 * cosz * cosz;
232 break;
233 }
234
235 default: sigma = 0.100; break;
236 }
237 sigma = 0.110;
238 // sigma = 1.0;
239 return sigma;
240}

Referenced by particleIDCalculation().

◆ sigmaTof1() [2/3]

double Tof1PID::sigmaTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

◆ sigmaTof1() [3/3]

double Tof1PID::sigmaTof1 ( int n,
int cntr,
double ptrk,
double ztof,
double m_ph1,
double charge )
protected

◆ tof1() [1/3]

double Tof1PID::tof1 ( ) const
inline

Definition at line 32 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

32{ return m_tof1; }

◆ tof1() [2/3]

double Tof1PID::tof1 ( ) const
inline

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

32{ return m_tof1; }

◆ tof1() [3/3]

double Tof1PID::tof1 ( ) const
inline

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

32{ return m_tof1; }

◆ zhit1() [1/3]

double Tof1PID::zhit1 ( ) const
inline

Definition at line 30 of file Analysis/ParticleID/include/ParticleID/Tof1PID.h.

30{ return m_zhit1; }

◆ zhit1() [2/3]

double Tof1PID::zhit1 ( ) const
inline

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

30{ return m_zhit1; }

◆ zhit1() [3/3]

double Tof1PID::zhit1 ( ) const
inline

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

30{ return m_zhit1; }

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