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