BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof2PID.h
Go to the documentation of this file.
1#ifndef ParticleID_Tof2PID_H
2#define ParticleID_Tof2PID_H
3//
4// Tof2PID package: particle Identification with Barrel TOF outer layer
5//
6//
7// In 1st version, only the momentum dependent is taken into account
8// The corrections are made by: M.Yang, M.S. Chen, L.L. Wang, J.Y. Zhang and Y.Z. Sun
9// Author: K.L. He date: 11/12/2005, created
10//
11
13
14class Tof2PID : public ParticleIDBase {
15
16 public:
17 static Tof2PID *instance();
19
20 void init();
21 void calculate();
22 bool IsPidInfoValid() const {return (m_ndof > 0); }
23 double chi(int n) const {return m_chi[n];}
24 double sigma(int n) const{return m_sigma[n];}
25 double offset(int n) const{return m_offset[n];}
26 double prob(int n) const {return m_prob[n];}
27 int ndof() const {return m_ndof;}
28 double mass2() const {return m_mass2;}
29 double ph2() const {return m_ph2;}
30 double zhit2() const{return m_zhit2;}
31 double path2() const{return m_path2;}
32 double tof2() const{return m_tof2;}
33 int neuronPID() const {return -1;}
34 protected:
35
37 int neuronPIDCalculation() {return -1;}
38 int LikelihoodCalculation() {return -1;}
39 double offsetTof2(int n, int cntr, double ptrk, double ztof, double m_ph2,double charge);
40 double sigmaTof2(int n, int cntr, double ptrk, double ztof, double m_ph2, double charge);
41 double sampleQ0(double betagamma,double beta);
42
43 private:
44 double m_chi[5];
45 double m_prob[5];
46 double m_sigma[5];
47 double m_offset[5];
48 double m_chimin;
49 double m_pdfmin;
50 int m_ndof;
51 double m_mass2;
52 double m_ph2;
53 double m_zhit2;
54 double m_path2;
55 double m_tof2;
56 double m_pars[15];
57 private:
58 Tof2PID();
59 static Tof2PID *m_pointer;
60};
61
62#endif
const Int_t n
double offset(int n) const
Definition: Tof2PID.h:25
double path2() const
Definition: Tof2PID.h:31
double chi(int n) const
Definition: Tof2PID.h:23
double sigmaTof2(int n, int cntr, double ptrk, double ztof, double m_ph2, double charge)
Definition: Tof2PID.cxx:217
int neuronPIDCalculation()
Definition: Tof2PID.h:37
int ndof() const
Definition: Tof2PID.h:27
static Tof2PID * instance()
Definition: Tof2PID.cxx:17
void init()
Definition: Tof2PID.cxx:42
double mass2() const
Definition: Tof2PID.h:28
double sigma(int n) const
Definition: Tof2PID.h:24
double sampleQ0(double betagamma, double beta)
Definition: Tof2PID.cxx:258
int LikelihoodCalculation()
Definition: Tof2PID.h:38
int particleIDCalculation()
Definition: Tof2PID.cxx:62
void calculate()
Definition: Tof2PID.cxx:58
double ph2() const
Definition: Tof2PID.h:29
double prob(int n) const
Definition: Tof2PID.h:26
bool IsPidInfoValid() const
Definition: Tof2PID.h:22
double tof2() const
Definition: Tof2PID.h:32
int neuronPID() const
Definition: Tof2PID.h:33
double offsetTof2(int n, int cntr, double ptrk, double ztof, double m_ph2, double charge)
Definition: Tof2PID.cxx:153
double zhit2() const
Definition: Tof2PID.h:30
~Tof2PID()
Definition: Tof2PID.h:18