BOSS 7.1.1
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
TGraph2DErrors * dt
Definition McCor.cxx:45
Int_t module() const
Double_t e3x3() const
Double_t phi() const
void setDphi(const Double_t dpi)
Double_t z() const
void setTime(const Double_t time)
void setCellIdMap(const map< Int_t, Double_t > &cellIdMap)
void setY(const Double_t y)
void setX(const Double_t x)
Double_t err(Int_t i) const
void setELepton(const Double_t elepton)
void setDtheta(const Double_t dt)
Double_t dtheta() const
Double_t dphi() const
Double_t a20Moment() const
Int_t cellId() const
void setA20Moment(const Double_t a20Moment)
Double_t latMoment() const
void setStatus(const Int_t st)
void setClusterId(const Int_t clusterId)
map< Int_t, Double_t > cellIdMap() const
void setModule(const Int_t mod)
void setTheta(const Double_t theta)
Double_t secondMoment() const
Double_t theta() const
Int_t clusterId() const
void setEnergy(const Double_t e)
void setSecondMoment(const Double_t secondMoment)
Double_t x() const
void setE3x3(const Double_t e3x3)
Double_t eLepton() const
void setTRecEmcShower(const TRecEmcShower *emcshower)
void setZ(const Double_t z)
Double_t eAll() const
void setCellId5x5(const vector< Int_t > &cellId5x5)
void setE5x5(const Double_t e5x5)
vector< Int_t > cellId5x5() const
void setCellId3x3(const vector< Int_t > &cellId3x3)
Int_t status() const
Double_t time() const
vector< Int_t > cellId3x3() const
void setEAll(const Double_t eall)
void setCellId(const Int_t id)
void setESeed(const Double_t eSeed)
Double_t dE() const
void setNumHits(const Int_t hit)
Double_t energy() const
Double_t a42Moment() const
void setErr(const Double_t err[6])
void setDE(const Double_t de)
Double_t eSeed() const
Double_t y() const
Int_t trackId() const
void setA42Moment(const Double_t a42Moment)
Double_t e5x5() const
void setPhi(const Double_t pi)
void setTrackId(const Int_t trackId)
Int_t numHits() const
void setLatMoment(const Double_t latMoment)
const float pi
Definition vector3.h:133