4 #include "DebugClassesMultESA2013.h"
6 //_____________________________________________________________________________
9 DeDxTrack::DeDxTrack():
25 //exptoftimeel(-9999),
26 //exptoftimemu(-9999),
27 //exptoftimepi(-9999),
28 //exptoftimeka(-9999),
29 //exptoftimepr(-9999),
47 // default constructor
50 void DeDxTrack::Copy(TObject& object) const
52 TObject::Copy(object);
54 DeDxTrack* track = (DeDxTrack*)(&object);
60 track->pttrue = pttrue;
64 //track->isTOFout = isTOFout;
65 //track->hasTOFtime = hasTOFtime;
66 //track->isTOFmatched = isTOFmatched;
68 //track->flength = flength;
69 //track->ftimetof = ftimetof;
70 //track->exptoftimeel = exptoftimeel;
71 //track->exptoftimemu = exptoftimemu;
72 //track->exptoftimepi = exptoftimepi;
73 //track->exptoftimeka = exptoftimeka;
74 //track->exptoftimepr = exptoftimepr;
78 track->mother = mother;
80 track->filter = filter;
84 track->primary = primary;
86 track->tpcnclS = tpcnclS;
89 //_____________________________________________________________________________
92 VZEROCell::VZEROCell():
98 // default constructor
101 void VZEROCell::Copy(TObject& object) const
103 TObject::Copy(object);
105 VZEROCell* cellv0 = (VZEROCell*)(&object);
109 cellv0->cellmult = cellmult;
110 cellv0->cellindex = cellindex;
113 //_____________________________________________________________________________
144 // default constructor
147 void DeDxV0::Copy(TObject& object) const
149 TObject::Copy(object);
151 DeDxV0* v0 = (DeDxV0*)(&object);
162 v0->dmassK0 = dmassK0;
164 v0->dmassAL = dmassAL;
172 v0->dcadaughters = dcadaughters;
174 v0->primary = primary;
177 ptrack.Copy(v0->ptrack);
178 ntrack.Copy(v0->ntrack);
182 //_____________________________________________________________________________
183 ClassImp(DeDxTrackMC)
185 DeDxTrackMC::DeDxTrackMC():
197 // default constructor
200 void DeDxTrackMC::Copy(TObject& object) const
202 TObject::Copy(object);
204 DeDxTrackMC* trackmc = (DeDxTrackMC*)(&object);
209 trackmc->ptMC = ptMC;
210 trackmc->etaMC = etaMC;
211 trackmc->phiMC = phiMC;
214 trackmc->pidMC = pidMC;
215 trackmc->orderMC = orderMC;
216 trackmc->pdgMC = pdgMC;
220 //_____________________________________________________________________________
223 DeDxEvent::DeDxEvent():
225 eventid(0), // unique event id
226 run(-1), // run number
227 time(-1), // time of event
228 cent(1000), // centrality
229 //centV0A(1000), // centrality
230 //centZNA(1000), // centrality
231 //centCL1(1000), // centrality
232 mag(+999), // magnetic field
233 zvtx(+999), // rec vertex
234 zvtxMC(+999), // MC true vertes
235 ptmax(-1), // Max pt of tracks for this event
236 ptmaxMC(-1), // Max pt of MC tracks
237 vtxstatus(-2), // Vtx status (-1=no vtx, 0 = outside, 1 = inside cuts)
238 trackmult(-1), // Track mult (no cuts)
239 n(-1), // Number of added tracks
240 trackmultMC(-1), // MC track mult (primary tracks)
241 nMC(-1), // MC number of added tracks
242 process(-2), // MC process: -1=invalid, 0=data, 1=ND, 2=SD, 3=DD
243 trig(-1) // Was the event triggered
244 //pileup(-1), // Is the event marked as pileup?
245 //sphericity(-2), //|eta|<0.8, pt>0.5, Nch>3, rec
246 //spherocity(-2), //|eta|<0.8, pt>0.5, Nch>3, rec
247 //sphericityTPC(-2), //|eta|<0.8, pt>0.5, Nch>3, rec
248 //spherocityTPC(-2), //|eta|<0.8, pt>0.5, Nch>3, rec
249 //sphericityMC(-2), //|eta|<0.8, pt>0.5, Nch>3, true
250 //spherocityMC(-2) //|eta|<0.8, pt>0.5, Nch>3, true
253 // default constructor
256 void DeDxEvent::Copy(TObject& object) const
258 TObject::Copy(object);
260 DeDxEvent* eventIn = (DeDxEvent*)(&object);
264 eventIn->eventid = eventid ;
266 eventIn->time = time ;
267 eventIn->cent = cent ;
268 //eventIn->centV0A = centV0A ;
269 //eventIn->centZNA = centZNA ;
270 //eventIn->centCL1 = centCL1 ;
272 eventIn->zvtx = zvtx ;
273 eventIn->zvtxMC = zvtxMC ;
274 eventIn->ptmax = ptmax ;
275 eventIn->ptmaxMC = ptmaxMC ;
276 eventIn->vtxstatus = vtxstatus ;
277 eventIn->trackmult = trackmult ;
279 eventIn->trackmultMC = trackmultMC ;
281 eventIn->process = process ;
282 eventIn->trig = trig ;
283 //eventIn->pileup = pileup ;
284 //eventIn->sphericity = sphericity ;
285 //eventIn->spherocity = spherocity ;
286 //eventIn->sphericityTPC = sphericityTPC;
287 //eventIn->spherocityTPC = spherocityTPC;
288 //eventIn->sphericityMC = sphericityMC ;
289 //eventIn->spherocityMC = spherocityMC ;