BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/include/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:
10
12
13 // void Clear(Option_t *option ="");
14
15 // void PrInt_t(Option_t *option="") const;
16 // get
17 Int_t mdcTrackId() const { return m_mdcTrackId; }
18 Int_t mdcKalTrackId() const { return m_mdcKalTrackId; }
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]; }
40 Double_t sigmaDedx( int pid ) const { return m_sigma_dedx[pid]; }
41 Double_t pidProb( int pid ) const { return m_pid_prob[pid]; }
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 setMdcTrackId( const int mdcTrackId ) { m_mdcTrackId = mdcTrackId; }
55 void setMdcKalTrackId( const int mdcKalTrackId ) { m_mdcKalTrackId = mdcKalTrackId; }
56 void setTrackId( const Int_t trackId ) { m_trackId = trackId; }
57 void setParticleId( const Int_t particleId ) { m_particleId = particleId; }
58 void setStatus( const Int_t status ) { m_status = status; }
59 void setTruncAlg( const Int_t trunc_alg ) { m_trunc_alg = trunc_alg; }
60
61 void setChiE( const Double_t chiE ) { m_chiE = chiE; }
62 void setChiMu( const Double_t chiMu ) { m_chiMu = chiMu; }
63 void setChiPi( const Double_t chiPi ) { m_chiPi = chiPi; }
64 void setChiK( const Double_t chiK ) { m_chiK = chiK; }
65 void setChiP( const Double_t chiP ) { m_chiP = chiP; }
66
67 void setNumGoodHits( const Int_t numGoodHits ) { m_numGoodHits = numGoodHits; }
68 void setNumTotalHits( const Int_t numTotalHits ) { m_numTotalHits = numTotalHits; }
69
70 void setProbPH( const Double_t probPH ) { m_probPH = probPH; }
71 void setNormPH( const Double_t normPH ) { m_normPH = normPH; }
72 void setErrorPH( const Double_t errorPH ) { m_errorPH = errorPH; }
73 void setTwentyPH( const Double_t twentyPH ) { m_twentyPH = twentyPH; }
74
75 void setChi( double* chi ) {
76 for ( int i = 0; i < 5; i++ ) m_chi[i] = chi[i];
77 }
78
79 void setDedxExpect( double* dedx_exp ) {
80 for ( int i = 0; i < 5; i++ ) m_dedx_exp[i] = dedx_exp[i];
81 }
82 void setSigmaDedx( double* sigma_dedx ) {
83 for ( int i = 0; i < 5; i++ ) m_sigma_dedx[i] = sigma_dedx[i];
84 }
85 void setPidProb( double* pid_prob ) {
86 for ( int i = 0; i < 5; i++ ) m_pid_prob[i] = pid_prob[i];
87 }
88
89private:
90 Double_t m_dedx_hit; // double trucation mean of hit-level calib
91 Double_t m_dedx_esat; // double trucation mean of hit-level+electron saturation calib
92 Double_t m_dedx_norun; // double trucation mean of no run gain calib
93 Double_t m_dedx_momentum; // dE/dx calib used momentum
94
95 Int_t m_trackId; // Track Id wensp Add 2005-10-19
96 Int_t m_mdcTrackId;
97 Int_t m_mdcKalTrackId;
98 Int_t m_particleId; // Particle ID from De/Dx fit
99 Int_t m_status; // Status
100 Int_t m_trunc_alg; // truncate method
101
102 // Double_t m_prob[5]; //Probility // Changed on Oct. 10 following by Wangdy
103 Double_t m_chiE; // Number of sigama from e
104 Double_t m_chiMu; // Number of sigama from muon
105 Double_t m_chiPi; // Number of sigama from pion
106 Double_t m_chiK; // Number of sigama from k
107 Double_t m_chiP; // Number of sigama from p
108 Int_t m_numGoodHits; // No. of good de/dx hits(exclude overflow)
109 Int_t m_numTotalHits; // No. of good de/dx hits(include overflow)
110 Double_t m_probPH; // Most probable pulse height from truncated mean
111 Double_t m_normPH; // normalizd pulse height // Changed on Oct. 10 following by Wangdy
112 Double_t m_errorPH; // resolution of truncated mean
113 Double_t m_twentyPH; // de/dx value of bitrunction rate equal to 20%
114 Double_t m_chi[5]; // Number of Chi_dEdx for different particles
115 // 0: e 1: mu 2: pi 3: K 4:P
116 Double_t m_dedx_exp[5]; // expected value of dE/dx for 5 particle hypotheses
117 Double_t m_sigma_dedx[5]; // sigma value of dE/dx for 5 particle hypotheses
118 Double_t m_pid_prob[5]; // probability for each of the 5 particle hypotheses
119
120 ClassDef( TRecMdcDedx, 5 )
121};
122
123#endif
void setDedxMoment(const Double_t dedx_momentum)