CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecCgemDedx.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecCgemDedx_H
2#define RootEventData_TRecCgemDedx_H 1
3
4#include "TObject.h"
5
6class TRecCgemDedx : public TObject {
7
8public:
9
11
13
14
15 // void Clear(Option_t *option ="");
16
17 // void PrInt_t(Option_t *option="") const;
18 //get
19 Int_t trackId() const { return m_trackId; }
20 Int_t particleId() const { return m_particleId; }
21 Int_t status() const { return m_status; }
22 Int_t truncAlg() const { return m_trunc_alg; }
23 // Double_t prob(Int_t i) const { return m_prob[i]; }
24 Double_t chi(int i) const { return m_chi[i]; }
25 Double_t chiE() const { return m_chiE; }
26 Double_t chiMu() const { return m_chiMu; }
27 Double_t chiPi() const { return m_chiPi; }
28 Double_t chiK() const { return m_chiK; }
29 Double_t chiP() const { return m_chiP; }
30
31 Int_t numGoodHits() const { return m_numGoodHits; }
32 Int_t numTotalHits() const { return m_numTotalHits; }
33
34 Double_t probPH() const { return m_probPH; }
35 Double_t normPH() const { return m_normPH; }
36 Double_t errorPH() const { return m_errorPH; }
37 Double_t twentyPH() const { return m_twentyPH; }
38
39 Double_t dedxExpect(int pid) const { return m_dedx_exp[pid-1]; }
40 Double_t sigmaDedx(int pid) const { return m_sigma_dedx[pid-1]; }
41 Double_t pidProb(int pid) const { return m_pid_prob[pid-1]; }
42
43 Double_t dedxHit() const {return m_dedx_hit; }
44 Double_t dedxEsat() const {return m_dedx_esat; }
45 Double_t dedxNoRun() const {return m_dedx_norun; }
46 Double_t dedxMoment() const {return m_dedx_momentum; }
47
48 //set
49 void setDedxHit(const Double_t dedx_hit) { m_dedx_hit = dedx_hit; }
50 void setDedxEsat(const Double_t dedx_esat) { m_dedx_esat = dedx_esat; }
51 void setDedxNoRun(const Double_t dedx_norun) { m_dedx_norun = dedx_norun; }
52 void setDedxMoment(const Double_t dedx_momentum){ m_dedx_momentum = dedx_momentum; }
53
54 void setTrackId (const Int_t trackId ) { m_trackId = trackId ; }
55 void setParticleId(const Int_t particleId) { m_particleId = particleId; }
56 void setStatus (const Int_t status) { m_status=status; }
57 void setTruncAlg(const Int_t trunc_alg) { m_trunc_alg = trunc_alg; }
58
59 void setChiE(const Double_t chiE) { m_chiE = chiE; }
60 void setChiMu(const Double_t chiMu) { m_chiMu = chiMu; }
61 void setChiPi(const Double_t chiPi) { m_chiPi = chiPi; }
62 void setChiK(const Double_t chiK) { m_chiK = chiK; }
63 void setChiP(const Double_t chiP) { m_chiP = chiP; }
64
65 void setNumGoodHits(const Int_t numGoodHits) { m_numGoodHits = numGoodHits; }
66 void setNumTotalHits(const Int_t numTotalHits) { m_numTotalHits = numTotalHits; }
67
68 void setProbPH(const Double_t probPH) { m_probPH = probPH; }
69 void setNormPH(const Double_t normPH) { m_normPH = normPH; }
70 void setErrorPH(const Double_t errorPH) { m_errorPH = errorPH; }
71 void setTwentyPH(const Double_t twentyPH) { m_twentyPH = twentyPH; }
72
73 void setChi( double* chi) {
74 for(int i =0; i<5 ; i++) m_chi[i]= chi[i];
75 }
76
77 void setDedxExpect(double* dedx_exp) {
78 for(int i = 0; i < 5; i++)
79 m_dedx_exp[i] = dedx_exp[i] ;
80 }
81 void setSigmaDedx(double* sigma_dedx) {
82 for(int i = 0; i < 5; i++)
83 m_sigma_dedx[i] = sigma_dedx[i] ;
84 }
85 void setPidProb(double* pid_prob) {
86 for(int i = 0; i < 5; i++)
87 m_pid_prob[i] = pid_prob[i] ;
88 }
89
90private:
91 Double_t m_dedx_hit; //double trucation mean of hit-level calib
92 Double_t m_dedx_esat; //double trucation mean of hit-level+electron saturation calib
93 Double_t m_dedx_norun; //double trucation mean of no run gain calib
94 Double_t m_dedx_momentum; //dE/dx calib used momentum
95
96 Int_t m_trackId; //Track Id wensp Add 2005-10-19
97 Int_t m_particleId; //Particle ID from De/Dx fit
98 Int_t m_status; //Status
99 Int_t m_trunc_alg; //truncate method
100
101 //Double_t m_prob[5]; //Probility // Changed on Oct. 10 following by Wangdy
102 Double_t m_chiE; //Number of sigama from e
103 Double_t m_chiMu; //Number of sigama from muon
104 Double_t m_chiPi; //Number of sigama from pion
105 Double_t m_chiK; //Number of sigama from k
106 Double_t m_chiP; //Number of sigama from p
107 Int_t m_numGoodHits; //No. of good de/dx hits(exclude overflow)
108 Int_t m_numTotalHits; //No. of good de/dx hits(include overflow)
109 Double_t m_probPH; //Most probable pulse height from truncated mean
110 Double_t m_normPH; //normalizd pulse height // Changed on Oct. 10 following by Wangdy
111 Double_t m_errorPH; //resolution of truncated mean
112 Double_t m_twentyPH; //de/dx value of bitrunction rate equal to 20%
113 Double_t m_chi[5]; //Number of Chi_dEdx for different particles
114 //0: e 1: mu 2: pi 3: K 4:P
115 Double_t m_dedx_exp[5]; // expected value of dE/dx for 5 particle hypotheses
116 Double_t m_sigma_dedx[5]; // sigma value of dE/dx for 5 particle hypotheses
117 Double_t m_pid_prob[5]; // probability for each of the 5 particle hypotheses
118
119
120 ClassDef(TRecCgemDedx,4)
121};
122
123#endif
Double_t dedxNoRun() const
void setDedxHit(const Double_t dedx_hit)
void setChiE(const Double_t chiE)
void setChiP(const Double_t chiP)
Double_t dedxEsat() const
void setChiPi(const Double_t chiPi)
Double_t twentyPH() const
Double_t chiK() const
void setChiMu(const Double_t chiMu)
Double_t chiP() const
void setDedxNoRun(const Double_t dedx_norun)
void setParticleId(const Int_t particleId)
Int_t numGoodHits() const
void setTrackId(const Int_t trackId)
void setNumGoodHits(const Int_t numGoodHits)
void setChiK(const Double_t chiK)
void setTruncAlg(const Int_t trunc_alg)
void setTwentyPH(const Double_t twentyPH)
Int_t particleId() const
Double_t chiE() const
Double_t normPH() const
Double_t dedxHit() const
Double_t errorPH() const
void setSigmaDedx(double *sigma_dedx)
void setDedxMoment(const Double_t dedx_momentum)
Int_t trackId() const
Int_t numTotalHits() const
Double_t dedxExpect(int pid) const
void setStatus(const Int_t status)
void setNumTotalHits(const Int_t numTotalHits)
Double_t chiPi() const
Double_t chi(int i) const
Double_t dedxMoment() const
Int_t status() const
Double_t pidProb(int pid) const
Double_t chiMu() const
Double_t sigmaDedx(int pid) const
void setPidProb(double *pid_prob)
void setErrorPH(const Double_t errorPH)
void setNormPH(const Double_t normPH)
void setDedxEsat(const Double_t dedx_esat)
Int_t truncAlg() const
void setProbPH(const Double_t probPH)
void setDedxExpect(double *dedx_exp)
void setChi(double *chi)
Double_t probPH() const