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