BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
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
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
Definition: TofPID.h:17
int LikelihoodCalculation()
Definition: TofPID.h:41
int particleIDCalculation()
Definition: TofPID.cxx:54
double getweight1() const
Definition: TofPID.h:32
double prob(int n) const
Definition: TofPID.h:28
void init()
Definition: TofPID.cxx:24
double getweight2() const
Definition: TofPID.h:33
double sigma(int n) const
Definition: TofPID.h:30
bool IsPidInfoValid() const
Definition: TofPID.h:26
double chi(int n) const
Definition: TofPID.h:27
void calculate()
Definition: TofPID.cxx:48
double chilayer2(int n) const
Definition: TofPID.cxx:42
int neuronPIDCalculation()
Definition: TofPID.h:40
int ndof() const
Definition: TofPID.h:31
double offset(int n) const
Definition: TofPID.h:29
~TofPID()
Definition: TofPID.h:22
double chilayer1(int n) const
Definition: TofPID.cxx:36
static TofPID * instance()
Definition: TofPID.cxx:15