BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCorrPID.h
Go to the documentation of this file.
1#ifndef ParticleID_TofCorrPID_H
2#define ParticleID_TofCorrPID_H
3//
4// TofCorrPID package: particle Identification with TOF
5//
6// The offset for hadrons are corrected.
7//
8// Author: SUN Shengsen, LV Meng date: 01/16/2013, created
9//
10
11
13
14class TofCorrPID : public ParticleIDBase {
15
16 public:
17
18 static TofCorrPID * 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
30 protected:
31
33 int neuronPIDCalculation() { return -1;}
34 int LikelihoodCalculation() {return -1;}
35
36 void inputParameter( int run );
37 double offsetTof( unsigned int ispecies, bool barrel, unsigned int ipmt, double betaGamma, int charge, double zrhit, double dt );
38 double offsetTof( unsigned int ispecies, int tofid, double zrhit, double dt );
39 double offsetTof( unsigned int ispecies, int tofid1, int tofid2, double zrhit1, double zrhit2, double dt );
40 double sigmaTof( unsigned int ispecies, int charge, bool barrel, unsigned int ipmt, int tofid[2], double zrhit[2], double betaGamma );
41 double sigmaTof( unsigned int ispecies, int charge, bool barrel, unsigned int ipmt, double zrhit, int ibgbin );
42
43 double qCurveFunc( unsigned int layer, double betaGamma );
44 double bSigma( unsigned int end, int tofid, double zrhit );
45 double bSigma( int tofid[2], double zrhit[2] );
46 double eSigma( int tofid, double zrhit );
47
48 bool correlationCheck();
49
50 private:
51 double m_chi[5];
52 double m_offset[5];
53 double m_prob[5];
54 double m_sigma[5];
55 double m_chimin;
56 double m_pdfmin;
57 int m_ndof;
58
59 private:
60 double m_deltaT[7][5];
61
62 private:
63 int m_runBegin, m_runEnd;
64 double m_p_weight[176][3][5], m_p_common, m_ec_sigma[96][3];
65 double m_q0_bg[3][5], m_par_ab[5][2][5], m_par_pbar_ab[5][2][5];
66 double m_par_sigma[4][8][9], m_par_sig_mom[3][7][3];
67 double m_p_offset[2][4][10][20], m_p_sigma[2][7][10][20];
68
69 private:
70 TofCorrPID();
71 static TofCorrPID *m_pointer;
72};
73
74#endif
TGraphErrors * dt
Definition: AbsCor.cxx:72
const Int_t n
int neuronPIDCalculation()
Definition: TofCorrPID.h:33
void inputParameter(int run)
Definition: TofCorrPID.cxx:212
bool IsPidInfoValid() const
Definition: TofCorrPID.h:23
double qCurveFunc(unsigned int layer, double betaGamma)
Definition: TofCorrPID.cxx:804
void init()
Definition: TofCorrPID.cxx:29
bool correlationCheck()
Definition: TofCorrPID.cxx:865
int particleIDCalculation()
Definition: TofCorrPID.cxx:61
double chi(int n) const
Definition: TofCorrPID.h:24
int ndof() const
Definition: TofCorrPID.h:28
double sigma(int n) const
Definition: TofCorrPID.h:27
double offset(int n) const
Definition: TofCorrPID.h:26
double sigmaTof(unsigned int ispecies, int charge, bool barrel, unsigned int ipmt, int tofid[2], double zrhit[2], double betaGamma)
Definition: TofCorrPID.cxx:546
double prob(int n) const
Definition: TofCorrPID.h:25
double bSigma(unsigned int end, int tofid, double zrhit)
Definition: TofCorrPID.cxx:819
void calculate()
Definition: TofCorrPID.cxx:56
double offsetTof(unsigned int ispecies, bool barrel, unsigned int ipmt, double betaGamma, int charge, double zrhit, double dt)
Definition: TofCorrPID.cxx:405
static TofCorrPID * instance()
Definition: TofCorrPID.cxx:19
double eSigma(int tofid, double zrhit)
Definition: TofCorrPID.cxx:849
int LikelihoodCalculation()
Definition: TofCorrPID.h:34