BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TofEPID.h
Go to the documentation of this file.
1#ifndef ParticleID_TofEPID_H
2#define ParticleID_TofEPID_H
3//
4// TofEPID package: particle Identification with Endcap TOF
5//
6//
7// In 1st version, nothing is done since Endcap data is invalid
8// Author: K.L. He date: 11/12/2005, created
9//
10
12
13class TofEPID : public ParticleIDBase {
14
15 public:
16 static TofEPID *instance();
18
19 void init();
20 void calculate();
21 bool IsPidInfoValid() const {return (m_ndof > 0); }
22 double chi(int n) const {return m_chi[n];}
23 double prob(int n) const {return m_prob[n];}
24 double sigma(int n) const{return m_sigma[n];}
25 double offset(int n) const{return m_offset[n];}
26 int ndof() const {return m_ndof;}
27 double mass2() const {return m_mass2;}
28 int part() const {return m_part;}
29 double rhit() const {return m_rhit;}
30 int neuronPID() const {return -1;}
31 protected:
32
33 int neuronPIDCalculation() { return -1;}
35 int LikelihoodCalculation() {return -1;}
36 double offsetTofE(int n, int cntr, double ptrk, double rtof, double ph,double charge);
37 double sigmaTofE(int n, int cntr, double ptrk, double rtof, double ph,double charge);
38// void readSigPar();
39// double getSigbyRun(int tofid);
40 private:
41 double m_chi[5];
42 double m_prob[5];
43 double m_sigma[5];
44 double m_offset[5];
45// double m_sigmaRundata[4][96];
46// double m_sigmaRunmc[4][96];
47 double m_chimin;
48 double m_pdfmin;
49 int m_ndof;
50 double m_mass2;
51 int m_part;
52 double m_rhit;
53 private:
54 TofEPID();
55 static TofEPID *m_pointer;
56};
57
58#endif
double mass2() const
Definition: TofEPID.h:27
double rhit() const
Definition: TofEPID.h:29
void init()
Definition: TofEPID.cxx:25
void calculate()
Definition: TofEPID.cxx:39
double sigma(int n) const
Definition: TofEPID.h:24
double sigmaTofE(int n, int cntr, double ptrk, double rtof, double ph, double charge)
Definition: TofEPID.cxx:216
static TofEPID * instance()
Definition: TofEPID.cxx:16
~TofEPID()
Definition: TofEPID.h:17
int particleIDCalculation()
Definition: TofEPID.cxx:43
int neuronPID() const
Definition: TofEPID.h:30
bool IsPidInfoValid() const
Definition: TofEPID.h:21
int part() const
Definition: TofEPID.h:28
double chi(int n) const
Definition: TofEPID.h:22
int neuronPIDCalculation()
Definition: TofEPID.h:33
double offset(int n) const
Definition: TofEPID.h:25
double offsetTofE(int n, int cntr, double ptrk, double rtof, double ph, double charge)
Definition: TofEPID.cxx:158
double prob(int n) const
Definition: TofEPID.h:23
int LikelihoodCalculation()
Definition: TofEPID.h:35
int ndof() const
Definition: TofEPID.h:26
float ptrk