BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof1PID.h
Go to the documentation of this file.
1#ifndef ParticleID_Tof1PID_H
2#define ParticleID_Tof1PID_H
3//
4// Tof1PID package: particle Identification with Barrel TOF inner 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 Tof1PID : public ParticleIDBase {
15
16 public:
17
18 static Tof1PID * instance();
20
21 void init();
22 void calculate();
23 bool IsPidInfoValid() const {return (m_ndof > 0); }
24 double chi(int n) const {return m_chi[n];}
25 double prob(int n) const {return m_prob[n];}
26 double offset(int n) const {return m_offset[n];}
27 double sigma(int n) const {return m_sigma[n];}
28 int ndof() const {return m_ndof;}
29 double mass2() const {return m_mass2;}
30 double ph1() const {return m_ph1;}
31 double zhit1() const {return m_zhit1;}
32 double path1() const{return m_path1;}
33 double tof1() const{return m_tof1;}
34 int neuronPID() const {return -1;}
35
36 protected:
37
39 int neuronPIDCalculation() { return -1;}
40 int LikelihoodCalculation() {return -1;}
41 double offsetTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge);
42 double sigmaTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge);
43 double sampleQ0(double betagamma,double beta);
44
45 private:
46 double m_chi[5];
47 double m_sigma[5];
48 double m_offset[5];
49 double m_prob[5];
50 double m_chimin;
51 double m_pdfmin;
52 int m_ndof;
53 double m_mass2;
54 double m_ph1;
55 double m_zhit1;
56 double m_path1;
57 double m_tof1;
58 double m_pars[15];
59 private:
60 Tof1PID();
61 static Tof1PID *m_pointer;
62};
63
64#endif
const Int_t n
double path1() const
Definition Tof1PID.h:32
int ndof() const
Definition Tof1PID.h:28
double sampleQ0(double betagamma, double beta)
Definition Tof1PID.cxx:242
double sigma(int n) const
Definition Tof1PID.h:27
bool IsPidInfoValid() const
Definition Tof1PID.h:23
int LikelihoodCalculation()
Definition Tof1PID.h:40
double chi(int n) const
Definition Tof1PID.h:24
double zhit1() const
Definition Tof1PID.h:31
double mass2() const
Definition Tof1PID.h:29
double offsetTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
Definition Tof1PID.cxx:137
int particleIDCalculation()
Definition Tof1PID.cxx:59
void calculate()
Definition Tof1PID.cxx:55
void init()
Definition Tof1PID.cxx:40
static Tof1PID * instance()
Definition Tof1PID.cxx:16
double prob(int n) const
Definition Tof1PID.h:25
~Tof1PID()
Definition Tof1PID.h:19
int neuronPIDCalculation()
Definition Tof1PID.h:39
double sigmaTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
Definition Tof1PID.cxx:201
double offset(int n) const
Definition Tof1PID.h:26
double ph1() const
Definition Tof1PID.h:30
double tof1() const
Definition Tof1PID.h:33
int neuronPID() const
Definition Tof1PID.h:34
float ptrk