BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/TEmcTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TEmcTrack_H
2#define RootEventData_TEmcTrack_H 1
3
4#include "TObject.h"
5#include <cmath>
6
7class TEmcTrack : public TObject {
8
9 public:
10
12 ~TEmcTrack();
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 numHits()const { return m_numHits; }
21 Int_t status() const { return m_status; }
22 Int_t cellId() const { return m_cellId; }
23 Int_t module() const { return m_module; }
24 Double_t x() const { return m_x; }
25 Double_t y() const { return m_y; }
26 Double_t z() const { return m_z; }
27 Double_t theta() const {
28 return (m_x == 0.0 && m_y == 0.0 && m_z == 0.0) ? 0.0 :
29 std::atan2(std::sqrt(m_x*m_x+m_y*m_y),m_z); }
30 Double_t phi() const {
31 return (m_x == 0.0 && m_y == 0.0) ? 0.0 : std::atan2(m_y,m_x);}
32 Double_t dx() const;
33 Double_t dy() const;
34 Double_t dz() const;
35 Double_t dtheta() const { return m_dTheta; }
36 Double_t dphi() const { return m_dPhi; }
37 Double_t energy() const { return m_energy; }
38 Double_t dE() const { return m_dE; }
39 Double_t eSeed() const {return m_eSeed;}
40 Double_t e3x3() const {return m_e3x3;}
41 Double_t e5x5() const {return m_e5x5;}
42 Double_t time() const {return m_time;}
43 Double_t secondMoment() const {return m_secondMoment;}
44 Double_t latMoment() const {return m_latMoment;}
45 Double_t a20Moment() const {return m_a20Moment;}
46 Double_t a42Moment() const {return m_a42Moment;}
47 Double_t err(Int_t i) const { return m_err[i]; }
48
49 //Set
50 void setTrackId(const Int_t trackId ) { m_trackId = trackId; }
51 void setNumHits(const Int_t hit ) { m_numHits = hit; }
52 void setStatus(const Int_t st ) { m_status = st; }
53 void setCellId(const Int_t id ) { m_cellId = id; }
54 void setModule(const Int_t mod) { m_module = mod; }
55 void setX(const Double_t x ) { m_x = x ; }
56 void setY(const Double_t y ) { m_y = y ; }
57 void setZ(const Double_t z ) { m_z = z ; }
58 void setEnergy(const Double_t e ) { m_energy = e ; }
59 void setDE(const Double_t de ) { m_dE = de; }
60 void setDtheta(const Double_t dt ) { m_dTheta = dt; }
61 void setDphi(const Double_t dpi ) { m_dPhi = dpi ; }
62 void setESeed(const Double_t eSeed ) { m_eSeed = eSeed ; }
63 void setE3x3(const Double_t e3x3 ) { m_e3x3 = e3x3 ; }
64 void setE5x5(const Double_t e5x5 ) { m_e5x5 = e5x5 ; }
65 void setTime(const Double_t time ) { m_time = time ; }
66 void setSecondMoment(const Double_t secondMoment) { m_secondMoment = secondMoment; }
67 void setLatMoment(const Double_t latMoment) { m_latMoment = latMoment; }
68 void setA20Moment(const Double_t a20Moment) { m_a20Moment = a20Moment; }
69 void setA42Moment(const Double_t a42Moment) { m_a42Moment = a42Moment; }
70 void setErr(const Double_t err[6] );
71
72 private:
73 Int_t m_trackId; //Track Id wensp Add 2005-10-19
74 Int_t m_numHits; // Total number of hits
75 Int_t m_status; // Status
76 Int_t m_cellId; // Cell ID
77 Int_t m_module; // Module
78 Double_t m_x; // Shower coordinates and errors
79 Double_t m_y;
80 Double_t m_z;
81 Double_t m_dTheta;
82 Double_t m_dPhi;
83 Double_t m_energy; // Total energy observed in Emc
84 Double_t m_dE;
85 Double_t m_eSeed; //// Energy of seed, only one
86 Double_t m_e3x3; //Energy of 3x3 crystals, totally 9 ones
87 Double_t m_e5x5; //Energy of 5x5 crystals, totally 25 ones
88 Double_t m_time; //Time measurement
89 Double_t m_secondMoment; //add 2006-07-03
90 Double_t m_latMoment; //Lateral moment
91 Double_t m_a20Moment; //Zernike moment
92 Double_t m_a42Moment;
93 Double_t m_err[6]; // Error Matrix: 0:dxx, 1:dyy, 2:dzz
94 // 3:dxy, 4:dxz, 5:dyz
95
96 ClassDef(TEmcTrack,2)
97};
98
99
100#endif //TrackRootData_TEmcTrack_H
101
TGraph2DErrors * dt
Definition: McCor.cxx:45
void setErr(const Double_t err[6])
Definition: TEmcTrack.cxx:20
Double_t dx() const
Definition: TEmcTrack.cxx:40
Double_t dy() const
Definition: TEmcTrack.cxx:47
Double_t dz() const
Definition: TEmcTrack.cxx:54