CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
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
TGraphErrors * dt
Definition AbsCor.cxx:72
Double_t time() const
Definition TEmcTrack.h:42
void setTrackId(const Int_t trackId)
Definition TEmcTrack.h:50
void setA20Moment(const Double_t a20Moment)
Definition TEmcTrack.h:68
Double_t a42Moment() const
Definition TEmcTrack.h:46
void setEnergy(const Double_t e)
Definition TEmcTrack.h:58
void setESeed(const Double_t eSeed)
Definition TEmcTrack.h:62
void setNumHits(const Int_t hit)
Definition TEmcTrack.h:51
void setDtheta(const Double_t dt)
Definition TEmcTrack.h:60
Int_t trackId() const
Definition TEmcTrack.h:19
void setX(const Double_t x)
Definition TEmcTrack.h:55
void setErr(const Double_t err[6])
Definition TEmcTrack.cxx:20
Double_t eSeed() const
Definition TEmcTrack.h:39
Double_t err(Int_t i) const
Definition TEmcTrack.h:47
void setModule(const Int_t mod)
Definition TEmcTrack.h:54
Int_t status() const
Definition TEmcTrack.h:21
void setSecondMoment(const Double_t secondMoment)
Definition TEmcTrack.h:66
void setDE(const Double_t de)
Definition TEmcTrack.h:59
Double_t dx() const
Definition TEmcTrack.cxx:40
Double_t energy() const
Definition TEmcTrack.h:37
Double_t y() const
Definition TEmcTrack.h:25
Double_t dtheta() const
Definition TEmcTrack.h:35
void setY(const Double_t y)
Definition TEmcTrack.h:56
Double_t e3x3() const
Definition TEmcTrack.h:40
void setA42Moment(const Double_t a42Moment)
Definition TEmcTrack.h:69
Double_t theta() const
Definition TEmcTrack.h:27
Double_t secondMoment() const
Definition TEmcTrack.h:43
Int_t module() const
Definition TEmcTrack.h:23
void setZ(const Double_t z)
Definition TEmcTrack.h:57
Double_t phi() const
Definition TEmcTrack.h:30
Double_t x() const
Definition TEmcTrack.h:24
Double_t a20Moment() const
Definition TEmcTrack.h:45
Double_t dy() const
Definition TEmcTrack.cxx:47
Double_t z() const
Definition TEmcTrack.h:26
Double_t dE() const
Definition TEmcTrack.h:38
void setTime(const Double_t time)
Definition TEmcTrack.h:65
Int_t cellId() const
Definition TEmcTrack.h:22
void setCellId(const Int_t id)
Definition TEmcTrack.h:53
Double_t dz() const
Definition TEmcTrack.cxx:54
void setE3x3(const Double_t e3x3)
Definition TEmcTrack.h:63
Int_t numHits() const
Definition TEmcTrack.h:20
void setE5x5(const Double_t e5x5)
Definition TEmcTrack.h:64
Double_t e5x5() const
Definition TEmcTrack.h:41
Double_t dphi() const
Definition TEmcTrack.h:36
void setStatus(const Int_t st)
Definition TEmcTrack.h:52
void setLatMoment(const Double_t latMoment)
Definition TEmcTrack.h:67
Double_t latMoment() const
Definition TEmcTrack.h:44
void setDphi(const Double_t dpi)
Definition TEmcTrack.h:61