BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RootEventData/RootEventData/TMucTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TMucTrack_H
2#define RootEventData_TMucTrack_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9class TMucTrack : public TObject {
10
11public:
12
14
16
17
18 // void Clear(Option_t *option ="");
19
20 // void PrInt_t(Option_t *option="") const;
21
22//Get
23 Int_t trackId() const { return m_trackId; }
24 Int_t id() const { return m_id; }
25 Int_t status() const { return m_status; }
26 Int_t type() const { return m_type; }
27
28 Int_t startPart() const { return m_startPart; } // start position of track locates in which part
29 Int_t endPart() const { return m_endPart; } // end position of track locates in which part
30 Int_t brLastLayer() const { return m_brLastLayer; } // last layer with hits in barrel
31 Int_t ecLastLayer() const { return m_ecLastLayer; } // last layer with hits in end cap
32 Int_t numHits() const { return m_numHits; } // total hits on the track
33 Int_t numLayers() const { return m_numLayers; } // number of layers with hits
34 Int_t maxHitsInLayer() const { return m_maxHitsInLayer; }
35
36 Double_t depth() const { return m_depth; } // depth of the track transport in iron
37 Double_t chi2() const { return m_chi2; }
38 Int_t dof() const { return m_dof; }
39 Double_t rms() const { return m_rms; }
40
41 Double_t xPos() const { return m_xPos; } // position on the start of track in muc (vertex)
42 Double_t yPos() const { return m_yPos; }
43 Double_t zPos() const { return m_zPos; }
44
45 Double_t xPosSigma() const {return m_xPosSigma; }
46 Double_t yPosSigma() const {return m_yPosSigma; }
47 Double_t zPosSigma() const {return m_zPosSigma; }
48
49 Double_t px() const { return m_px; } // momentum on the start of track in muc
50 Double_t py() const { return m_py; }
51 Double_t pz() const { return m_pz; }
52
53 Double_t distance() const {return m_distance; }
54 Double_t deltaPhi() const {return m_deltaPhi; }
55
56 //vector<Int_t> vecHits() const { return m_vecHits ;}
57 //added by LI Chunhua 2013/02/01
58 Double_t kalRechi2() const {return m_kalrechi2;}
59 Int_t kaldof() const {return m_kaldof;}
60 Double_t kaldepth() const {return m_kaldepth;}
61 Int_t kalbrLastLayer() const {return m_kalbrLastLayer;}
62 Int_t kalecLastLayer() const {return m_kalecLastLayer;}
63 //**********************
64
65 // Set
66 void setTrackId(Int_t trackId) { m_trackId = trackId ;}
67 void setId(Int_t id) { m_id = id ; }
68 void setStatus(Int_t st) { m_status = st; }
69 void setType(Int_t type) { m_type = type; }
70
71 void setStartPart(Int_t part) {m_startPart = part; }
72 void setEndPart(Int_t part) {m_endPart = part; }
73 void setBrLastLayer(Int_t layer) {m_brLastLayer = layer; }
74 void setEcLastLayer(Int_t layer) {m_ecLastLayer = layer; }
75 void setNumHits( Int_t numHits) { m_numHits = numHits; }
76 void setNumLayers(Int_t numLayers) { m_numLayers = numLayers; }
77 void setMaxHitsInLayer(Int_t maxHits) { m_maxHitsInLayer = maxHits; }
78
79 void setDepth( Double_t depth) { m_depth = depth; }
80 void setChi2(Double_t chi2) { m_chi2 = chi2; }
81 void setDof(Int_t dof) { m_dof = dof ; }
82 void setRms(Double_t rms) { m_rms = rms ; }
83
84 void setXPos(Double_t x) { m_xPos = x; }
85 void setYPos(Double_t y) { m_yPos = y; }
86 void setZPos(Double_t z) { m_zPos = z; }
87
88 void setXPosSigma(Double_t x) { m_xPosSigma = x; }
89 void setYPosSigma(Double_t y) { m_yPosSigma = y; }
90 void setZPosSigma(Double_t z) { m_zPosSigma = z; }
91
92 void setPx( Double_t px) { m_px = px; }
93 void setPy( Double_t py) { m_py = py; }
94 void setPz( Double_t pz) { m_pz = pz; }
95
96 void setDistance( double dist){m_distance = dist; }
97 void setDeltaPhi( double dphi){m_deltaPhi = dphi; }
98
99 //added by LI Chunhua
100 void setkalRechi2(Double_t ch){m_kalrechi2=ch;}
101 void setkalDof(Int_t f){m_kaldof = f;}
102 void setkalDepth(Double_t de){m_kaldepth = de;}
103 void setkalbrLastLayer(Int_t br){m_kalbrLastLayer = br;}
104 void setkalecLastLayer(Int_t ec){m_kalecLastLayer = ec;}
105 //******************
106 //void setVecHits(vector<Int_t>& vecHits) { m_vecHits = vecHits; }
107
108
109private:
110 Int_t m_trackId; // Track ID wensp Add 2005-10-19
111 Int_t m_id; // Muc Identifier
112 Int_t m_status; // Muc Status
113 Int_t m_type; // Method of judge?
114
115 Int_t m_startPart; // In which part does the start position of track locate
116 Int_t m_endPart; // In which part does the end position of track locate
117 Int_t m_brLastLayer; // Last layer with hits in barrel
118 Int_t m_ecLastLayer; // Last layer with hits in endcap
119 Int_t m_numHits; // Number of hits on track
120 Int_t m_numLayers; // Number of layer with hits
121 Int_t m_maxHitsInLayer; // Max number of hits in a layer
122
123 Double_t m_depth; // Depth of iron penetrated
124 Double_t m_chi2; // Fit parameters
125 Int_t m_dof;
126 Double_t m_rms;
127
128 Double_t m_xPos; // x position of muc track vertex
129 Double_t m_yPos; // y position of muc track vertex
130 Double_t m_zPos; // z position of muc track vertex
131
132 Double_t m_xPosSigma;
133 Double_t m_yPosSigma;
134 Double_t m_zPosSigma;
135
136 Double_t m_px; // px on muc track vertex
137 Double_t m_py; // py on muc track vertex
138 Double_t m_pz; // pz on muc track vertex
139
140 Double_t m_distance;
141 Double_t m_deltaPhi;
142
143 //vector<Int_t> m_vecHits; //// hit list of the track wensp Add 2005-10-20
144 //added by LI Chunhua
145 Double_t m_kalrechi2;
146 Int_t m_kaldof;
147 Double_t m_kaldepth;
148 Int_t m_kalbrLastLayer;
149 Int_t m_kalecLastLayer;
150
151 ClassDef(TMucTrack,3)
152};
153
154#endif
Double_t x[10]
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")