BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/ParticleID/ParticleID/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
11#include "ParticleID/ParticleIDBase.h"
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()
int particleIDCalculation()
void init()
double mypol3(double x, double par0, double par1, double par2, double par3)
double sampleQ0(double betagamma, double beta)
double mypol5(double x, double par0, double par1, double par2, double par3, double par4, double par5)
double offsetTofC(int n, double ptrk, double cost)
double sigmaTofC(int n, double ptrk, double cost)
static TofCPID * instance()