CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Analysis/ParticleID/ParticleID-00-04-55/ParticleID/TofPID.h
Go to the documentation of this file.
1#ifndef ParticleID_TofPID_H
2#define ParticleID_TofPID_H
3//
4// TofPID 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
12
13#include "ParticleID/ParticleIDBase.h"
14#include "ParticleID/Tof1PID.h"
15#include "ParticleID/Tof2PID.h"
16
17class TofPID : public ParticleIDBase {
18
19 public:
20
21 static TofPID * instance();
22 ~TofPID(){;}
23
24 void init();
25 void calculate();
26 bool IsPidInfoValid() const {return (m_ndof > 0); }
27 double chi(int n) const {return m_chi[n];}
28 double prob(int n) const {return m_prob[n];}
29 double offset(int n) const {return m_offset[n];}
30 double sigma(int n) const {return m_sigma[n];}
31 int ndof() const {return m_ndof;}
32 double getweight1() const{ return weight1;}
33 double getweight2() const{ return weight2;}
34 double chilayer1(int n) const;
35 double chilayer2(int n) const;
36
37 protected:
38
40 int neuronPIDCalculation() { return -1;}
41 int LikelihoodCalculation() {return -1;}
42
43 private:
44 bool val_tof1;
45 bool val_tof2;
46 double m_chi[5];
47 double m_offset[5];
48 double m_prob[5];
49 double m_sigma[5];
50 double m_chimin;
51 double m_pdfmin;
52 int m_ndof;
53 Tof1PID* m_tof1pid;
54 Tof2PID* m_tof2pid;
55 double weight1;
56 double weight2;
57 private:
58 TofPID();
59 static TofPID *m_pointer;
60};
61
62#endif
const Int_t n
int particleIDCalculation()
Definition: TofPID.cxx:54
void init()
Definition: TofPID.cxx:24
void calculate()
Definition: TofPID.cxx:48
double chilayer2(int n) const
Definition: TofPID.cxx:42
double chilayer1(int n) const
Definition: TofPID.cxx:36
static TofPID * instance()
Definition: TofPID.cxx:15