#include <AliMagF.h>
#include <AliKalmanTrack.h>
#include <AliITSIOTrack.h>
+#include "AliMC.h"
ClassImp(AliHBTReaderITSv1)
/********************************************************************/
gAliceFile->cd();
gAlice->GetEvent(currentEvent);
- gAlice->Particles();
+ gAlice->GetMCApp()->Particles();
Int_t nentr=(Int_t)tracktree->GetEntries();
continue;
}
- TParticle *p = (TParticle*)gAlice->Particle(label);
+ TParticle *p = (TParticle*)gAlice->GetMCApp()->Particle(label);
if(!p)
{
Warning("Read","Can not get particle with label &d",label);
if(Pass(p->GetPdgCode())) continue; //check if we are intersted with particles of this type
//if not take next partilce
- AliHBTParticle* part = new AliHBTParticle(*p);
+ AliHBTParticle* part = new AliHBTParticle(*p,i);
if(Pass(part)) { delete part; continue;}//check if meets all criteria of any of our cuts
//if it does not delete it and take next good track
Double_t y= iotrack->GetY();
Double_t z= iotrack->GetZ();
- AliHBTParticle* track = new AliHBTParticle(p->GetPdgCode(), px, py , pz, tEtot, x, y, z, 0.);
+ AliHBTParticle* track = new AliHBTParticle(p->GetPdgCode(), i, px, py , pz, tEtot, x, y, z, 0.);
if(Pass(track)) { delete track;continue;}//check if meets all criteria of any of our cuts
//if it does not delete it and take next good track