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