BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcPID.h
Go to the documentation of this file.
1#ifndef ParticleID_EmcPID_H
2#define ParticleID_EmcPID_H
3//
4// EmcPID package: particle identification with Emc energy deposits
5//
6// In 1st version, EmcPID is not ready
7//
8// Author: K.L. He 11/13/2005, created
9//
10
12
13class TMultiLayerPerceptron;
14class TTree;
15
16class EmcPID : public ParticleIDBase {
17
18 public:
19
20 static EmcPID *instance();
21 ~EmcPID(){;}
22
23 void init();
24 void calculate();
25 bool IsPidInfoValid() const {return (m_ndof> 0);}
26 double chi(int n) const {return m_chi[n];}
27 double prob(int n) const {return m_prob[n];}
28 int ndof() const {return m_ndof;}
29 double energy() const{return m_energy;}
30 double eseed() const{return m_eseed;}
31 double e3x3() const{return m_e3x3;}
32 double e5x5() const{return m_e5x5;}
33 double delta_theta() const{return m_delta_theta;}
34 double delta_phi() const{return m_delta_phi;}
35 double secondmoment() const{return m_secondmoment;}
36 double val_emc1() const{return m_val_emc;}
37 int neuronPID() const {return -1;}
38 double pars(int n) const{return params_emc1[n];}
39
40 protected:
41
43 int neuronPIDCalculation() {return -1;}
44 int LikelihoodCalculation() {return -1;}
45
46 private:
47 double m_chi[5];
48 double m_prob[5];
49 double m_chimin;
50 int m_ndof;
51 double m_ptrk;
52 double m_pt;
53 int m_type;
54 double m_energy;
55 double m_eseed;
56 double m_e3x3;
57 double m_e5x5;
58 double m_delta_theta;
59 double m_delta_phi;
60 double m_secondmoment;
61 double m_latmoment;
62 double m_a20moment;
63 double m_a42moment;
64 double m_val_emc;
65 double params_emc1[9];
66 double m_e_h[18][300];
67 double m_m_h[18][300];
68 double m_p_h[18][300];
69 private:
70 static TMultiLayerPerceptron *m_mlp_emc;
71 static TTree *m_trainTree_emconly;
72
73
74 private:
75 EmcPID();
76 static EmcPID *m_pointer;
77};
78
79#endif
const Int_t n
Definition: EmcPID.h:16
int neuronPID() const
Definition: EmcPID.h:37
double e3x3() const
Definition: EmcPID.h:31
double e5x5() const
Definition: EmcPID.h:32
double energy() const
Definition: EmcPID.h:29
void calculate()
Definition: EmcPID.cxx:153
double eseed() const
Definition: EmcPID.h:30
double secondmoment() const
Definition: EmcPID.h:35
void init()
Definition: EmcPID.cxx:95
double prob(int n) const
Definition: EmcPID.h:27
int neuronPIDCalculation()
Definition: EmcPID.h:43
int ndof() const
Definition: EmcPID.h:28
double delta_theta() const
Definition: EmcPID.h:33
double delta_phi() const
Definition: EmcPID.h:34
double chi(int n) const
Definition: EmcPID.h:26
int particleIDCalculation()
Definition: EmcPID.cxx:157
bool IsPidInfoValid() const
Definition: EmcPID.h:25
static EmcPID * instance()
Definition: EmcPID.cxx:23
int LikelihoodCalculation()
Definition: EmcPID.h:44
~EmcPID()
Definition: EmcPID.h:21
double pars(int n) const
Definition: EmcPID.h:38
double val_emc1() const
Definition: EmcPID.h:36