14 TClonesArray*
TPi0Event::aPi0Candidates = 0;
22 if (!aPi0Candidates) aPi0Candidates =
new TClonesArray(
"TPi0Candidate", 50);
23 m_Pi0Candidates = aPi0Candidates;
24 if (!aMCPi0s) aMCPi0s =
new TClonesArray(
"TMCPi0", 50);
26 if (!aMCEtas) aMCEtas =
new TClonesArray(
"TMCEta", 50);
28 if (!aHits) aHits =
new TClonesArray(
"THit", 50);
45 m_PrescaleHTTPL2_Test = 0;
78 TPi0Event::~TPi0Event() {
82 void TPi0Event::Clear(
const Option_t*) {
99 m_PrescaleHTTPL2_Test = 0;
105 m_NPi0Candidates = 0;
109 m_HighestPi0MCPt = 0;
130 m_BackgroundTowers.clear();
131 m_Pi0Candidates->Clear();
137 void TPi0Event::Reset(Option_t * )
141 delete aPi0Candidates; aPi0Candidates = 0;
142 delete aMCPi0s; aMCPi0s = 0;
143 delete aMCEtas; aMCEtas = 0;
144 delete aHits; aHits = 0;
150 TClonesArray &aCand = *m_Pi0Candidates;
158 TClonesArray &aCand = *m_MCPi0s;
165 TClonesArray &aCand = *m_MCEtas;
171 THit* TPi0Event::AddHit(
THit& cand) {
173 TClonesArray &aCand = *m_Hits;
174 THit *piCand =
new(aCand[m_NHits++])
THit(cand);
180 TPi0Candidate::TPi0Candidate() : TObject(){
184 TPi0Candidate::TPi0Candidate(
const TPi0Candidate& orig) : TObject(orig) {
187 m_Mass = orig.m_Mass;
190 m_Asymmetry = orig.m_Asymmetry;
191 m_CosAngle = orig.m_CosAngle;
192 m_Distance = orig.m_Distance;
193 m_TowerId1 = orig.m_TowerId1;
194 m_TowerId2 = orig.m_TowerId2;
195 m_ChargedAssociation1 = orig.m_ChargedAssociation1;
196 m_ChargedAssociation2 = orig.m_ChargedAssociation2;
197 m_SMDFlagg1 = orig.m_SMDFlagg1;
198 m_SMDFlagg2 = orig.m_SMDFlagg2;
199 m_Energy1 = orig.m_Energy1;
200 m_Energy2 = orig.m_Energy2;
201 m_TowerEnergy1 = orig.m_TowerEnergy1;
202 m_TowerEnergy2 = orig.m_TowerEnergy2;
203 m_SMDe1 = orig.m_SMDe1;
204 m_SMDp1 = orig.m_SMDp1;
205 m_SMDe2 = orig.m_SMDe2;
206 m_SMDp2 = orig.m_SMDp2;
207 m_Phi1 = orig.m_Phi1;
208 m_Eta1 = orig.m_Eta1;
209 m_Phi2 = orig.m_Phi2;
210 m_Eta2 = orig.m_Eta2;
211 m_SizeSMDe1 = orig.m_SizeSMDe1;
212 m_SizeSMDp1 = orig.m_SizeSMDp1;
213 m_SizeTower1 = orig.m_SizeTower1;
214 m_SizeSMDe2 = orig.m_SizeSMDe2;
215 m_SizeSMDp2 = orig.m_SizeSMDp2;
216 m_SizeTower2 = orig.m_SizeTower2;
220 void TPi0Candidate::SetAll(Float_t
data[25]) {
225 m_Asymmetry = data[4];
226 m_CosAngle = data[5];
227 m_Distance = data[6];
228 m_TowerId1 = data[7];
229 m_TowerId2 = data[8];
230 m_ChargedAssociation1 = (Int_t) data[9];
231 m_ChargedAssociation2 = (Int_t) data[10];
232 m_SMDFlagg1 = (Int_t)data[11];
233 m_SMDFlagg2 = (Int_t)data[12];
234 m_Energy1 = data[13];
235 m_Energy2 = data[14];
236 m_TowerEnergy1 = data[15];
237 m_TowerEnergy2 = data[16];
246 m_SizeSMDe1 = data[25];
247 m_SizeSMDp1 = data[26];
248 m_SizeTower1 = data[27];
249 m_SizeSMDe2 = data[28];
250 m_SizeSMDp2 = data[29];
251 m_SizeTower2 = data[30];
255 THit::THit() : TObject() {
274 THit::THit(
const THit& orig) : TObject(orig) {
279 m_Energy = orig.m_Energy;
281 m_NTracks = orig.m_NTracks;
282 m_SMDFlag = orig.m_SMDFlag;
283 m_EnergySMDe = orig.m_EnergySMDe;
284 m_EnergySMDp = orig.m_EnergySMDp;
285 m_EnergyTower = orig.m_EnergyTower;
286 m_SizeSMDe = orig.m_SizeSMDe;
287 m_SizeSMDp = orig.m_SizeSMDp;
288 m_SizeTower = orig.m_SizeTower;
293 void THit::SetAll(Float_t
data[16]) {
297 m_Id = (Int_t) data[3];
300 m_NTracks = (Int_t) data[6];
301 m_SMDFlag = (Int_t) data[7];
302 m_EnergySMDe = data[8];
303 m_EnergySMDp = data[9];
304 m_EnergyTower = data[10];
305 m_SizeSMDe = data[11];
306 m_SizeSMDp = data[12];
307 m_SizeTower = data[13];
312 TMCPi0::TMCPi0() : TObject() {
322 TMCPi0::TMCPi0(
const TMCPi0& orig) : TObject(orig) {
326 m_Energy1 = orig.m_Energy1;
327 m_Energy2 = orig.m_Energy2;
328 m_TowerId1 = orig.m_TowerId1;
329 m_TowerId2 = orig.m_TowerId2;
330 m_Phi1 = orig.m_Phi1;
331 m_Eta1 = orig.m_Eta1;
332 m_Phi2 = orig.m_Phi2;
333 m_Eta2 = orig.m_Eta2;
336 void TMCPi0::SetAll(Float_t
data[11]) {
342 m_TowerId1 = data[5];
343 m_TowerId2 = data[6];
350 TMCEta::TMCEta() : TObject() {
371 TMCEta::TMCEta(
const TMCEta& orig) : TObject(orig) {
375 m_DecayMode = orig.m_DecayMode;
376 m_Energy1 = orig.m_Energy1;
377 m_Energy2 = orig.m_Energy2;
378 m_TowerId1 = orig.m_TowerId1;
379 m_TowerId2 = orig.m_TowerId2;
380 m_Phi1 = orig.m_Phi1;
381 m_Eta1 = orig.m_Eta1;
382 m_Phi2 = orig.m_Phi2;
383 m_Eta2 = orig.m_Eta2;
384 m_Pi01Pt = orig.m_Pi01Pt;
385 m_Pi01Eta = orig.m_Pi01Eta;
386 m_Pi01Phi = orig.m_Pi01Phi;
387 m_Pi02Pt = orig.m_Pi02Pt;
388 m_Pi02Eta = orig.m_Pi02Eta;
389 m_Pi02Phi = orig.m_Pi02Phi;
390 m_Pi03Pt = orig.m_Pi03Pt;
391 m_Pi03Eta = orig.m_Pi03Eta;
392 m_Pi03Phi = orig.m_Pi03Phi;
396 void TMCEta::SetAll(Float_t
data[21]) {
400 m_DecayMode = ((Int_t) data[3]);
403 m_TowerId1 = data[6];
404 m_TowerId2 = data[7];
410 m_Pi01Eta = data[13];
411 m_Pi01Phi = data[14];
413 m_Pi02Eta = data[16];
414 m_Pi02Phi = data[17];
416 m_Pi03Eta = data[19];
417 m_Pi03Phi = data[20];