BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TRecEmcShower.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecEmcShower_H
2#define RootEventData_TRecEmcShower_H 1
3
4#include "TObject.h"
5#include <vector>
6#include <map>
7#include <iostream>
8
9using namespace std;
10
11class TRecEmcShower : public TObject {
12
13 public:
14
17
18
19 // void Clear(Option_t *option ="");
20
21 // void PrInt_t(Option_t *option="") const;
22 //Get
23 Int_t trackId()const { return m_trackId; }
24 Int_t numHits()const { return m_numHits; }
25 Int_t status() const { return m_status; }
26 Int_t cellId() const { return m_cellId; }
27 Int_t module() const { return m_module; }
28 Double_t x() const { return m_x; }
29 Double_t y() const { return m_y; }
30 Double_t z() const { return m_z; }
31 Double_t theta() const { return m_theta; }
32 Double_t dtheta() const { return m_dTheta; }
33 Double_t phi() const { return m_phi; }
34 Double_t dphi() const { return m_dPhi; }
35 Double_t energy() const { return m_energy; }
36 Double_t dE() const { return m_dE; }
37 Double_t eSeed() const {return m_eSeed;}
38 Double_t e3x3() const {return m_e3x3;}
39 Double_t e5x5() const {return m_e5x5;}
40 Double_t eAll() const { return m_eall; }
41 Double_t eLepton() const { return m_elepton; }
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 map<Int_t, Double_t> cellIdMap() const { return m_cellIdMap; }
50 vector<Int_t> cellId3x3() const { return m_cellId3x3; }
51 vector<Int_t> cellId5x5() const { return m_cellId5x5; }
52 Int_t clusterId() const { return m_clusterId; }
53
54 //Set
55 void setTrackId(const Int_t trackId ) { m_trackId = trackId; }
56 void setNumHits(const Int_t hit ) { m_numHits = hit; }
57 void setStatus(const Int_t st ) { m_status = st; }
58 void setCellId(const Int_t id ) { m_cellId = id; }
59 void setModule(const Int_t mod) { m_module = mod; }
60 void setX(const Double_t x ) { m_x = x ; }
61 void setY(const Double_t y ) { m_y = y ; }
62 void setZ(const Double_t z ) { m_z = z ; }
63 void setEnergy(const Double_t e ) { m_energy = e ; }
64 void setDE(const Double_t de ) { m_dE = de; }
65 void setTheta(const Double_t theta ) { m_theta = theta ; }
66 void setDtheta(const Double_t dt ) { m_dTheta = dt; }
67 void setPhi(const Double_t pi ) { m_phi = pi ; }
68 void setDphi(const Double_t dpi ) { m_dPhi = dpi ; }
69 void setESeed(const Double_t eSeed ) { m_eSeed = eSeed ; }
70 void setE3x3(const Double_t e3x3 ) { m_e3x3 = e3x3 ; }
71 void setE5x5(const Double_t e5x5 ) { m_e5x5 = e5x5 ; }
72 void setEAll(const Double_t eall ) { m_eall = eall ; }
73 void setELepton(const Double_t elepton ) { m_elepton = elepton ; }
74 void setTime(const Double_t time) { m_time = time; }
75 void setSecondMoment(const Double_t secondMoment) { m_secondMoment = secondMoment; }
76 void setLatMoment(const Double_t latMoment) { m_latMoment = latMoment; }
77 void setA20Moment(const Double_t a20Moment) { m_a20Moment = a20Moment; }
78 void setA42Moment(const Double_t a42Moment) { m_a42Moment = a42Moment; }
79 void setErr(const Double_t err[6] );
80
81 void setCellIdMap(const map<Int_t, Double_t>& cellIdMap) { m_cellIdMap = cellIdMap; }
82 void setCellId3x3(const vector<Int_t>& cellId3x3) { m_cellId3x3 = cellId3x3; }
83 void setCellId5x5(const vector<Int_t>& cellId5x5) { m_cellId5x5 = cellId5x5; }
84 void setClusterId(const Int_t clusterId) { m_clusterId = clusterId; }
85 void setTRecEmcShower(const TRecEmcShower *emcshower){
86 m_trackId = emcshower->trackId();
87 m_numHits = emcshower->numHits();
88 m_status = emcshower->status();
89 m_cellId = emcshower->cellId();
90 m_module = emcshower->module();
91 m_x = emcshower->x();
92 m_y = emcshower->y();
93 m_z = emcshower->z();
94 m_theta = emcshower->theta();
95 m_dTheta = emcshower->dtheta();
96 m_phi = emcshower->phi();
97 m_dPhi = emcshower->dphi();
98 m_energy = emcshower->energy();
99 m_dE = emcshower->dE();
100 m_eSeed = emcshower->eSeed();
101 m_e3x3 = emcshower->e3x3();
102 m_e5x5 = emcshower->e5x5();
103 m_eall = emcshower->eAll();
104 m_elepton = emcshower->eLepton();
105 m_time = emcshower->time();
106 m_secondMoment = emcshower->secondMoment();
107 m_latMoment = emcshower->latMoment();
108 m_a20Moment = emcshower->a20Moment();
109 m_a42Moment = emcshower->a42Moment();
110 for(int i=0;i<6;i++){
111 m_err[i] = emcshower->err(i);
112 }
113 m_cellIdMap = emcshower->cellIdMap();
114 m_cellId3x3 = emcshower->cellId3x3();
115 m_cellId5x5 = emcshower->cellId5x5();
116 m_clusterId = emcshower->clusterId();
117 }
118 private:
119 Int_t m_trackId; //Track Id wensp Add 2005-10-19
120 Int_t m_numHits; // Total number of hits
121 Int_t m_status; // Status
122 Int_t m_cellId; // Cell ID
123 Int_t m_module; // Module
124 Double_t m_x; // Shower coordinates and errors
125 Double_t m_y;
126 Double_t m_z;
127 Double_t m_theta; // Shower Counter angles and errors
128 Double_t m_dTheta;
129 Double_t m_phi;
130 Double_t m_dPhi;
131 Double_t m_energy; // Total energy observed in Emc
132 Double_t m_dE;
133 Double_t m_eSeed; //// Energy of seed, only one
134 Double_t m_e3x3; // Energy of 3x3 crystals, totally 9 ones
135 Double_t m_e5x5; // Energy of 5x5 crystals, totally 25 ones
136 Double_t m_eall; // Energy of all crystals in the shower
137 Double_t m_elepton; // Energy of all various number of crystals
138 Double_t m_time; // Time
139
140 Double_t m_secondMoment; //add 2006-07-03
141 Double_t m_latMoment; // Lateral moment
142 Double_t m_a20Moment; // Zernike moment
143 Double_t m_a42Moment;
144 Double_t m_err[6]; // Error Matrix: 0:dxx, 1:dyy, 2:dzz
145 // 3:dxy, 4:dxz, 5:dyz
146
147 map<Int_t, Double_t> m_cellIdMap; // Hit list and its fraction
148 vector<Int_t> m_cellId3x3; // Cell ID 3x3
149 vector<Int_t> m_cellId5x5; // Cell ID 5x5
150 Int_t m_clusterId; // Cluster ID
151
152 ClassDef(TRecEmcShower,4)
153};
154
155#endif //TrackRootData_TRecEmcShower_H
156
TGraphErrors * dt
Definition: AbsCor.cxx:72
Int_t module() const
Definition: TRecEmcShower.h:27
Double_t e3x3() const
Definition: TRecEmcShower.h:38
Double_t phi() const
Definition: TRecEmcShower.h:33
void setDphi(const Double_t dpi)
Definition: TRecEmcShower.h:68
Double_t z() const
Definition: TRecEmcShower.h:30
void setTime(const Double_t time)
Definition: TRecEmcShower.h:74
void setCellIdMap(const map< Int_t, Double_t > &cellIdMap)
Definition: TRecEmcShower.h:81
void setY(const Double_t y)
Definition: TRecEmcShower.h:61
void setX(const Double_t x)
Definition: TRecEmcShower.h:60
Double_t err(Int_t i) const
Definition: TRecEmcShower.h:47
void setELepton(const Double_t elepton)
Definition: TRecEmcShower.h:73
void setDtheta(const Double_t dt)
Definition: TRecEmcShower.h:66
Double_t dtheta() const
Definition: TRecEmcShower.h:32
Double_t dphi() const
Definition: TRecEmcShower.h:34
Double_t a20Moment() const
Definition: TRecEmcShower.h:45
Int_t cellId() const
Definition: TRecEmcShower.h:26
void setA20Moment(const Double_t a20Moment)
Definition: TRecEmcShower.h:77
Double_t latMoment() const
Definition: TRecEmcShower.h:44
void setStatus(const Int_t st)
Definition: TRecEmcShower.h:57
void setClusterId(const Int_t clusterId)
Definition: TRecEmcShower.h:84
map< Int_t, Double_t > cellIdMap() const
Definition: TRecEmcShower.h:49
void setModule(const Int_t mod)
Definition: TRecEmcShower.h:59
void setTheta(const Double_t theta)
Definition: TRecEmcShower.h:65
Double_t secondMoment() const
Definition: TRecEmcShower.h:43
Double_t theta() const
Definition: TRecEmcShower.h:31
Int_t clusterId() const
Definition: TRecEmcShower.h:52
void setEnergy(const Double_t e)
Definition: TRecEmcShower.h:63
void setSecondMoment(const Double_t secondMoment)
Definition: TRecEmcShower.h:75
Double_t x() const
Definition: TRecEmcShower.h:28
void setE3x3(const Double_t e3x3)
Definition: TRecEmcShower.h:70
Double_t eLepton() const
Definition: TRecEmcShower.h:41
void setTRecEmcShower(const TRecEmcShower *emcshower)
Definition: TRecEmcShower.h:85
void setZ(const Double_t z)
Definition: TRecEmcShower.h:62
Double_t eAll() const
Definition: TRecEmcShower.h:40
void setCellId5x5(const vector< Int_t > &cellId5x5)
Definition: TRecEmcShower.h:83
void setE5x5(const Double_t e5x5)
Definition: TRecEmcShower.h:71
vector< Int_t > cellId5x5() const
Definition: TRecEmcShower.h:51
void setCellId3x3(const vector< Int_t > &cellId3x3)
Definition: TRecEmcShower.h:82
Int_t status() const
Definition: TRecEmcShower.h:25
Double_t time() const
Definition: TRecEmcShower.h:42
vector< Int_t > cellId3x3() const
Definition: TRecEmcShower.h:50
void setEAll(const Double_t eall)
Definition: TRecEmcShower.h:72
void setCellId(const Int_t id)
Definition: TRecEmcShower.h:58
void setESeed(const Double_t eSeed)
Definition: TRecEmcShower.h:69
Double_t dE() const
Definition: TRecEmcShower.h:36
void setNumHits(const Int_t hit)
Definition: TRecEmcShower.h:56
Double_t energy() const
Definition: TRecEmcShower.h:35
Double_t a42Moment() const
Definition: TRecEmcShower.h:46
void setErr(const Double_t err[6])
void setDE(const Double_t de)
Definition: TRecEmcShower.h:64
Double_t eSeed() const
Definition: TRecEmcShower.h:37
Double_t y() const
Definition: TRecEmcShower.h:29
Int_t trackId() const
Definition: TRecEmcShower.h:23
void setA42Moment(const Double_t a42Moment)
Definition: TRecEmcShower.h:78
Double_t e5x5() const
Definition: TRecEmcShower.h:39
void setPhi(const Double_t pi)
Definition: TRecEmcShower.h:67
void setTrackId(const Int_t trackId)
Definition: TRecEmcShower.h:55
Int_t numHits() const
Definition: TRecEmcShower.h:24
void setLatMoment(const Double_t latMoment)
Definition: TRecEmcShower.h:76
const float pi
Definition: vector3.h:133