BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCPID.h
Go to the documentation of this file.
1#ifndef ParticleID_TofCPID_H
2#define ParticleID_TofCPID_H
3//
4// TofCPID 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 TofCPID : public ParticleIDBase {
14
15 public:
16 static TofCPID *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 double phc() const {return m_phc;}
29 double zhitc() const {return m_zhitc;}
30 double pathc() const{return m_pathc;}
31 double tofc() const{return m_tofc;}
32 int neuronPID() const {return -1;}
33
34
35 protected:
36
37 int neuronPIDCalculation() { return -1;}
39 int LikelihoodCalculation() {return -1;}
40// double offsetTofC(int n, int cntr, double ptrk, double rtof, double ph,double charge);
41// double sigmaTofC(int n, int cntr, double ptrk, double rtof, double ph,double charge);
42double offsetTofC(int n, double ptrk, double cost);
43double sigmaTofC(int n, double ptrk, double cost);
44
45 double sampleQ0(double betagamma,double beta);
46 double mypol3(double x, double par0, double par1, double par2, double par3);
47 double mypol5(double x, double par0, double par1, double par2, double par3, double par4,double par5);
48
49 private:
50 double m_chi[5];
51 double m_prob[5];
52 double m_sigma[5];
53 double m_offset[5];
54 double m_chimin;
55 double m_pdfmin;
56 int m_ndof;
57 double m_mass2;
58 double m_phc;
59 double m_zhitc;
60 double m_pathc;
61 double m_tofc;
62 double m_pars[15];
63 double m_momentpara[5][12];
64 double m_thetapara[5][8];
65 double m_endcappara[5][4];
66 int m_readstate;
67 private:
68 TofCPID();
69 static TofCPID *m_pointer;
70};
71
72#endif
const Int_t n
void calculate()
Definition: TofCPID.cxx:55
double mass2() const
Definition: TofCPID.h:27
bool IsPidInfoValid() const
Definition: TofCPID.h:21
int particleIDCalculation()
Definition: TofCPID.cxx:161
void init()
Definition: TofCPID.cxx:43
double mypol3(double x, double par0, double par1, double par2, double par3)
Definition: TofCPID.cxx:651
int neuronPIDCalculation()
Definition: TofCPID.h:37
double tofc() const
Definition: TofCPID.h:31
double zhitc() const
Definition: TofCPID.h:29
int ndof() const
Definition: TofCPID.h:26
double sigma(int n) const
Definition: TofCPID.h:24
double sampleQ0(double betagamma, double beta)
double phc() const
Definition: TofCPID.h:28
double prob(int n) const
Definition: TofCPID.h:23
double mypol5(double x, double par0, double par1, double par2, double par3, double par4, double par5)
Definition: TofCPID.cxx:658
static TofCPID * instance()
Definition: TofCPID.cxx:19
double offsetTofC(int n, double ptrk, double cost)
Definition: TofCPID.cxx:262
int neuronPID() const
Definition: TofCPID.h:32
~TofCPID()
Definition: TofCPID.h:17
double pathc() const
Definition: TofCPID.h:30
int LikelihoodCalculation()
Definition: TofCPID.h:39
double offset(int n) const
Definition: TofCPID.h:25
double sigmaTofC(int n, double ptrk, double cost)
Definition: TofCPID.cxx:470
double chi(int n) const
Definition: TofCPID.h:22
float ptrk