16 for(UInt_t i=0;i<4;i++) fPrescale[i]=0;
23 fGoodPrimaryTracksBarrelW=0;
47 fPointArray=
new TClonesArray(
"MyPoint",10);
48 fMcPhotonArray=
new TClonesArray(
"MyMcTrack",5);
49 fMcPionArray=
new TClonesArray(
"MyMcTrack",5);
52 MyEvent::MyEvent(
const MyEvent& ev)
60 for(UInt_t i=0;i<4;i++) fPrescale[i]=ev.fPrescale[i];
61 fHiTowAdc=ev.fHiTowAdc;
63 fHiTowStat=ev.fHiTowStat;
66 fGoodPrimaryTracks=ev.fGoodPrimaryTracks;
67 fGoodPrimaryTracksBarrelW=ev.fGoodPrimaryTracksBarrelW;
68 fGoodGlobalTracks=ev.fGoodGlobalTracks;
69 fFtpcRefMultTracks=ev.fFtpcRefMultTracks;
70 fCratesCorrupted=ev.fCratesCorrupted;
71 fModulesNoHits=ev.fModulesNoHits;
72 fModulesBad=ev.fModulesBad;
73 fNumberOfPoints=ev.fNumberOfPoints;
74 fNumberOfMcPhotons=ev.fNumberOfMcPhotons;
75 fNumberOfMcPions=ev.fNumberOfMcPions;
77 fEnBarrel=ev.fEnBarrel;
79 fTpcPtBarrelW=ev.fTpcPtBarrelW;
82 fZdcVertexZ=ev.fZdcVertexZ;
86 fBbcVertexZ=ev.fBbcVertexZ;
89 fPartonPt=ev.fPartonPt;
91 fPointArray=
new TClonesArray(*ev.fPointArray);
92 fMcPhotonArray=
new TClonesArray(*ev.fMcPhotonArray);
93 fMcPionArray=
new TClonesArray(*ev.fMcPionArray);
99 delete fMcPhotonArray;
104 void MyEvent::addPoint(
MyPoint *point)
107 TClonesArray &pointArray=*fPointArray;
108 new(pointArray[fNumberOfPoints++])
MyPoint(point);
115 TClonesArray &gammaArray=*fMcPhotonArray;
116 new(gammaArray[fNumberOfMcPhotons++])
MyMcTrack(tr);
123 TClonesArray &pionArray=*fMcPionArray;
124 new(pionArray[fNumberOfMcPions++])
MyMcTrack(tr);