StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltDiElectron.cxx
1 /***************************************************************************
2  *
3  * $Id: StHltDiElectron.cxx,v 2.1 2011/02/01 19:45:48 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltDiElectron.cxx,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #include "StHltDiElectron.h"
18 
19 ClassImp(StHltDiElectron)
20 
23 {
24  mInvariantMass = 0;
25  mPt = 0;
26  mPsi = 0;
27  mTanl = 0;
28 
29  mDaughter1SelectionBit = -1;
30  mDaughter1GlobalTrackSN = -1;
31  mDaughter1PrimaryTrackSN = -1;
32  mDaughter1TofHitSN = -1;
33  mDaughter1EmcTowerSN = -1;
34  mDaughter1BEmcMatchPhiDiff = 0.;
35  mDaughter1BEmcMatchZEdge = 0.;
36  mDaughter1BTofProjChannel = 0.;
37  mDaughter1BTofCellLocalY = 0.;
38  mDaughter1BTofCellLocalZ = 0.;
39  mDaughter1BTofPathLength = 0.;
40  mDaughter1Beta = 0.;
41  mDaughter1Tof = 0.;
42 
43  mDaughter2SelectionBit = -1;
44  mDaughter2GlobalTrackSN = -1;
45  mDaughter2PrimaryTrackSN = -1;
46  mDaughter2TofHitSN = -1;
47  mDaughter2EmcTowerSN = -1;
48  mDaughter2BEmcMatchPhiDiff = 0.;
49  mDaughter2BEmcMatchZEdge = 0.;
50  mDaughter2BTofProjChannel = 0.;
51  mDaughter2BTofCellLocalY = 0.;
52  mDaughter2BTofCellLocalZ = 0.;
53  mDaughter2BTofPathLength = 0.;
54  mDaughter2Beta = 0.;
55  mDaughter2Tof = 0.;
56 }
57 
58 StHltDiElectron::~StHltDiElectron(){ /* noop */}
59 
60 //-----------daughter1 information-------------------------------
61 
62 StHltTrack& StHltDiElectron::daughter1globalTrack() { return mDaughter1GlobalTrack; }
63 const StHltTrack& StHltDiElectron::daughter1globalTrack() const { return mDaughter1GlobalTrack; }
64 
65 StHltTrack& StHltDiElectron::daughter1primaryTrack() { return mDaughter1PrimaryTrack; }
66 const StHltTrack& StHltDiElectron::daughter1primaryTrack() const { return mDaughter1PrimaryTrack; }
67 
68 StHltBTofHit& StHltDiElectron::daughter1bTofHit() { return mDaughter1BTofHit; }
69 const StHltBTofHit& StHltDiElectron::daughter1bTofHit() const { return mDaughter1BTofHit; }
70 
71 StHltBEmcTowerHit& StHltDiElectron::daughter1bEmcTowerHit() { return mDaughter1BEmcTowerHit; }
72 const StHltBEmcTowerHit& StHltDiElectron::daughter1bEmcTowerHit() const { return mDaughter1BEmcTowerHit; }
73 
74 int StHltDiElectron::daughter1SelectionBit() const {return mDaughter1SelectionBit;}
75 
76 int StHltDiElectron::daughter1globalTrackSN() const { return mDaughter1GlobalTrackSN; }
77 
78 int StHltDiElectron::daughter1primaryTrackSN() const { return mDaughter1PrimaryTrackSN; }
79 
80 int StHltDiElectron::daughter1tofHitSN() const { return mDaughter1TofHitSN; }
81 
82 int StHltDiElectron::daughter1emcTowerSN() const { return mDaughter1EmcTowerSN; }
83 
84 double StHltDiElectron::daughter1bEmcMatchPhiDiff() const { return mDaughter1BEmcMatchPhiDiff; }
85 
86 double StHltDiElectron::daughter1bEmcMatchZEdge() const { return mDaughter1BEmcMatchZEdge; }
87 
88 float StHltDiElectron::daughter1bTofProjChannel() const { return mDaughter1BTofProjChannel; }
89 
90 float StHltDiElectron::daughter1bTofCellLocalY() const { return mDaughter1BTofCellLocalY; }
91 
92 float StHltDiElectron::daughter1bTofCellLocalZ() const { return mDaughter1BTofCellLocalZ; }
93 
94 float StHltDiElectron::daughter1bTofPathLength() const { return mDaughter1BTofPathLength; }
95 
96 float StHltDiElectron::daughter1beta() const { return mDaughter1Beta; }
97 
98 float StHltDiElectron::daughter1tof() const { return mDaughter1Tof; }
99 
100 void StHltDiElectron::setDaughter1GlobalTrack(const StHltTrack& val) { mDaughter1GlobalTrack = val; }
101 
102 void StHltDiElectron::setDaughter1PrimaryTrack(const StHltTrack& val) { mDaughter1PrimaryTrack = val; }
103 
104 void StHltDiElectron::setDaughter1BTofHit(const StHltBTofHit& val) { mDaughter1BTofHit = val; }
105 
106 void StHltDiElectron::setDaughter1BEmcTowerHit(const StHltBEmcTowerHit& val) { mDaughter1BEmcTowerHit = val; }
107 
108 void StHltDiElectron::setDaughter1SelectionBit(int val){mDaughter1SelectionBit=val;}
109 
110 void StHltDiElectron::setDaughter1GlobalTrackSN(int val) { mDaughter1GlobalTrackSN = val; }
111 
112 void StHltDiElectron::setDaughter1PrimaryTrackSN(int val) { mDaughter1PrimaryTrackSN = val; }
113 
114 void StHltDiElectron::setDaughter1TofHitSN(int val) { mDaughter1TofHitSN = val; }
115 
116 void StHltDiElectron::setDaughter1EmcTowerSN(int val) { mDaughter1EmcTowerSN = val; }
117 
118 void StHltDiElectron::setDaughter1BEmcMatchPhiDiff(double val) { mDaughter1BEmcMatchPhiDiff = val; }
119 
120 void StHltDiElectron::setDaughter1BEmcMatchZEdge(double val) { mDaughter1BEmcMatchZEdge = val; }
121 
122 void StHltDiElectron::setDaughter1BTofProjChannel(float val) { mDaughter1BTofProjChannel = val; }
123 
124 void StHltDiElectron::setDaughter1BTofCellLocalY(float val) { mDaughter1BTofCellLocalY = val; }
125 
126 void StHltDiElectron::setDaughter1BTofCellLocalZ(float val) { mDaughter1BTofCellLocalZ = val; }
127 
128 void StHltDiElectron::setDaughter1BTofPathLength(float val) { mDaughter1BTofPathLength = val; }
129 
130 void StHltDiElectron::setDaughter1Beta(float val) { mDaughter1Beta = val; }
131 
132 void StHltDiElectron::setDaughter1Tof(float val) { mDaughter1Tof = val; }
133 
134 //-----------daughter2 information-------------------------------
135 
136 StHltTrack& StHltDiElectron::daughter2globalTrack() { return mDaughter2GlobalTrack; }
137 const StHltTrack& StHltDiElectron::daughter2globalTrack() const { return mDaughter2GlobalTrack; }
138 
139 StHltTrack& StHltDiElectron::daughter2primaryTrack() { return mDaughter2PrimaryTrack; }
140 const StHltTrack& StHltDiElectron::daughter2primaryTrack() const { return mDaughter2PrimaryTrack; }
141 
142 StHltBTofHit& StHltDiElectron::daughter2bTofHit() { return mDaughter2BTofHit; }
143 const StHltBTofHit& StHltDiElectron::daughter2bTofHit() const { return mDaughter2BTofHit; }
144 
145 StHltBEmcTowerHit& StHltDiElectron::daughter2bEmcTowerHit() { return mDaughter2BEmcTowerHit; }
146 const StHltBEmcTowerHit& StHltDiElectron::daughter2bEmcTowerHit() const { return mDaughter2BEmcTowerHit; }
147 
148 int StHltDiElectron::daughter2SelectionBit() const {return mDaughter2SelectionBit;}
149 
150 int StHltDiElectron::daughter2globalTrackSN() const { return mDaughter2GlobalTrackSN; }
151 
152 int StHltDiElectron::daughter2primaryTrackSN() const { return mDaughter2PrimaryTrackSN; }
153 
154 int StHltDiElectron::daughter2tofHitSN() const { return mDaughter2TofHitSN; }
155 
156 int StHltDiElectron::daughter2emcTowerSN() const { return mDaughter2EmcTowerSN; }
157 
158 double StHltDiElectron::daughter2bEmcMatchPhiDiff() const { return mDaughter2BEmcMatchPhiDiff; }
159 
160 double StHltDiElectron::daughter2bEmcMatchZEdge() const { return mDaughter2BEmcMatchZEdge; }
161 
162 float StHltDiElectron::daughter2bTofProjChannel() const { return mDaughter2BTofProjChannel; }
163 
164 float StHltDiElectron::daughter2bTofCellLocalY() const { return mDaughter2BTofCellLocalY; }
165 
166 float StHltDiElectron::daughter2bTofCellLocalZ() const { return mDaughter2BTofCellLocalZ; }
167 
168 float StHltDiElectron::daughter2bTofPathLength() const { return mDaughter2BTofPathLength; }
169 
170 float StHltDiElectron::daughter2beta() const { return mDaughter2Beta; }
171 
172 float StHltDiElectron::daughter2tof() const { return mDaughter2Tof; }
173 
174 void StHltDiElectron::setDaughter2GlobalTrack(const StHltTrack& val) { mDaughter2GlobalTrack = val; }
175 
176 void StHltDiElectron::setDaughter2PrimaryTrack(const StHltTrack& val) { mDaughter2PrimaryTrack = val; }
177 
178 void StHltDiElectron::setDaughter2BTofHit(const StHltBTofHit& val) { mDaughter2BTofHit = val; }
179 
180 void StHltDiElectron::setDaughter2BEmcTowerHit(const StHltBEmcTowerHit& val) { mDaughter2BEmcTowerHit = val; }
181 
182 void StHltDiElectron::setDaughter2SelectionBit(int val) {mDaughter2SelectionBit=val;}
183 
184 void StHltDiElectron::setDaughter2GlobalTrackSN(int val) { mDaughter2GlobalTrackSN = val; }
185 
186 void StHltDiElectron::setDaughter2PrimaryTrackSN(int val) { mDaughter2PrimaryTrackSN = val; }
187 
188 void StHltDiElectron::setDaughter2TofHitSN(int val) { mDaughter2TofHitSN = val; }
189 
190 void StHltDiElectron::setDaughter2EmcTowerSN(int val) { mDaughter2EmcTowerSN = val; }
191 
192 void StHltDiElectron::setDaughter2BEmcMatchPhiDiff(double val) { mDaughter2BEmcMatchPhiDiff = val; }
193 
194 void StHltDiElectron::setDaughter2BEmcMatchZEdge(double val) { mDaughter2BEmcMatchZEdge = val; }
195 
196 void StHltDiElectron::setDaughter2BTofProjChannel(float val) { mDaughter2BTofProjChannel = val; }
197 
198 void StHltDiElectron::setDaughter2BTofCellLocalY(float val) { mDaughter2BTofCellLocalY = val; }
199 
200 void StHltDiElectron::setDaughter2BTofCellLocalZ(float val) { mDaughter2BTofCellLocalZ = val; }
201 
202 void StHltDiElectron::setDaughter2BTofPathLength(float val) { mDaughter2BTofPathLength = val; }
203 
204 void StHltDiElectron::setDaughter2Beta(float val) { mDaughter2Beta = val; }
205 
206 void StHltDiElectron::setDaughter2Tof(float val) { mDaughter2Tof = val; }
207 
208 //--------------pair information------------------------------------
209 
210 void StHltDiElectron::setInvariantMass(float val) { mInvariantMass = val; }
211 
212 void StHltDiElectron::setPt(float val) { mPt = val; }
213 
214 void StHltDiElectron::setPsi(float val) { mPsi = val; }
215 
216 void StHltDiElectron::setTanl(float val) { mTanl = val; }
217 
218 ostream&
219 operator<<(ostream &os, const StHltDiElectron& de)
220 {
221  os <<" invariantMass "<<de.invariantMass()<<" pt "<<de.pt()<<" psi "<<de.psi()<<" tanl "<<de.tanl()<<endl;
222  return os;
223 }
224 
225 
226 
227 
StHltBEmcTowerHit & daughter1bEmcTowerHit()
return object of StHltBEmcTowerHit
StHltBTofHit & daughter2bTofHit()
return object of StHltBTofHit
StHltTrack & daughter1primaryTrack()
return object of StHltTrack
StHltBTofHit & daughter1bTofHit()
return object of StHltBTofHit
float invariantMass() const
return invariant mass of di-electron pairs
StHltBEmcTowerHit & daughter2bEmcTowerHit()
return object of StHltBEmcTowerHit
StHltTrack & daughter2globalTrack()
return object of StHltTrack
StHltTrack & daughter1globalTrack()
return object of StHltTrack
StHltTrack & daughter2primaryTrack()
return object of StHltTrack