X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDsimTR.cxx;fp=TRD%2FAliTRDsimTR.cxx;h=24bea907edbde7db40ab4c08bfec807a3d147474;hb=2942f542d4b5bec82bbddfadd400306661f8dc8d;hp=8a5726ce80b1f3966a4aa3b7af62f9767a49f3a2;hpb=14ce5e08ea7cef2f4a9b8a6ed64a3c3c7967947d;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDsimTR.cxx b/TRD/AliTRDsimTR.cxx index 8a5726ce80b..24bea907edb 100644 --- a/TRD/AliTRDsimTR.cxx +++ b/TRD/AliTRDsimTR.cxx @@ -463,10 +463,10 @@ Int_t AliTRDsimTR::TrPhotons(Float_t p, Float_t mass Int_t nPhCand = gRandom->Poisson(nTr); // Link the MC stack and get info about parent electron - TVirtualMCStack *stack = gMC->GetStack(); + TVirtualMCStack *stack = TVirtualMC::GetMC()->GetStack(); Int_t track = stack->GetCurrentTrackNumber(); Double_t px, py, pz, ptot; - gMC->TrackMomentum(px,py,pz,ptot); + TVirtualMC::GetMC()->TrackMomentum(px,py,pz,ptot); ptot = TMath::Sqrt(px*px+py*py+pz*pz); px /= ptot; py /= ptot; @@ -476,8 +476,8 @@ Int_t AliTRDsimTR::TrPhotons(Float_t p, Float_t mass Double_t x; Double_t y; Double_t z; - gMC->TrackPosition(x,y,z); - Double_t t = gMC->TrackTime(); + TVirtualMC::GetMC()->TrackPosition(x,y,z); + Double_t t = TVirtualMC::GetMC()->TrackTime(); // Counter for TR analysed in custom code (e < 15keV) nPhoton = 0;