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