BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Analysis/ParticleID/include/ParticleID/Tof1PID.h
Go to the documentation of this file.
1#ifndef ParticleID_Tof1PID_H
2#define ParticleID_Tof1PID_H
3//
4// Tof1PID 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
14class Tof1PID : public ParticleIDBase {
15
16public:
17 static Tof1PID* instance();
18 ~Tof1PID() { ; }
19
20 void init();
21 void calculate();
22 bool IsPidInfoValid() const { return ( m_ndof > 0 ); }
23 double chi( int n ) const { return m_chi[n]; }
24 double prob( int n ) const { return m_prob[n]; }
25 double offset( int n ) const { return m_offset[n]; }
26 double sigma( int n ) const { return m_sigma[n]; }
27 int ndof() const { return m_ndof; }
28 double mass2() const { return m_mass2; }
29 double ph1() const { return m_ph1; }
30 double zhit1() const { return m_zhit1; }
31 double path1() const { return m_path1; }
32 double tof1() const { return m_tof1; }
33 int neuronPID() const { return -1; }
34
35protected:
37 int neuronPIDCalculation() { return -1; }
38 int LikelihoodCalculation() { return -1; }
39 double offsetTof1( int n, int cntr, double ptrk, double ztof, double m_ph1, double charge );
40 double sigmaTof1( int n, int cntr, double ptrk, double ztof, double m_ph1, double charge );
41 double sampleQ0( double betagamma, double beta );
42
43private:
44 double m_chi[5];
45 double m_sigma[5];
46 double m_offset[5];
47 double m_prob[5];
48 double m_chimin;
49 double m_pdfmin;
50 int m_ndof;
51 double m_mass2;
52 double m_ph1;
53 double m_zhit1;
54 double m_path1;
55 double m_tof1;
56 double m_pars[15];
57
58private:
59 Tof1PID();
60 static Tof1PID* m_pointer;
61};
62
63#endif
const Int_t n
NTuple::Array< double > m_sigma
double sampleQ0(double betagamma, double beta)
Definition Tof1PID.cxx:242
double offsetTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
Definition Tof1PID.cxx:138
int particleIDCalculation()
Definition Tof1PID.cxx:59
void calculate()
Definition Tof1PID.cxx:55
void init()
Definition Tof1PID.cxx:39
static Tof1PID * instance()
Definition Tof1PID.cxx:16
double sigmaTof1(int n, int cntr, double ptrk, double ztof, double m_ph1, double charge)
Definition Tof1PID.cxx:202