Moving to the new VMC naming convention
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jul 2003 15:13:48 +0000 (15:13 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jul 2003 15:13:48 +0000 (15:13 +0000)
89 files changed:
CRT/AliCRTv0.cxx
CRT/AliCRTv1.cxx
CRT/AliGenCRT.cxx
EMCAL/AliEMCALv1.cxx
EVGEN/AliGenBeamGas.cxx
EVGEN/AliGenBox.cxx
EVGEN/AliGenCocktailAfterBurner.cxx
EVGEN/AliGenDoubleScan.cxx
EVGEN/AliGenExtFile.cxx
EVGEN/AliGenFLUKAsource.cxx
EVGEN/AliGenFixed.cxx
EVGEN/AliGenGeVSim.cxx
EVGEN/AliGenHIJINGpara.cxx
EVGEN/AliGenHIJINGparaBa.cxx
EVGEN/AliGenHalo.cxx
EVGEN/AliGenHaloProtvino.cxx
EVGEN/AliGenParam.cxx
EVGEN/AliGenScan.cxx
EVGEN/AliGenSlowNucleons.cxx
EVGEN/AliGenThetaSlice.cxx
FMD/AliFMDv1.cxx
FMD/AliFMDv2.cxx
ITS/AliITSv1.cxx
ITS/AliITSv5.cxx
ITS/AliITSv5asymm.cxx
ITS/AliITSv5symm.cxx
ITS/AliITSvPPRasymm.cxx
ITS/AliITSvPPRasymmFMD.cxx
ITS/AliITSvPPRcoarseasymm.cxx
ITS/AliITSvPPRcoarsesymm.cxx
ITS/AliITSvSPD02.cxx
ITS/AliITSvtest.cxx
MUON/AliMUONproto.cxx
MUON/AliMUONv0.cxx
MUON/AliMUONv1.cxx
MUON/AliMUONv3.cxx
PHOS/AliPHOSDebug.cxx
PHOS/AliPHOSv1.cxx
PHOS/AliPHOSv3.cxx
PHOS/AliPHOSv4.cxx
PHOS/AliPHOSvImpacts.cxx
PMD/AliPMDv0.cxx
PMD/AliPMDv1.cxx
PYTHIA6/AliGenPythia.cxx
PYTHIA6/AliGenPythiaJets.cxx
RICH/AliRICHResponseV0.cxx
RICH/AliRICHv1.cxx
RICH/AliRICHv3.cxx
START/AliSTARTv1.cxx
START/AliSTARTv2.cxx
STEER/AliGenerator.cxx
STEER/AliGenerator.h
STEER/AliLego.cxx
STEER/AliLegoGenerator.cxx
STEER/AliLegoGeneratorEta.cxx
STEER/AliLegoGeneratorPhiZ.cxx
STEER/AliLegoGeneratorXYZ.cxx
STEER/AliRun.cxx
STEER/AliRun.h
STEER/AliStack.cxx
STEER/AliStack.h
STRUCT/AliFRAMEv2.cxx
TDPMjet/AliGenDPMjet.cxx
TEPEMGEN/AliGenEpEmv1.cxx
TFluka/stupre.cxx
TFluka/stuprf.cxx
THerwig/AliGenHerwig.cxx
THijing/AliGenHijing.cxx
TMEVSIM/AliGenMevSim.cxx
TOF/AliTOFv0.cxx
TOF/AliTOFv1.cxx
TOF/AliTOFv2.cxx
TOF/AliTOFv2FHoles.cxx
TOF/AliTOFv3.cxx
TOF/AliTOFv4.cxx
TOF/AliTOFv4T0.cxx
TPC/AliTPCv1.cxx
TPC/AliTPCv2.cxx
TPC/AliTPCv3.cxx
TPHIC/AliGenTPHIC.cxx
TRD/AliTRDsimpleGen.cxx
TRD/AliTRDsimpleMC.cxx
TRD/AliTRDv0.cxx
TRD/AliTRDv1.cxx
VZERO/AliVZEROv0.cxx
VZERO/AliVZEROv2.cxx
ZDC/AliGenZDC.cxx
ZDC/AliZDCv1.cxx
ZDC/AliZDCv2.cxx

index 5c45b0e91f92a34a702bed559018c589c341c903..eecce1778923ade89a7ec0a0ff4a8c8673ebba6d 100644 (file)
@@ -623,7 +623,7 @@ void AliCRTv0::StepManager()
   TLorentzVector mom;
 
   static Float_t hits[14];
-  Int_t tracknumber = gAlice->CurrentTrack();
+  Int_t tracknumber = gAlice->GetCurrentTrackNumber();
 
   static Float_t eloss;
   static Float_t tlength;
@@ -674,7 +674,7 @@ void AliCRTv0::StepManager()
     hits[12] = tlength; // Trajectory lenght
     hits[13] = (Float_t)tracknumber;
 
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
 
   }
 
index 8f05fc579eafe95d0c98bf14ada483cefb0b51d2..3400250b130359397fe38e77c7d99c13c101a3c0 100644 (file)
@@ -876,9 +876,9 @@ void AliCRTv1::StepManager()
     hits[12] = 0;
     hits[13] = 0;
 
-    //hits[9] = gAlice->CurrentTrack();
+    //hits[9] = gAlice->GetCurrentTrackNumber();
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
     
     eloss = 0.;
 
@@ -899,7 +899,7 @@ void AliCRTv1::StepManager()
 
     //hits[10] = 1;
     
-    //AddHit(gAlice->CurrentTrack(),vol, hits);
+    //AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
     
     //eloss = 0.;
 
@@ -925,7 +925,7 @@ void AliCRTv1::StepManager()
     hits[12] = 0;
     hits[13] = 0;
       
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
     
     //eloss = 0.;
 
@@ -950,7 +950,7 @@ void AliCRTv1::StepManager()
     hits[12] = 1;
     hits[13] = 0;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
     
     //eloss = 0.;
 
@@ -977,7 +977,7 @@ void AliCRTv1::StepManager()
     hits[13] = 1;
 
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
     
     //eloss = 0.;
 
index ecf4cba82730211f92885ac09bf9d4fc75aed687..0bd3f28fdbded0b5f1e189a7d92b05c87d489298 100644 (file)
@@ -302,7 +302,7 @@ void AliGenCRT::Generate()
   }
 
   // Put the track on the stack.
-  SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+  PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
 
 
 }
index dd6809d66f31a640f33302f97733e576283792eb..061196cde784b7d393a69fea07def0cd1c900ed0 100644 (file)
@@ -130,7 +130,7 @@ void AliEMCALv1::StepManager(void){
   Float_t        pmom[4]={0.,0.,0.,0.};
   TLorentzVector pos; // Lorentz vector of the track current position.
   TLorentzVector mom; // Lorentz vector of the track current momentum.
-  Int_t tracknumber =  gAlice->CurrentTrack();
+  Int_t tracknumber =  gAlice->GetCurrentTrackNumber();
   Int_t primary = 0;
   static Int_t iparent = 0;
   static Float_t ienergy = 0;
index 8ce4cebfe979bb2890965756c4eb4924ea2891a5..e91e3135708b7f0db07c0692de53dbbec39dd59e 100644 (file)
@@ -108,7 +108,7 @@ void AliGenBeamGas::Generate()
          Int_t idpart     = iparticle->GetPdgCode();
          Int_t decayed    = iparticle->GetFirstDaughter();
          Int_t doTracking = fTrackIt && (decayed < 0) && (TMath::Abs(idpart) > 10);
-         SetTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt);
+         PushTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt);
          KeepTrack(nt);
       } // track loop
       nInt++;
index 9946aba58999eae10a5535501fb1ba4d31472f16..60a93346d5ac572e98ce0d006cfda086d92d5277 100644 (file)
@@ -115,7 +115,7 @@ void AliGenBox::Generate()
                    TMath::Sqrt(-2*TMath::Log(random[2*j+1]));
            }
        }
-       SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+       PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
     }
 }
 
index dea75dc05b20ef28da66858b15224242af8de5b5..0eed269f4e27b516b9969c1c9af858c732823ac0 100644 (file)
@@ -340,7 +340,7 @@ void AliGenCocktailAfterBurner::SetTracks(Int_t stackno)
       mech = AliGenCocktailAfterBurner::IntToMCProcess(p->GetUniqueID());
       weight = p->GetWeight();
 
-      gAlice->SetTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
+      gAlice->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
                        polx, poly, polz, mech, ntr, weight);
     }
 }
index d1f0c1ce73f8ad47aba89bdd0b6dccd0da0998cb..7f18a5bed443702ab60989100f0f1bef1623c3e7 100644 (file)
@@ -93,7 +93,7 @@ void AliGenDoubleScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
 //
 // Generate 2nd particle at distance fDistance from  the first
 //
@@ -109,7 +109,7 @@ void AliGenDoubleScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
          }
       }
   }
index 7382b1950481632481b4812d75263ffe04cb0581..aec99b7d0a471214070834ca216d993561f25ab7 100644 (file)
@@ -182,9 +182,9 @@ void AliGenExtFile::Generate()
                         (TMath::Abs(idpart) > 10) && selected;
       // printf("*** pdg, first daughter, trk = %d, %d, %d\n",
       //   idpart,decayed, doTracking);
-      //PH      SetTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt);
+      //PH      PushTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt);
       Int_t parent = iparticle->GetFirstMother();
-      SetTrack(doTracking,parent,idpart,p,origin,polar,0,kPPrimary,nt);
+      PushTrack(doTracking,parent,idpart,p,origin,polar,0,kPPrimary,nt);
       KeepTrack(nt);
     } // track loop
 
index 31abcdfb6d1d2178e60349a98ddbfdb370e02eab..46bff067db437b75cc3afed5e77c9dcb5e547ca4 100644 (file)
@@ -246,7 +246,7 @@ void AliGenFLUKAsource::Generate()
        if (part==1 && iwgt>100) iwgt=100;
        Int_t nstack=0;
        for (j=0; j<iwgt; j++) {
-           SetTrack(fTrackIt,-1,part,p,origin,polar,fAge,kPPrimary,nt);
+           PushTrack(fTrackIt,-1,part,p,origin,polar,fAge,kPPrimary,nt);
            Rndm(random,2);
            phi=2*random[1]*TMath::Pi();
            Float_t pn1=p[0]*TMath::Sin(phi) - p[1]*TMath::Cos(phi);
index e4598d0d591d7e1d70a2f3738b730ab86b7637f5..37e57cbb1a00527840b4fd686da2e626840e1b9d 100644 (file)
@@ -80,7 +80,7 @@ void AliGenFixed::Generate()
   Int_t i, nt;
   //
   for(i=0;i<fNpart;i++) 
-    SetTrack(fTrackIt,-1,fIpart,fP,fOrigin.GetArray(),polar,0,kPPrimary,nt);
+    PushTrack(fTrackIt,-1,fIpart,fP,fOrigin.GetArray(),polar,0,kPPrimary,nt);
 }
   
 //_____________________________________________________________________________
index 689df6f5bf358c96a3138e1dc2e90b28634d9cd7..b3d5afb591ac28683140e3e0de81976b9a332ded 100644 (file)
@@ -790,7 +790,7 @@ void AliGenGeVSim::Generate() {
 
       // putting particle on the stack
 
-      SetTrack(fTrackIt, kParent, pdg, p, orgin, polar, time, kPPrimary, id, fTrackIt);     
+      PushTrack(fTrackIt, kParent, pdg, p, orgin, polar, time, kPPrimary, id, fTrackIt);     
       if (isMultTotal) nParticle++;
     }
   }
index 3477bbfe62bf12000c991dc7ca93e984950df2ae..8ea8123168964730347221b25e49c9853dce6311 100644 (file)
@@ -332,11 +332,11 @@ void AliGenHIJINGpara::Generate()
            if (part == kPi0 && fPi0Decays){
 //
 //          Decay pi0 if requested
-               SetTrack(0,-1,part,p,origin,polar,0,kPPrimary,fNt,fParentWeight);
+               PushTrack(0,-1,part,p,origin,polar,0,kPPrimary,fNt,fParentWeight);
                KeepTrack(fNt);
                DecayPi0(origin, p);
            } else {
-               SetTrack(fTrackIt,-1,part,p,origin,polar,0,kPPrimary,fNt,fParentWeight);
+               PushTrack(fTrackIt,-1,part,p,origin,polar,0,kPPrimary,fNt,fParentWeight);
                KeepTrack(fNt);
            }
 
@@ -393,7 +393,7 @@ void AliGenHIJINGpara::DecayPi0(Float_t* orig, Float_t * p)
        p[2] = iParticle->Pz();
        Int_t part = iParticle->GetPdgCode();
 
-       SetTrack(fTrackIt, fNt, part, p, orig, polar, 0, kPDecay, nt, fParentWeight);
+       PushTrack(fTrackIt, fNt, part, p, orig, polar, 0, kPDecay, nt, fParentWeight);
        KeepTrack(nt);
     }
     fNt = nt;
index caaa52817ea7de6248ae7dc3bd9f38a2645f8561..48d609f3409efd225ba62e61d8239c20b42966e2 100644 (file)
@@ -333,7 +333,7 @@ void AliGenHIJINGparaBa::Generate()
                        TMath::Sqrt(-2*TMath::Log(random[2*j+1]));
                }
            }
-           SetTrack(fTrackIt,-1,part,p,origin,polar,0,kPPrimary,nt,fParentWeight);
+           PushTrack(fTrackIt,-1,part,p,origin,polar,0,kPPrimary,nt,fParentWeight);
            break;
        } // while(1)
     } // Particle loop
index 9bf8de4fcdad350a53eccc51eb8a67db75fb23b2..352ce7819ebcc0283c0b427d50d5f353e76694f7 100644 (file)
@@ -120,12 +120,12 @@ void AliGenHalo::Generate()
       p[1]=p0*ty;
       p[2]=p0*tz;
       fParentWeight=wgt;
-      SetTrack(fTrackIt,-1,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
-//    SetTrack(fTrackIt,-1,ipart,p,origin,polar,0,"Halo+",nt,fParentWeight);
+      PushTrack(fTrackIt,-1,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
+//    PushTrack(fTrackIt,-1,ipart,p,origin,polar,0,"Halo+",nt,fParentWeight);
       origin[2]=-origin[2];
       p[2]=-p[2];
-      SetTrack(fTrackIt,-1,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
-//    SetTrack(fTrackIt,-1,ipart,p,origin,polar,0,"Halo-",nt,fParentWeight);
+      PushTrack(fTrackIt,-1,ipart,p,origin,polar,0,kPNoProcess,nt,fParentWeight);
+//    PushTrack(fTrackIt,-1,ipart,p,origin,polar,0,"Halo-",nt,fParentWeight);
       origin[2]=-origin[2];
       p[2]=-p[2];
   }
index 5b2a60d8536bbbe8803816bf2c29b9a65cad64f9..99b1f2e8371232a1bb18b87419edb4da1d1891d2 100644 (file)
@@ -275,9 +275,9 @@ void AliGenHaloProtvino::Generate()
       if (!fAnalog || gRandom->Rndm() < fParentWeight) {
 //    Pass parent particle
 //
-         SetTrack(0,-1,kProton,pP,originP,polar,t,kPNoProcess,ntP, fParentWeight);
+         PushTrack(0,-1,kProton,pP,originP,polar,t,kPNoProcess,ntP, fParentWeight);
          KeepTrack(ntP);
-         SetTrack(fTrackIt,ntP,ipart[nprim],p,origin,polar,t,kPNoProcess,nt,fParentWeight);
+         PushTrack(fTrackIt,ntP,ipart[nprim],p,origin,polar,t,kPNoProcess,nt,fParentWeight);
       }
 
       //
@@ -290,9 +290,9 @@ void AliGenHaloProtvino::Generate()
              origin[2]  = -origin[2];
              originP[2] = -originP[2];
              p[2]=-p[2];
-             SetTrack(0,-1,kProton,pP,originP,polar,t,kPNoProcess,ntP, fParentWeight);
+             PushTrack(0,-1,kProton,pP,originP,polar,t,kPNoProcess,ntP, fParentWeight);
              KeepTrack(ntP);
-             SetTrack(fTrackIt,ntP,ipart[nprim],p,origin,polar,t,kPNoProcess,nt,fParentWeight);
+             PushTrack(fTrackIt,ntP,ipart[nprim],p,origin,polar,t,kPNoProcess,nt,fParentWeight);
          }
       }
       SetHighWaterMark(nt);
index 6cfdb4e41757737ab127bc8defb36f00cc553cd4..963e58d562c49f5909aa6424e635cdaab6718c26 100644 (file)
@@ -400,7 +400,7 @@ void AliGenParam::Generate()
                  ipa++;
 //
 // Parent
-                 SetTrack(0, -1, iPart, p, origin0, polar, 0, kPPrimary, nt, wgtp);
+                 PushTrack(0, -1, iPart, p, origin0, polar, 0, kPPrimary, nt, wgtp);
                  pParent[0] = nt;
                  KeepTrack(nt); 
 //
@@ -425,7 +425,7 @@ void AliGenParam::Generate()
                              iparent = -1;
                          }
                         
-                         SetTrack(fTrackIt*trackIt[i], iparent, kf,
+                         PushTrack(fTrackIt*trackIt[i], iparent, kf,
                                           pc, och, polar,
                                           0, kPDecay, nt, wgtch);
                          pParent[i] = nt;
@@ -442,7 +442,7 @@ void AliGenParam::Generate()
          else  // nodecay option, so parent will be tracked by GEANT (pions, kaons, eta, omegas, baryons)
          {
            gAlice->
-               SetTrack(fTrackIt,-1,iPart,p,origin0,polar,0,kPPrimary,nt,wgtp);
+               PushTrack(fTrackIt,-1,iPart,p,origin0,polar,0,kPPrimary,nt,wgtp);
             ipa++; 
          }
          break;
index d9198a86dbdd5247a51d1a57bbaceaec1ca7f60f..9bd6a6927aa2bc0144b77478c86fddfe6b7b55fa 100644 (file)
@@ -127,7 +127,7 @@ void AliGenScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
          }
       }
   }
index b23555c867c8d46695cd882e44a6153207a8bbb3..8eb7a6ec72123176a31248491637952e73bbb346 100644 (file)
@@ -134,7 +134,7 @@ void AliGenSlowNucleons::Generate()
     kf = kProton;    
     for(i = 0; i < fNgp; i++) {
        GenerateSlow(fCharge, fTemperatureG, fBetaSourceG, p);
-       SetTrack(fTrackIt, -1, kf, p, origin, polar,
+       PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 0., kPNoProcess, nt, 1.);
        KeepTrack(nt);
     }
@@ -145,7 +145,7 @@ void AliGenSlowNucleons::Generate()
     kf = kNeutron;    
     for(i = 0; i < fNgn; i++) {
        GenerateSlow(fCharge, fTemperatureG, fBetaSourceG, p);
-       SetTrack(fTrackIt, -1, kf, p, origin, polar,
+       PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 0., kPNoProcess, nt, 1.);
        KeepTrack(nt);
     }
@@ -156,7 +156,7 @@ void AliGenSlowNucleons::Generate()
     kf = kProton;    
     for(i = 0; i < fNbp; i++) {
        GenerateSlow(fCharge, fTemperatureB, fBetaSourceB, p);
-       SetTrack(fTrackIt, -1, kf, p, origin, polar,
+       PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 0., kPNoProcess, nt, 1.);
        KeepTrack(nt);
     }
@@ -167,7 +167,7 @@ void AliGenSlowNucleons::Generate()
     kf = kNeutron;    
     for(i = 0; i < fNbn; i++) {
        GenerateSlow(fCharge, fTemperatureB, fBetaSourceB, p);
-       SetTrack(fTrackIt, -1, kf, p, origin, polar,
+       PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 0., kPNoProcess, nt, 1.);
        KeepTrack(nt);
     }
index 27d2663f25395bbbd52b20b2e029c501334088a7..47e5970db3ac996941d5e1fcd5fec64e6ce8c1fa 100644 (file)
@@ -113,7 +113,7 @@ void AliGenThetaSlice::Generate()
                    TMath::Sqrt(-2*TMath::Log(random[2*j+1]));
            }
        }
-       SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+       PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
     }
 }
 
index 0699b3bd4d7a3fb5bd4d8cdeb2e266f4f977474a..94c27d71cf2e5e492926c26a574f6bc311c7fc76 100644 (file)
@@ -313,7 +313,7 @@ void AliFMDv1::StepManager()
          gMC->IsTrackStop())
         {
             hits[6]=de+1000.*gMC->Edep();
-      new(lhits[fNhits++]) AliFMDhit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+      new(lhits[fNhits++]) AliFMDhit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
         } // IsTrackExiting()
      }
   }
index 4e6307c2c5b284cb3c48b717e56b7505fd809436..3bb51ac95bf1f00174964bf242634757ff5fe3de 100644 (file)
@@ -412,7 +412,7 @@ void AliFMDv2::StepManager()
          gMC->IsTrackStop())
         {
             hits[6]=de+1000.*gMC->Edep();
-      new(lhits[fNhits++]) AliFMDhit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+      new(lhits[fNhits++]) AliFMDhit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
         } // IsTrackExiting()
      }
   }
index e7825943626c773c108ea812e8fe6e35bb1a8527..e80b9d9339f723d5826a43cf819f1a81faf3c7b8 100644 (file)
@@ -860,6 +860,6 @@ void AliITSv1::StepManager(){
     hits[5]=momentum[2];
     hits[6]=gMC->Edep();
     hits[7]=gMC->TrackTime();
-    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 */
 }
index d1e7da2fb16d7d2c32bf6aee45fb220b6b606dd5..2df2d4b16a3409346dc0d9e5273a864459ee921c 100644 (file)
@@ -800,6 +800,6 @@ void AliITSv5::StepManager(){
   hits[6]=gMC->Edep();
   hits[7]=gMC->TrackTime();
   // Fill hit structure with this new hit.
-  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
   return;
 }
index b6a4064266912ab87e81a63e9f4ef328104cd529..c4de81a5a29a48f521424ff0ce369316cfaca04d 100644 (file)
@@ -814,6 +814,6 @@ void AliITSv5asymm::StepManager(){
   hits[6]=gMC->Edep();
   hits[7]=gMC->TrackTime();
   // Fill hit structure with this new hit.
-  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
   return;
 }
index 56e54a782b1d6426a26977641809c5517a525c46..e172025ba093c7ac79a16ce39aa8fdcc1edf05e0 100644 (file)
@@ -806,6 +806,6 @@ void AliITSv5symm::StepManager(){
   hits[6]=gMC->Edep();
   hits[7]=gMC->TrackTime();
   // Fill hit structure with this new hit.
-  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
   return;
 }
index 94fa4bef76bcb293fff7bbcdc264c5c8f080a6af..1bd7692116ce5c94377e6c2cf98a6df607d22d41 100644 (file)
@@ -29196,7 +29196,7 @@ void AliITSvPPRasymm::StepManager(){
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack());
+       new(lTR[copy]) AliTrackReference(gAlice->GetCurrentTrackNumber());
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;
@@ -29285,7 +29285,7 @@ void AliITSvPPRasymm::StepManager(){
        return;
     } // end if IsEntering
     // Fill hit structure with this new hit.
-    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,
+    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,
                                   gMC->Edep(),gMC->TrackTime(),position,
                                   position0,momentum);
     //
index 3404b99220d90eaa564b660f73ba79b6901dfdd3..a366a74f13359f2a850c8b57c8b8ee1d13e858c7 100644 (file)
@@ -5330,7 +5330,7 @@ void AliITSvPPRasymmFMD::StepManager(){
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack());
+       new(lTR[copy]) AliTrackReference(gAlice->GetCurrentTrackNumber());
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;
@@ -5429,8 +5429,8 @@ void AliITSvPPRasymmFMD::StepManager(){
        stat0 = vol[3];
     } // end if IsEntering
     // Fill hit structure with this new hit.
-//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
-    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,
+//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
+    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,
                                   gMC->Edep(),gMC->TrackTime(),position,
                                   position0,momentum);
     //
index 58915675f8cd704530f6edc877a735693358093b..1d23c17e6d0add1cd5a2f871ac4fd794c03627b1 100644 (file)
@@ -1245,7 +1245,7 @@ void AliITSvPPRcoarseasymm::StepManager(){
     hits[5]=momentum[2];
     hits[6]=gMC->Edep();
     hits[7]=gMC->TrackTime();
-//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 //
 // no hits for this coarse asymmetric version.
 //
index 559b0249563a3917b51f838f5329b3ac55f94a3f..52355b9efb77cbf4571fa170e7cb6ae63c55fea4 100644 (file)
@@ -1106,7 +1106,7 @@ void AliITSvPPRcoarsesymm::StepManager(){
     hits[5]=momentum[2];
     hits[6]=gMC->Edep();
     hits[7]=gMC->TrackTime();
-//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+//    new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 //
 // no hits for this coarse symmetric version.
 //
index 059472f20db97ec65d8a47ccd63788a14ebaae11..0f9dd131dff7f6864536dba4595f464ac484ca6b 100644 (file)
@@ -678,7 +678,7 @@ void AliITSvSPD02::StepManager(){
        copy = fTrackReferences->GetEntriesFast();
        TClonesArray &lTR = *fTrackReferences;
        // Fill TrackReference structure with this new TrackReference.
-       new(lTR[copy]) AliTrackReference(gAlice->CurrentTrack());
+       new(lTR[copy]) AliTrackReference(gAlice->GetCurrentTrackNumber());
     } // if Outer ITS mother Volume
     if(!(this->IsActive())){
        return;
@@ -723,7 +723,7 @@ void AliITSvSPD02::StepManager(){
        return;
     } // end if IsEntering
     // Fill hit structure with this new hit only for non-entrerance hits.
-    else new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,
+    else new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,
                                        gMC->Edep(),gMC->TrackTime(),position,
                                        position0,momentum);
     //
index ec70dd65dbb24ca74a192fa2ef9f99aea65fb423..1782209471387654343d835e7b38faa9e7646be9 100644 (file)
@@ -410,7 +410,7 @@ void AliITSvtest::StepManager(){
   hits[6]=gMC->Edep();
   hits[7]=gMC->TrackTime();
   // Fill hit structure with this new hit.
-  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+  new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
   return;
 }
 
index 81e051357f421e10d87fe2f3de1f0e8162539a37..ddad38e8f271943de92500a1221895f1a5916594 100644 (file)
@@ -427,7 +427,7 @@ void AliMUONproto::StepManager()
       }
     
       new(lhits[fNhits++]) 
-         AliMUONHit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+         AliMUONHit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
       eloss = 0; 
       //
       // Check additional signal generation conditions 
index 327902189713568d40c7ccd339a00a0642787b11..00066520e9f98de8199e343822b1b71627715395 100644 (file)
@@ -214,7 +214,7 @@ void AliMUONv0::StepManager()
       hits[13] = mom[2];                    // Pz
       hits[14] = gMC->TrackTime();          // time of flight
       new(lhits[fNhits++]) 
-         AliMUONHit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+         AliMUONHit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
   }
 //  if( gMC->IsTrackExiting()) gMC->StopTrack(); 
index 01dda0fa46e82c4f838c14b03f9bc3c3c282f910..0fcfdd7af38b8a3f203c4bccfb78cd8bd7685099 100644 (file)
@@ -1987,7 +1987,7 @@ void AliMUONv1::StepManager()
     destep = gMC->Edep();
     step   = gMC->TrackStep();
     //new hit
-    AddHit(fIshunt, gAlice->CurrentTrack(), iChamber, ipart, 
+    AddHit(fIshunt, gAlice->GetCurrentTrackNumber(), iChamber, ipart, 
           pos.X(), pos.Y(), pos.Z(), tof, mom.P(), 
           theta, phi, step, destep);
   }
@@ -2148,7 +2148,7 @@ void AliMUONv1::StepManagerOld()
 //    new hit 
       
       new(lhits[fNhits++]) 
-         AliMUONHit(fIshunt, gAlice->CurrentTrack(), vol,hits);
+         AliMUONHit(fIshunt, gAlice->GetCurrentTrackNumber(), vol,hits);
       eloss = 0; 
       //
       // Check additional signal generation conditions 
index 993dbad1e61459a16f5ec06780334d97440d7598..5a2ceeab5b0c46d4c29b42dfe4543cba15d68cea 100644 (file)
@@ -106,7 +106,7 @@ void AliMUONv3::StepManager()
   step   = gMC->TrackStep();
  //new hit
   if (destep>0.)  new(lhits[fNhits++]) 
-                   AliMUONHit(fIshunt, gAlice->CurrentTrack(), iChamber, ipart, 
+                   AliMUONHit(fIshunt, gAlice->GetCurrentTrackNumber(), iChamber, ipart, 
                               pos.X(), pos.Y(), pos.Z(), tof, mom.P(), 
                               theta, phi, step, destep);
 }
index e458cec01a0411a8507555edd7b2938716a3a151..34f2a90d0731e38bd968a5c84ac5615b9a9334bc 100644 (file)
@@ -517,8 +517,8 @@ void AliPHOSv1::StepManager(void)
   Bool_t         entered = kFALSE ;  
   Int_t          copy     ;
 
-  Int_t tracknumber =  gAlice->CurrentTrack() ; 
-  Int_t primary     =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t tracknumber =  gAlice->GetCurrentTrackNumber() ; 
+  Int_t primary     =  gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); 
   TString name      =  GetGeometry()->GetName() ; 
   Int_t trackpid    =  0  ; 
 
index aa8fb410cd28be69ad67524d13b1c218e4dc8a0c..cff830d4a49ccd59ebdc67fac6a6e72ad86e2515 100644 (file)
@@ -284,8 +284,8 @@ void AliPHOSv1::StepManager(void)
   TLorentzVector pos      ;           // Lorentz vector of the track current position
   Int_t          copy     ;
 
-  Int_t tracknumber =  gAlice->CurrentTrack() ; 
-  Int_t primary     =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t tracknumber =  gAlice->GetCurrentTrackNumber() ; 
+  Int_t primary     =  gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); 
   TString name      =  GetGeometry()->GetName() ; 
 
   Int_t moduleNumber ;
@@ -407,7 +407,7 @@ void AliPHOSv1::StepManager(void)
       if (xyzd[1] >  GetGeometry()->GetCrystalSize(1)/2-0.002 ||
          xyzd[1] < -GetGeometry()->GetCrystalSize(1)/2+0.002) {
        TParticle * part = 0 ; 
-       Int_t parent = gAlice->CurrentTrack() ; 
+       Int_t parent = gAlice->GetCurrentTrackNumber() ; 
        while ( parent != -1 ) {
          part = gAlice->Particle(parent) ; 
          part->SetBit(kKeepBit);
index 369783bfb1798ec1a8cd3f4b14a014f3a5fb680b..d8050c9231e0bc959b279b294cf1150f39d1b16f 100644 (file)
@@ -128,8 +128,8 @@ void AliPHOSv3::StepManager(void)
   Int_t          copy     ;
   Float_t        fLightYield ;   // Light Yield per GeV
 
-  Int_t tracknumber =  gAlice->CurrentTrack() ; 
-  Int_t primary     =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t tracknumber =  gAlice->GetCurrentTrackNumber() ; 
+  Int_t primary     =  gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); 
   TString name      =  GetGeometry()->GetName() ; 
   Float_t        lostenergy ;
   Float_t        global[3] ;
index 37cec26febc6a9107a2165a85da10d7fd0767271..f789d66a2118692cdc9406fcde33f08395469068 100644 (file)
@@ -484,7 +484,7 @@ void AliPHOSv4::StepManager(void)
 {
   // Only verifies if the particle reaches PHOS and stops the tracking 
 
-  Int_t primary =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t primary =  gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); 
 
   TLorentzVector lv ; 
   gMC->TrackPosition(lv) ;
index 3cae449e928328487768036804534d90e82ce10c..e698cfb7e543d0d4d8ce8026afb466b81744036c 100644 (file)
@@ -191,8 +191,8 @@ void AliPHOSvImpacts::StepManager(void)
   TLorentzVector pos      ;           // Lorentz vector of the track current position
   Int_t          copy     ;
 
-  Int_t tracknumber =  gAlice->CurrentTrack() ; 
-  Int_t primary     =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
+  Int_t tracknumber =  gAlice->GetCurrentTrackNumber() ; 
+  Int_t primary     =  gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); 
   TString name      =  GetGeometry()->GetName() ; 
 
   // Add impact to EMC
index e5925e264512dd162f79a86f2d697e91a2044d6d..49bef7c1b56a9112b8cce063f3aa9133b8c87206 100644 (file)
@@ -998,7 +998,7 @@ void AliPMDv0::StepManager()
 
     gMC->Gdtom(center,hits,1);
     hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
   }
 }
 
index 801615eb3f4a37a8fc709d639ff7c9954815e94d..9028231aa4528cd1a82faa36a845629a173a6a4c 100644 (file)
@@ -994,7 +994,7 @@ void AliPMDv1::StepManager()
 
     gMC->Gdtom(center,hits,1);
     hits[3] = destep*1e9; //Number in eV
-    AddHit(gAlice->CurrentTrack(), vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
   }
 }
 
index 5532a4fe50170462bf7254322f7450aeea2cf73d..70bab3d1fc0c512d7f7d9a12ca5fc15ab3d11118 100644 (file)
@@ -469,11 +469,11 @@ void AliGenPythia::Generate()
                    Float_t tof   = kconv*iparticle->T();
                    Int_t ipa     = iparticle->GetFirstMother()-1;
                    Int_t iparent = (ipa > -1) ? pParent[ipa] : -1;
-                   SetTrack(fTrackIt*trackIt[i] ,
+                   PushTrack(fTrackIt*trackIt[i] ,
                                     iparent, kf, p, origin, polar, tof, kPPrimary, nt, 1., ks);
                    pParent[i] = nt;
                    KeepTrack(nt); 
-               } //  SetTrack loop
+               } //  PushTrack loop
            }
        } else {
            nc = GenerateMB();
@@ -565,7 +565,7 @@ Int_t  AliGenPythia::GenerateMB()
            origin[1] = fOrigin[1]+iparticle->Vy()/10.;
            origin[2] = fOrigin[2]+iparticle->Vz()/10.;
            Float_t tof=kconv*iparticle->T();
-           SetTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
+           PushTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
                     tof, kPPrimary, nt, 1., ks);
            KeepTrack(nt);
            pParent[i] = nt;
index 275b4bafe9aa1cc2a65c50347cd1b777639d2ad3..ead7d309cdaa5d590d0f2d8ab42c1f2fb297870c 100644 (file)
@@ -164,7 +164,7 @@ void AliGenPythiaJets::Generate()
                origin[1] = fOrigin[1]+iparticle->Vy()/10.;
                origin[2] = fOrigin[2]+iparticle->Vz()/10.;
                Float_t tof=kconv*iparticle->T();
-               SetTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
+               PushTrack(fTrackIt*trackIt, iparent, kf, p, origin, polar,
                         tof, kPPrimary, nt, 1., ks);
                KeepTrack(nt);
                pParent[i] = nt;
index 11739765f2b5c6e4979f04cb5ae143bd267e819d..2acd070b9b984fd8f6c3a09b65ebc52477a31db4 100644 (file)
@@ -201,7 +201,7 @@ Int_t AliRICHResponseV0::FeedBackPhotons(Float_t *source, Float_t qtot)
 
   //  Get weight of current particle
   TParticle *current = (TParticle*) 
-    (*gAlice->Particles())[gAlice->CurrentTrack()];
+    (*gAlice->Particles())[gAlice->GetCurrentTrackNumber()];
     
   ifeed = Int_t(current->GetWeight()/100+0.5);
   ipart = gMC->TrackPid();
@@ -291,7 +291,7 @@ Int_t AliRICHResponseV0::FeedBackPhotons(Float_t *source, Float_t qtot)
     // Put photon on the stack and label it as feedback (51, 52) 
     ++sNfeed;
 
-    gAlice->SetTrack(Int_t(1), gAlice->CurrentTrack(), Int_t(50000051),
+    gAlice->PushTrack(Int_t(1), gAlice->GetCurrentTrackNumber(), Int_t(50000051),
                     mom[0],mom[1],mom[2],mom[3],source[0],source[1],source[2],position[3],pol[0],pol[1],pol[2],
                     kPFeedBackPhoton, nt, 1.);
     
index fe02459b6d7d9e2bcba4d796d75f5eab626313c7..ce030c1963906fe4a5482fd6156d503bbf3e9841 100644 (file)
@@ -228,7 +228,7 @@ void AliRICHv1::StepManager()
     const  Float_t kBig=1.e10;
        
     TClonesArray &lhits = *fHits;
-    TParticle *current = (TParticle*)(*gAlice->Particles())[gAlice->CurrentTrack()];
+    TParticle *current = (TParticle*)(*gAlice->Particles())[gAlice->GetCurrentTrackNumber()];
 
  //if (current->Energy()>1)
    //{
@@ -240,7 +240,7 @@ void AliRICHv1::StepManager()
     id=gMC->CurrentVolID(copy);
     idvol = copy-1;
     Float_t cherenkovLoss=0;
-    //gAlice->KeepTrack(gAlice->CurrentTrack());
+    //gAlice->KeepTrack(gAlice->GetCurrentTrackNumber());
     
     gMC->TrackPosition(position);
     pos[0]=position(0);
@@ -251,9 +251,9 @@ void AliRICHv1::StepManager()
     ckovData[2] = pos[1];                 // Y-position for hit
     ckovData[3] = pos[2];                 // Z-position for hit
     ckovData[6] = 0;                      // dummy track length
-    //ckovData[11] = gAlice->CurrentTrack();
+    //ckovData[11] = gAlice->GetCurrentTrackNumber();
     
-    //printf("\n+++++++++++\nTrack: %d\n++++++++++++\n",gAlice->CurrentTrack());
+    //printf("\n+++++++++++\nTrack: %d\n++++++++++++\n",gAlice->GetCurrentTrackNumber());
 
     //AliRICH *RICH = (AliRICH *) gAlice->GetDetector("RICH"); 
     
@@ -279,7 +279,7 @@ void AliRICHv1::StepManager()
                      //printf("Second Mother:%d\n",current->GetSecondMother());
                      
                      ckovData[10] = mother;
-                     ckovData[11] = gAlice->CurrentTrack();
+                     ckovData[11] = gAlice->GetCurrentTrackNumber();
                      ckovData[12] = 1;             //Media where photon was produced 1->Freon, 2->Quarz
                      //printf("Produced in FREO\n");
                      fCkovNumber++;
@@ -323,7 +323,7 @@ void AliRICHv1::StepManager()
                        if (ranf[0] > t) {
                          gMC->StopTrack();
                          ckovData[13] = 5;
-                         AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                         AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                          //printf("Added One (1)!\n");
                          //printf("Lost one in grid\n");
                        }
@@ -353,7 +353,7 @@ void AliRICHv1::StepManager()
                            if (ranf[0] < t) {
                              gMC->StopTrack();
                              ckovData[13] = 6;
-                             AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                             AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                                
                              //printf("Added One (2)!\n");
                              //printf("Lost by Fresnel\n");
@@ -377,7 +377,7 @@ void AliRICHv1::StepManager()
                      if (gMC->CurrentVolID(copy) == gMC->VolId("QUAR")) 
                        ckovData[13]=2;
                      //gMC->StopTrack();
-                     //AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     //AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                    } //reflection question
                     
                    //        Absorption loss 
@@ -401,7 +401,7 @@ void AliRICHv1::StepManager()
                        ckovData[13]=16;
                      }
                      gMC->StopTrack();
-                     AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                      //printf("Added One (3)!\n");
                      //printf("Added cerenkov %d\n",fCkovNumber);
                    } //absorption question 
@@ -411,7 +411,7 @@ void AliRICHv1::StepManager()
                    else if (procs[i] == kPStop) {                 //is it below energy treshold?
                      ckovData[13]=21;
                      gMC->StopTrack();
-                     AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                      //printf("Added One (4)!\n");
                    }   // energy treshold question         
                  }  //number of mechanisms cycle
@@ -541,8 +541,8 @@ void AliRICHv1::StepManager()
                      }
                    //if (sector != -1)
                    //{
-                   AddHit(gAlice->CurrentTrack(),vol,ckovData);
-                   AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                   AddHit(gAlice->GetCurrentTrackNumber(),vol,ckovData);
+                   AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                    //printf("Added One (5)!\n");
                    //}
                }
@@ -690,7 +690,7 @@ void AliRICHv1::StepManager()
                }
                
                //if(sector !=-1)
-               new(lhits[fNhits++]) AliRICHHit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+               new(lhits[fNhits++]) AliRICHHit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
                eloss = 0; 
                //
                // Check additional signal generation conditions 
index 78f63016b36e479d35b97038dbe17c342c67e3c9..a702d60336ae34805b1d30ebbe1cb4f574907709 100644 (file)
@@ -807,7 +807,7 @@ void AliRICHv3::StepManager()
     const  Float_t kBig=1.e10;
        
     TClonesArray &lhits = *fHits;
-    TParticle *current = (TParticle*)(*gAlice->Particles())[gAlice->CurrentTrack()];
+    TParticle *current = (TParticle*)(*gAlice->Particles())[gAlice->GetCurrentTrackNumber()];
 
  //if (current->Energy()>1)
    //{
@@ -819,7 +819,7 @@ void AliRICHv3::StepManager()
     id=gMC->CurrentVolID(copy);
     idvol = copy-1;
     Float_t cherenkovLoss=0;
-    //gAlice->KeepTrack(gAlice->CurrentTrack());
+    //gAlice->KeepTrack(gAlice->GetCurrentTrackNumber());
     
     gMC->TrackPosition(position);
     pos[0]=position(0);
@@ -830,9 +830,9 @@ void AliRICHv3::StepManager()
     ckovData[2] = pos[1];                 // Y-position for hit
     ckovData[3] = pos[2];                 // Z-position for hit
     ckovData[6] = 0;                      // dummy track length
-    //ckovData[11] = gAlice->CurrentTrack();
+    //ckovData[11] = gAlice->GetCurrentTrackNumber();
     
-    //printf("\n+++++++++++\nTrack: %d\n++++++++++++\n",gAlice->CurrentTrack());
+    //printf("\n+++++++++++\nTrack: %d\n++++++++++++\n",gAlice->GetCurrentTrackNumber());
 
     //AliRICH *RICH = (AliRICH *) gAlice->GetDetector("RICH"); 
     
@@ -858,7 +858,7 @@ void AliRICHv3::StepManager()
                      //printf("Second Mother:%d\n",current->GetSecondMother());
                      
                      ckovData[10] = mother;
-                     ckovData[11] = gAlice->CurrentTrack();
+                     ckovData[11] = gAlice->GetCurrentTrackNumber();
                      ckovData[12] = 1;             //Media where photon was produced 1->Freon, 2->Quarz
                      //printf("Produced in FREO\n");
                      fCkovNumber++;
@@ -902,7 +902,7 @@ void AliRICHv3::StepManager()
                        if (ranf[0] > t) {
                          gMC->StopTrack();
                          ckovData[13] = 5;
-                         AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                         AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                          //printf("Added One (1)!\n");
                          //printf("Lost one in grid\n");
                        }
@@ -932,7 +932,7 @@ void AliRICHv3::StepManager()
                            if (ranf[0] < t) {
                              gMC->StopTrack();
                              ckovData[13] = 6;
-                             AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                             AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                                
                              //printf("Added One (2)!\n");
                              //printf("Lost by Fresnel\n");
@@ -956,7 +956,7 @@ void AliRICHv3::StepManager()
                      if (gMC->CurrentVolID(copy) == gMC->VolId("QUAR")) 
                        ckovData[13]=2;
                      //gMC->StopTrack();
-                     //AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     //AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                    } //reflection question
                     
                    //        Absorption loss 
@@ -980,7 +980,7 @@ void AliRICHv3::StepManager()
                        ckovData[13]=16;
                      }
                      gMC->StopTrack();
-                     AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                      //printf("Added One (3)!\n");
                      //printf("Added cerenkov %d\n",fCkovNumber);
                    } //absorption question 
@@ -990,7 +990,7 @@ void AliRICHv3::StepManager()
                    else if (procs[i] == kPStop) {                 //is it below energy treshold?
                      ckovData[13]=21;
                      gMC->StopTrack();
-                     AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                     AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                      //printf("Added One (4)!\n");
                    }   // energy treshold question         
                  }  //number of mechanisms cycle
@@ -1120,8 +1120,8 @@ void AliRICHv3::StepManager()
                      }
                    //if (sector != -1)
                    //{
-                   AddHit(gAlice->CurrentTrack(),vol,ckovData);
-                   AddCerenkov(gAlice->CurrentTrack(),vol,ckovData);
+                   AddHit(gAlice->GetCurrentTrackNumber(),vol,ckovData);
+                   AddCerenkov(gAlice->GetCurrentTrackNumber(),vol,ckovData);
                    //printf("Added One (5)!\n");
                    //}
                }
@@ -1269,7 +1269,7 @@ void AliRICHv3::StepManager()
                }
                
                //if(sector !=-1)
-               new(lhits[fNhits++]) AliRICHHit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+               new(lhits[fNhits++]) AliRICHHit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
                eloss = 0; 
                //
                // Check additional signal generation conditions 
index 8c59fd9ddc3fb3dd6daea7d9eb0d434200d57357..adcf5c32b234e40c6f556e00652cdbe9c1a4ba90 100755 (executable)
@@ -612,7 +612,7 @@ void AliSTARTv1::StepManager()
       Float_t de=gMC->Edep(); 
       edep=edep+de;
       hits[3]=edep*1e3;
-      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->CurrentTrack(),vol,hits);      
+      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);      
     }
   }
 //---------------------------------------------------------------------
index 3f17c686ce12fb498824c9588820923add9b32a3..e4c25ebc81ab0262f0ca9a998d03704241c96777 100644 (file)
@@ -372,7 +372,7 @@ void AliSTARTv2::StepManager()
           hitPhoton[4] = 1e9 * gMC->TrackTime();
           hitPhoton[5] = 1e9 * gMC->Etot();
           
-          AddHitPhoton (gAlice->CurrentTrack(), vol, hitPhoton);
+          AddHitPhoton (gAlice->GetCurrentTrackNumber(), vol, hitPhoton);
        }
        gMC->StopTrack();
      }
@@ -436,7 +436,7 @@ void AliSTARTv2::StepManager()
       //        printf(" HITS on START Exit %f\n",hits[i]); } 
       //for (i=0; i<=1; i++) { printf("START vol %d\n",vol[i]);}
      
-      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->CurrentTrack(),vol,hits);      
+      new(lhits[fNhits++]) AliSTARThit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);      
     }
   }
 
index 428ca19dc76d0e3aed0d6ec5c14bc20a0fe2ff08..90984367cae8a1f151fdf8af8c4722d466ae6e72 100644 (file)
@@ -383,7 +383,7 @@ void AliGenerator::VertexInternal()
 }
 
 //_______________________________________________________________________
-void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
+void  AliGenerator::PushTrack(Int_t done, Int_t parent, Int_t pdg,
                                Float_t *pmom, Float_t *vpos, Float_t *polar,
                                Float_t tof, TMCProcess mech, Int_t &ntr,
                                Float_t weight, Int_t is)
@@ -393,15 +393,15 @@ void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
   //
 
   if (fStack)
-    fStack->SetTrack(done, parent, pdg, pmom, vpos, polar, tof,
+    fStack->PushTrack(done, parent, pdg, pmom, vpos, polar, tof,
                      mech, ntr, weight, is);
   else 
-    gAlice->SetTrack(done, parent, pdg, pmom, vpos, polar, tof,
+    gAlice->PushTrack(done, parent, pdg, pmom, vpos, polar, tof,
                      mech, ntr, weight, is);
 }
 
 //_______________________________________________________________________
-void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
+void  AliGenerator::PushTrack(Int_t done, Int_t parent, Int_t pdg,
                       Double_t px, Double_t py, Double_t pz, Double_t e,
                       Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                       Double_t polx, Double_t poly, Double_t polz,
@@ -412,10 +412,10 @@ void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
   //
   
   if (fStack)
-     fStack->SetTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
+     fStack->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
                       polx, poly, polz, mech, ntr, weight, is);
   else 
-     gAlice->SetTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
+     gAlice->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
                         polx, poly, polz, mech, ntr, weight, is);
 }
 
index 1dc7a7296619e6e38a09ded75b14156e27eaaf2b..97d3dd593d181bd2b95b8f629fc2ce6ba0123d84 100644 (file)
@@ -86,11 +86,11 @@ class AliGenerator : public TNamed, public AliRndm
     virtual AliCollisionGeometry* CollisionGeometry() {return fCollisionGeometry;}
     virtual void SetCollisionGeometry(AliCollisionGeometry* geom) {fCollisionGeometry = geom;}
  protected:
-    virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg,
+    virtual  void  PushTrack(Int_t done, Int_t parent, Int_t pdg,
                                Float_t *pmom, Float_t *vpos, Float_t *polar,
                                Float_t tof, TMCProcess mech, Int_t &ntr,
                                Float_t weight = 1, Int_t is = 0);
-    virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg,
+    virtual  void  PushTrack(Int_t done, Int_t parent, Int_t pdg,
                       Double_t px, Double_t py, Double_t pz, Double_t e,
                       Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                       Double_t polx, Double_t poly, Double_t polz,
index 26e2ac1f8f7430cce420467ef8bf6b2ca280a373..4e848713178cfc603827eb3a4e485ad93b156b2f 100644 (file)
@@ -220,7 +220,7 @@ void AliLego::BeginEvent()
     fStepsForward    = 0;
     fStepsBackward   = 0;                
     fErrorCondition  = 0;
-    if (gAlice->CurrentTrack() == 0) fStepBack = 0;
+    if (gAlice->GetCurrentTrackNumber() == 0) fStepBack = 0;
   }
 }
 
@@ -349,7 +349,7 @@ void AliLego::StepManager()
           orig[1] =  vect[1];     
           orig[2] =  vect[2];
           
-          gAlice->SetTrack(1, gAlice->CurrentTrack(), 
+          gAlice->PushTrack(1, gAlice->GetCurrentTrackNumber(), 
                            0, pmom, orig, polar, 0., kPNoProcess, ntr);
         } // debug
         
index e8f3fbe4837017a99bac800bcc60733721083f8e..9bb7a812921382fe4ee05fbcdbc7aec070da283f 100644 (file)
@@ -125,7 +125,7 @@ void AliLegoGenerator::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }
 
index 680c8a100c417bd8cc2789876c1f669b982a390a..4dc14891960d6c3ad0b14ee5a63c735a62b65373 100644 (file)
@@ -81,6 +81,6 @@ void AliLegoGeneratorEta::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }
index 2c2089eb7184909b4c4a1e089c7f8f922421192a..3c4be206e3d53acd6321dbe3a1f36207c1c47d3e 100644 (file)
@@ -78,6 +78,6 @@ void AliLegoGeneratorPhiZ::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }
index 1ad9748fe7a7d811a4b6aa8d7c46542a0eb1a174..80da302268791dcc820d48d380fcda04077b707e 100644 (file)
@@ -128,7 +128,7 @@ void AliLegoGeneratorXYZ::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }
 
index 2f4444da7c11442b3121a238b592e3585ce704f4..e543370b762707b36e20ef8239f79e0d1b0d0335 100644 (file)
@@ -1345,18 +1345,18 @@ void AliRun::SetCurrentTrack(Int_t track)
 }
  
 //_______________________________________________________________________
-void AliRun::SetTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
+void AliRun::PushTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
                       Float_t *vpos, Float_t *polar, Float_t tof,
                       TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
 { 
 // Delegate to stack
 //
-    fRunLoader->Stack()->SetTrack(done, parent, pdg, pmom, vpos, polar, tof,
+    fRunLoader->Stack()->PushTrack(done, parent, pdg, pmom, vpos, polar, tof,
                     mech, ntr, weight, is);
 }
 
 //_______________________________________________________________________
-void AliRun::SetTrack(Int_t done, Int_t parent, Int_t pdg,
+void AliRun::PushTrack(Int_t done, Int_t parent, Int_t pdg,
                      Double_t px, Double_t py, Double_t pz, Double_t e,
                      Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                      Double_t polx, Double_t poly, Double_t polz,
@@ -1364,7 +1364,7 @@ void AliRun::SetTrack(Int_t done, Int_t parent, Int_t pdg,
 { 
   // Delegate to stack
   //
-  fRunLoader->Stack()->SetTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
+  fRunLoader->Stack()->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
                                 polx, poly, polz, mech, ntr, weight, is);
 }
 
@@ -1643,11 +1643,11 @@ void AliRun::Streamer(TBuffer &R__b)
 
 
 //_______________________________________________________________________
-Int_t AliRun::CurrentTrack() const {
+Int_t AliRun::GetCurrentTrackNumber() const {
   //
   // Returns current track
   //
-  return fRunLoader->Stack()->CurrentTrack();
+  return fRunLoader->Stack()->GetCurrentTrackNumber();
 }
 
 //_______________________________________________________________________
index 21e1c09d6dbba29a3ed6612cb0ec0a68dabcafaf..0c21bdf020609e7a9042b1cc8be450579f3251d1 100644 (file)
@@ -61,7 +61,7 @@ public:
    virtual  void  CleanDetectors();
    TObjArray     *Detectors() const {return fModules;}
    TObjArray     *Modules() const {return fModules;}
-   Int_t          CurrentTrack() const;
+   Int_t          GetCurrentTrackNumber() const;
    AliDisplay    *Display() const { return fDisplay;}
    virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
    virtual  void  DumpPart (Int_t i) const;
@@ -126,11 +126,11 @@ public:
    virtual  void  SetDisplay(AliDisplay *display) {fDisplay = display;}
    virtual  void  SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, char*filename="$(ALICE_ROOT)/data/field01.dat");
    virtual  void  SetField(AliMagF* magField);
-   virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg, 
+   virtual  void  PushTrack(Int_t done, Int_t parent, Int_t pdg, 
                           Float_t *pmom, Float_t *vpos, Float_t *polar, 
                           Float_t tof, TMCProcess mech, Int_t &ntr,
                           Float_t weight = 1, Int_t is = 0);
-   virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg,
+   virtual  void  PushTrack(Int_t done, Int_t parent, Int_t pdg,
                           Double_t px, Double_t py, Double_t pz, Double_t e,
                           Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                           Double_t polx, Double_t poly, Double_t polz,
index 44eee0680b8699a3f3a36e792e827144b5e0cdfb..3f9e663ab0e01d7a4aef4ec2b8a734e39034235f 100644 (file)
@@ -124,7 +124,7 @@ AliStack::~AliStack()
 //
 
 //_____________________________________________________________________________
-void AliStack::SetTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
+void AliStack::PushTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
                         Float_t *vpos, Float_t *polar, Float_t tof,
                         TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
 { 
@@ -162,17 +162,17 @@ void AliStack::SetTrack(Int_t done, Int_t parent, Int_t pdg, Float_t *pmom,
 //        mass,e,fNtrack,pdg,parent,done,vpos[0],vpos[1],vpos[2],pmom[0],pmom[1],pmom[2],kS);
   
 
-       SetTrack(done, parent, pdg, pmom[0], pmom[1], pmom[2], e,
+       PushTrack(done, parent, pdg, pmom[0], pmom[1], pmom[2], e,
                 vpos[0], vpos[1], vpos[2], tof, polar[0], polar[1], polar[2],
                 mech, ntr, weight, is);
     } else {
-       Warning("SetTrack", "Particle type %d not defined in PDG Database !\n", pdg);
-       Warning("SetTrack", "Particle skipped !\n");
+       Warning("PushTrack", "Particle type %d not defined in PDG Database !\n", pdg);
+       Warning("PushTrack", "Particle skipped !\n");
     }
 }
 
 //_____________________________________________________________________________
-void AliStack::SetTrack(Int_t done, Int_t parent, Int_t pdg,
+void AliStack::PushTrack(Int_t done, Int_t parent, Int_t pdg,
                      Double_t px, Double_t py, Double_t pz, Double_t e,
                      Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                      Double_t polx, Double_t poly, Double_t polz,
@@ -227,7 +227,7 @@ void AliStack::SetTrack(Int_t done, Int_t parent, Int_t pdg,
       if(particle->GetFirstDaughter()<0) particle->SetFirstDaughter(fNtrack);
     }
     else {
-      printf("Error in AliStack::SetTrack: Parent %d does not exist\n",parent);
+      printf("Error in AliStack::PushTrack: Parent %d does not exist\n",parent);
     }
   } 
   else { 
@@ -243,7 +243,7 @@ void AliStack::SetTrack(Int_t done, Int_t parent, Int_t pdg,
 }
 
 //_____________________________________________________________________________
-TParticle*  AliStack::GetNextTrack(Int_t& itrack)
+TParticle*  AliStack::PopNextTrack(Int_t& itrack)
 {
   //
   // Returns next track from stack of particles
@@ -264,7 +264,7 @@ TParticle*  AliStack::GetNextTrack(Int_t& itrack)
 }
 
 //_____________________________________________________________________________
-TParticle*  AliStack::GetPrimaryForTracking(Int_t i)
+TParticle*  AliStack::PopPrimaryForTracking(Int_t i)
 {
   //
   // Returns i-th primary particle if it is flagged to be tracked,
@@ -620,7 +620,7 @@ Int_t AliStack::TreeKEntry(Int_t id) const
 }
 
 //_____________________________________________________________________________
-Int_t AliStack::CurrentTrackParent() const
+Int_t AliStack::GetCurrentParentTrackNumber() const
 {
   //
   // Return number of the parent of the current track
@@ -631,7 +631,7 @@ Int_t AliStack::CurrentTrackParent() const
   if (current) 
     return current->GetFirstMother();
   else {
-    Warning("CurrentTrackParent", "Current track not found in the stack");
+    Warning("GetCurrentParentTrackNumber", "Current track not found in the stack");
     return -1;
   }  
 }
index 729ff171df63b2b73c4733f2a356ee63c67fbb21..7c41a527839dae2978711f48aadca12f88d142c9 100644 (file)
@@ -31,21 +31,21 @@ class AliStack : public TVirtualMCStack
 
     // methods
 
-    virtual void  SetTrack(Int_t done, Int_t parent, Int_t pdg, 
+    virtual void  PushTrack(Int_t done, Int_t parent, Int_t pdg, 
                            Float_t *pmom, Float_t *vpos, Float_t *polar, 
                            Float_t tof, TMCProcess mech, Int_t &ntr,
                            Float_t weight, Int_t is);
 
-    virtual void  SetTrack(Int_t done, Int_t parent, Int_t pdg,
+    virtual void  PushTrack(Int_t done, Int_t parent, Int_t pdg,
                            Double_t px, Double_t py, Double_t pz, Double_t e,
                            Double_t vx, Double_t vy, Double_t vz, Double_t tof,
                            Double_t polx, Double_t poly, Double_t polz,
                            TMCProcess mech, Int_t &ntr, Double_t weight,
                            Int_t is);
 
-    virtual TParticle* GetNextTrack(Int_t& track);
-    virtual TParticle* GetCurrentTrack() {return fCurrentTrack;}
-    virtual TParticle* GetPrimaryForTracking(Int_t i);    
+    virtual TParticle* PopNextTrack(Int_t& track);
+    virtual TParticle* GetCurrentTrack() const {return fCurrentTrack;}
+    virtual TParticle* PopPrimaryForTracking(Int_t i);    
 
     void  ConnectTree();
     void  BeginEvent();
@@ -67,8 +67,8 @@ class AliStack : public TVirtualMCStack
     // get methods
     virtual Int_t GetNtrack() const;
     Int_t       GetNprimary() const;
-    virtual Int_t CurrentTrack() const;
-    virtual Int_t CurrentTrackParent() const;
+    virtual Int_t GetCurrentTrackNumber() const;
+    virtual Int_t GetCurrentParentTrackNumber() const;
     TObjArray*  Particles() const;
     TParticle*  Particle(Int_t id);
     Int_t       GetPrimary(Int_t id);
@@ -119,7 +119,7 @@ inline Int_t AliStack::GetNtrack() const
 inline Int_t AliStack::GetNprimary() const
 { return fNprimary; }
 
-inline Int_t AliStack::CurrentTrack() const 
+inline Int_t AliStack::GetCurrentTrackNumber() const 
 { return fCurrent; }
 
 inline TObjArray* AliStack::Particles() const
index 7aab0d8725fe2d441e09535fef926c684511ab31..f7549aa20ab47f5a320a9bbdb3e175154fc62668 100644 (file)
@@ -1048,7 +1048,7 @@ void AliFRAMEv2::StepManager()
   //
   // Add the reference track
   //
-  AddTrackReference(gAlice->CurrentTrack());
+  AddTrackReference(gAlice->GetCurrentTrackNumber());
 }
 
   
index 71984fe9607b5146a69727e9d7dbafeb4b34daac..d20bfcfa8ee467f43835f149feb0eb09fe1bd548 100644 (file)
@@ -316,7 +316,7 @@ void AliGenDPMjet::Generate()
                 kf==5301 || kf==5303 || kf==5401 || kf==5403 || kf==5503) 
                 tFlag=kFALSE;
 */           
-             SetTrack(tFlag,imo,kf,p,origin,polar,tof,kPNoProcess,nt, 1., ks);
+             PushTrack(tFlag,imo,kf,p,origin,polar,tof,kPNoProcess,nt, 1., ks);
              KeepTrack(nt);
              newPos[i] = nt;
          } // if selected
index 1211af275aa7d8c733d0d93564d77311cae58d64..f6e54c0234a7813ba77277664b706614844b6deb 100644 (file)
@@ -170,7 +170,7 @@ void AliGenEpEmv1::Generate()
   id =  11;
   if (fDebug == 2)
     printf("id=%+3d, p = (%+11.4e,%+11.4e,%+11.4e) GeV\n",id,p[0],p[1],p[2]);
-  SetTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
+  PushTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
 
   // Produce positron
   mt = TMath::Sqrt(ptPositron*ptPositron + fMass*fMass);
@@ -180,7 +180,7 @@ void AliGenEpEmv1::Generate()
   id = -11;
   if (fDebug == 2)
     printf("id=%+3d, p = (%+11.4e,%+11.4e,%+11.4e) GeV\n",id,p[0],p[1],p[2]);
-  SetTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
+  PushTrack(fTrackIt,-1, id,p,origin,polar,0,kPPrimary,nt,weight);
   
   fEvent++;
   if (fEvent%1000 == 0) {
index 86c9d268bd98237baf7074c42dd9fe59480ab51c..914e2c809b33ee52dd2316e7bb748e7b224c4c35 100644 (file)
@@ -106,7 +106,7 @@ void stupre()
        if (EVTFLG.lpairp == 1) mech = kPPair;
        else if (EVTFLG.lphoel == 1) mech = kPPhotoelectric;
        else mech = kPAnnihilation;
-        cppstack->SetTrack(done, parent, pdg,
+        cppstack->PushTrack(done, parent, pdg,
                           px, py, pz, e, vx, vy, vz, tof,
                           polx, poly, polz, mech, ntr, weight, is);
        cout << endl << " !!! stupre (PAIR, ..) : ntr=" << ntr << "pdg " << pdg << " parent=" << parent << endl;
@@ -119,7 +119,7 @@ void stupre()
 
        if (EMFSTK.ichemf[kp] != 0) {
            mech = kPCompton;
-           cppstack->SetTrack(done, parent, pdg,
+           cppstack->PushTrack(done, parent, pdg,
                               px, py, pz, e, vx, vy, vz, tof,
                               polx, poly, polz, mech, ntr, weight, is);
            cout << endl << " !!! stupre (COMPTON) : ntr=" << ntr << "pdg " << pdg << " parent=" << parent << endl;
@@ -131,7 +131,7 @@ void stupre()
     else if ((EVTFLG.lbrmsp == 1)) {
        if (EMFSTK.ichemf[kp] == 0) {
            mech = kPBrem;
-           cppstack->SetTrack(done, parent, pdg,
+           cppstack->PushTrack(done, parent, pdg,
                               px, py, pz, e, vx, vy, vz, tof,
                               polx, poly, polz, mech, ntr, weight, is);
            cout << endl << " !!! stupre (BREMS) : ntr=" << ntr << "pdg " << pdg << " parent=" << parent << endl;
@@ -144,7 +144,7 @@ void stupre()
        if (lbhabh == 1) {
            if (EMFSTK.ichemf[kp] == -1) {
                mech = kPDeltaRay;
-               cppstack->SetTrack(done, parent, pdg,
+               cppstack->PushTrack(done, parent, pdg,
                                   px, py, pz, e, vx, vy, vz, tof,
                                   polx, poly, polz, mech, ntr, weight, is);
                EMFSTK.iespak[kp][mkbmx2-1] = ntr;
@@ -156,7 +156,7 @@ void stupre()
 //*            lower energy, which has been put higher in the stack
        else if (kp == EMFSTK.npemf-1) {
            mech = kPDeltaRay;
-           cppstack->SetTrack(done, parent, pdg,
+           cppstack->PushTrack(done, parent, pdg,
                               px, py, pz, e, vx, vy, vz, tof,
                               polx, poly, polz, mech, ntr, weight, is);
            cout << endl << " !!! stupre (Moller) : ntr=" << ntr << "pdg " << pdg << " parent=" << parent << endl;
index 48898f28f19d5721709a2cdff95671a4e6f7ef61..dc5b6ef6b65c3f8ab3a897e36de9ee233d146201 100644 (file)
@@ -65,7 +65,7 @@ void stuprf(Int_t& ij, Int_t& mreg,
 // was numsec -1
 // clarify with Alberto
   if (numsec > npprmr) {
-// Now call the SetTrack(...)
+// Now call the PushTrack(...)
     Int_t done = 1;
 
     Int_t parent =  TRACKR.ispusr[mkbmx2-1];
@@ -111,7 +111,7 @@ void stuprf(Int_t& ij, Int_t& mreg,
     Int_t ntr;  
     // 
     // Save particle in VMC stack
-    cppstack->SetTrack(done, parent, pdg,
+    cppstack->PushTrack(done, parent, pdg,
                       px, py, pz, e,
                       vx, vy, vz, tof,
                       polx, poly, polz,
index 3ace77fef9033676c83b125f537d067247b4c5c5..ddf1f6a903946ccc1e8b0eef36c986578f64ec60 100644 (file)
@@ -202,7 +202,7 @@ void AliGenHerwig::Generate()
                Float_t tof = kconv*iparticle->T();
                Int_t   iparent = (imo > -1) ? newPos[imo] : -1;
                Int_t   trackIt = (ks == 1) && fTrackIt;
-               gAlice->SetTrack(trackIt, iparent, kf,
+               gAlice->PushTrack(trackIt, iparent, kf,
                                 p[0], p[1], p[2], p[3],
                                 origin[0], origin[1], origin[2], 
                                 tof,
index 2c7fe79aee93a978d056fcfa4fef99a121e8783c..5c25022e291c76a2d5eb7cb5db7abcb465635857 100644 (file)
@@ -315,7 +315,7 @@ void AliGenHijing::Generate()
                  imo = (mother->GetPdgCode() != 92) ? imo = newPos[imo] : -1;
              } // if has mother   
              Bool_t tFlag = (fTrackIt && !hasDaughter);
-             SetTrack(tFlag,imo,kf,p,origin,polar,
+             PushTrack(tFlag,imo,kf,p,origin,polar,
                       tof,kPNoProcess,nt, 1., ks);
              KeepTrack(nt);
              newPos[i] = nt;
index cf3a3053008d7c73dca119646ba107be2dab7b66..b973e61f49263549aabaa2f4746d586e65cc0cfd 100644 (file)
@@ -160,7 +160,7 @@ void AliGenMevSim::Generate()
     p[1] = particle->Py();
     p[2] = particle->Pz();
     
-    SetTrack(fTrackIt, parent, pdg, p, orgin, polar, time, kPPrimary, id);
+    PushTrack(fTrackIt, parent, pdg, p, orgin, polar, time, kPPrimary, id);
 
   }  
  
index ae5583e69a6bac0f5d3fdc5c57ad490d3e0c5cca..616975dc60df8ed3102615f8e217c5dcc36c74a7 100644 (file)
@@ -1029,7 +1029,7 @@ void AliTOFv0::StepManager()
     vol[3]= padx;
     vol[4]= padz;
 
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
 
index 638a1b94472ca95835fbe41b76dbab77b30fde2a..f6b3f0d1ea5f5b21f9778dae6502e709f950d1d4 100644 (file)
@@ -1119,7 +1119,7 @@ void AliTOFv1::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
 
index 7689cc598154f20908d52381b58a2f077a00a0a4..8840563927e2bb32e6089c2cc56ed081f23b3b3d 100644 (file)
@@ -1135,6 +1135,6 @@ void AliTOFv2::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
index 24d7a0abf96bb55a73e6626a63595e7682727a56..47c9c0cdaa7da174389f7aaca30c4744cbda70e7 100644 (file)
@@ -1157,6 +1157,6 @@ void AliTOFv2FHoles::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
index 71b5b6f1db0efb0132ea0e0d4852054ad6f79901..a16ab9e97c5301b3233764f19d75016e80841b88 100644 (file)
@@ -1120,6 +1120,6 @@ void AliTOFv3::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
index c781051868f7d5b50d74d0168ef29d575a910ef6..a5aeb10d30ff969fb971a332cc3ae37bf93f4100 100644 (file)
@@ -1119,6 +1119,6 @@ void AliTOFv4::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddHit(gAlice->CurrentTrack(),vol, hits);
+    AddHit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
index 598514b1e88c54baf125ee6126093181248dc20a..d7f1e794c92ebc1bc835bdef75b10033539bd633 100644 (file)
@@ -1115,6 +1115,6 @@ void AliTOFv4T0::StepManager()
     vol[3]= padx;
     vol[4]= padz;
     
-    AddT0Hit(gAlice->CurrentTrack(),vol, hits);
+    AddT0Hit(gAlice->GetCurrentTrackNumber(),vol, hits);
   }
 }
index 6cf6cf3d6a6c26c8ac0a26076eb03c8e165672bd..538402fc95ef31be854e69d4509c678d55820bb5 100644 (file)
@@ -1766,27 +1766,27 @@ void AliTPCv1::StepManager()
         hits[1]=p[1];
         hits[2]=p[2];
         hits[3]=0.; // this hit has no energy loss
-       // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+       // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
-        AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. 
+        AddHit(gAlice->GetCurrentTrackNumber(), vol,hits); // M.I. 
 
         gMC->TrackPosition(p);
         hits[0]=p[0];
         hits[1]=p[1];
         hits[2]=p[2];
         hits[3]=0.; // this hit has no energy loss
-        // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+        // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
-       AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. 
+       AddHit(gAlice->GetCurrentTrackNumber(), vol,hits); // M.I. 
 
       } 
 
       gMC->TrackPosition(p);
       for(i=0;i<3;++i) hits[i]=p[i];
       hits[3]=1; //I'd like to have something positive here (I.Belikov)
-      // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+      // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
-      AddHit(gAlice->CurrentTrack(), vol,hits); // M.I. 
+      AddHit(gAlice->GetCurrentTrackNumber(), vol,hits); // M.I. 
 
     }
 
index dfe6fef301c054a304ee4ecd1bd1d0f8ce1d69a0..432b38ae5db74a81f1b5d01c451850cd37a37d53 100644 (file)
@@ -1858,7 +1858,7 @@ void AliTPCv2::StepManager()
   if ( (gMC->IsTrackEntering() || gMC->IsTrackExiting()) &&
        ((id == fIdLSec) || (id == fIdUSec)) ) {
 
-    AddTrackReference(gAlice->CurrentTrack());
+    AddTrackReference(gAlice->GetCurrentTrackNumber());
   }
 
   if(id == fIdLSec){
@@ -1902,9 +1902,9 @@ void AliTPCv2::StepManager()
       hits[1]=p[1];
       hits[2]=p[2];
       hits[3]=0.; // this hit has no energy loss
-      // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+      // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
-      AddHit(gAlice->CurrentTrack(), vol,hits);  //MI change
+      AddHit(gAlice->GetCurrentTrackNumber(), vol,hits);  //MI change
 
     }
 
@@ -1913,9 +1913,9 @@ void AliTPCv2::StepManager()
      hits[1]=p[1];
      hits[2]=p[2];
      hits[3]=0.; // this hit has no energy loss
-     // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+     // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
 
-     AddHit(gAlice->CurrentTrack(), vol,hits);  //MI change    
+     AddHit(gAlice->GetCurrentTrackNumber(), vol,hits);  //MI change    
 
   }
   else return;
@@ -1937,14 +1937,14 @@ void AliTPCv2::StepManager()
     
     // Add this hit
     
-    // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->CurrentTrack(),vol,hits);
+    // new(lhits[fNhits++]) AliTPChit(fIshunt,gAlice->GetCurrentTrackNumber(),vol,hits);
     if (fHitType&&2){
       gMC->TrackMomentum(p);
       Float_t momentum = TMath::Sqrt(p[0]*p[0]+p[1]*p[1]);
       Float_t precision =   (momentum>0.1) ? 0.002 :0.01;
       fTrackHits->SetHitPrecision(precision);
     }
-    AddHit(gAlice->CurrentTrack(), vol,hits);  //MI change 
+    AddHit(gAlice->GetCurrentTrackNumber(), vol,hits);  //MI change 
     
   } 
   
index 5ca11ce7a33032e2216ebccd22b2c6a5c2ca8b16..84fe72bdbe7b808bf0fc02143afad13d44cbc3ec 100644 (file)
@@ -1680,7 +1680,7 @@ void AliTPCv3::StepManager()
     
     // Add this hit
    
-    AddHit(gAlice->CurrentTrack(), vol,hits);  //MI change
+    AddHit(gAlice->GetCurrentTrackNumber(), vol,hits);  //MI change
     
   } 
   
index a14a103cc513b55d67d5d1168ed5a1a188520930..e3bb1e3bf9e0a8b2a01b5d5f89dbcdfec2563b76 100644 (file)
@@ -175,7 +175,7 @@ void AliGenTPHIC::Generate()
     tof     = kconv*iparticle->T();
     if (ks == 1) trackIt = 1;
     else         trackIt = 0;
-    SetTrack(fTrackIt*trackIt,iparent,kf,p,origin,polar,tof,kPPrimary,nt,weight,ks);
+    PushTrack(fTrackIt*trackIt,iparent,kf,p,origin,polar,tof,kPPrimary,nt,weight,ks);
     KeepTrack(nt); 
 
     if (fDebug == 2)
index bd940fa3c8f8f9c05faa6b8ef83f56ced9cf869d..e0681ae66292e2b21ab12e5d36af5aec628de4e9 100644 (file)
@@ -116,7 +116,7 @@ void AliTRDsimpleGen::NewParticle(Int_t ievent)
     Float_t vtx[3] = { 0.0 };
     Float_t pol[3] = { 0.0 };
     Int_t   ntr    = 0;
-    gAlice->SetTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
+    gAlice->PushTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
 
   }
 
index 8ec90ad6f4de0e3f0d3963798d163043792ab821..11854d629d819872e20f8a6a7751721a1a7dd45a 100644 (file)
@@ -65,7 +65,7 @@ AliTRDsimpleMC::AliTRDsimpleMC()
 
 //_____________________________________________________________________________
 AliTRDsimpleMC::AliTRDsimpleMC(const char *name, const char *title)
-               :TVirtualMC(name,title)
+               :TVirtualMC(name,title,kFALSE)
 {                       
   //
   // AliTRDsimpleMC default constructor
index a0e84f051f9c955b5ef06b8e2e299343cf21987c..1ec364ada06a2c1875f52f65481b5b75df2f2f56 100644 (file)
@@ -176,7 +176,7 @@ void AliTRDv0::StepManager()
       pla = ((Int_t) idChamber % kNplan);
       det = fGeometry->GetDetector(pla,cha,sec);
 
-      AddHit(gAlice->CurrentTrack(),det,hits,0,kTRUE);       
+      AddHit(gAlice->GetCurrentTrackNumber(),det,hits,0,kTRUE);       
 
     }
 
index 2207e0b5a49d6f2de7280f4ada335a589badab7e..46b7246b9532646607150bee6d68ef8b6bdaff90 100644 (file)
@@ -264,7 +264,7 @@ void AliTRDv1::CreateTRhit(Int_t det)
 
       // Add the hit to the array. TR photon hits are marked 
       // by negative charge
-      AddHit(gAlice->CurrentTrack(),det,posHit,-q,kTRUE); 
+      AddHit(gAlice->GetCurrentTrackNumber(),det,posHit,-q,kTRUE); 
 
     }
 
@@ -553,7 +553,7 @@ void AliTRDv1::StepManager()
          // momentum components of the particle
           if (gMC->IsTrackEntering() || gMC->IsTrackExiting()) {
             gMC->TrackMomentum(mom);
-            AddTrackReference(gAlice->CurrentTrack());
+            AddTrackReference(gAlice->GetCurrentTrackNumber());
           }
 
           // Create the hits from TR photons
@@ -570,10 +570,10 @@ void AliTRDv1::StepManager()
 
        // Create a new dEdx hit
         if (drRegion) {
-          AddHit(gAlice->CurrentTrack(),det,hits,qTot,kTRUE);       
+          AddHit(gAlice->GetCurrentTrackNumber(),det,hits,qTot,kTRUE);       
        }
         else {
-          AddHit(gAlice->CurrentTrack(),det,hits,qTot,kFALSE);      
+          AddHit(gAlice->GetCurrentTrackNumber(),det,hits,qTot,kFALSE);      
        }
 
         // Calculate the maximum step size for the next tracking step
index dab8db3410c3796e3095d34f58bac9ff44509d1d..f1c447c6fa2d825991545c4e379259c09d8d33e5 100755 (executable)
@@ -1493,7 +1493,7 @@ void AliVZEROv0::StepManager()
         hits[13] = mom[2];
         
 
-         AddHit(gAlice->CurrentTrack(), vol, hits);
+         AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         
         }
      
index b34e6345593c4341bd0d83d426ac5ed6a2d50c69..258bdee7e955c74059868feca18b4d0473714cc6 100755 (executable)
@@ -1052,7 +1052,7 @@ void AliVZEROv2::StepManager()
            hits[12] = mom[1];
            hits[13] = mom[2];
            
-           TParticle *par = gAlice->Particle(gAlice->CurrentTrack());
+           TParticle *par = gAlice->Particle(gAlice->GetCurrentTrackNumber());
             hits[14] = par->Vx();
             hits[15] = par->Vy();
             hits[16] = par->Vz();
@@ -1067,7 +1067,7 @@ void AliVZEROv2::StepManager()
         hits[17] =   eloss;
         hits[18] = tlength;
         
-         AddHit(gAlice->CurrentTrack(), vol, hits);
+         AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
                 
         tlength  = 0.0;
         eloss    = 0.0; 
index 73e10b080032b4979da525e36c1caacd395e0cf9..1781060fa3eb6e91bd0768682a611625eb8ce9d2 100644 (file)
@@ -154,7 +154,7 @@ void AliGenZDC::Generate()
   }
       
   Float_t polar[3] = {0,0,0};
-  gAlice->SetTrack(fTrackIt,-1,fIpart,fPTrack,fOrigin.GetArray(),polar,0,
+  gAlice->PushTrack(fTrackIt,-1,fIpart,fPTrack,fOrigin.GetArray(),polar,0,
                   kPPrimary,nt);
   if(fDebugOpt == 1){
     printf("\n\n               Track momentum:\n");
index 3cf2721d4500b9491af1290f02553e3abec423da..bdc745fa8cef68b3c5db05cec5a3b0747cfa6562 100644 (file)
@@ -1253,7 +1253,7 @@ void AliZDCv1::StepManager()
 
 //       Int_t PcID = gMC->TrackPid();
 //       printf("Pc ID -> %d\n",PcID);
-       AddHit(gAlice->CurrentTrack(), vol, hits);
+       AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
        
        if(fNoShower==1){
 //       fpDetected += 1;
@@ -1273,13 +1273,13 @@ void AliZDCv1::StepManager()
           hits[9] = ekin;
           hits[7] = 0.;
           hits[8] = 0.;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
           }
         else{
           hits[9] = destep;
           hits[7] = 0.;
           hits[8] = 0.;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
           }
 //      printf(" Dep. E = %f \n",hits[9]);
       }
@@ -1359,13 +1359,13 @@ void AliZDCv1::StepManager()
           hits[7] = nphe;      //fLightPMQ
           hits[8] = 0;
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
         else{
           hits[7] = 0;
           hits[8] = nphe;      //fLightPMC
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
        } 
        else if((vol[0]==2)) {  // (2) ZP fibres
@@ -1378,13 +1378,13 @@ void AliZDCv1::StepManager()
           hits[7] = nphe;      //fLightPMQ
           hits[8] = 0;
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
         else{
           hits[7] = 0;
           hits[8] = nphe;      //fLightPMC
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
        } 
        else if((vol[0]==3)) {  // (3) ZEM fibres
@@ -1410,7 +1410,7 @@ void AliZDCv1::StepManager()
         hits[7] = 0;   
         hits[8] = nphe;        //fLightPMC
         hits[9] = 0;
-        AddHit(gAlice->CurrentTrack(), vol, hits);
+        AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
        }
      }
    }
index d4493617bd7725eae1b9f38384684561b74b0e9b..eb8eabdb7ef7340a40b805e12a728cb022e234ec 100644 (file)
@@ -1308,7 +1308,7 @@ void AliZDCv2::StepManager()
 
 //       Int_t PcID = gMC->TrackPid();
 //       printf("Pc ID -> %d\n",PcID);
-       AddHit(gAlice->CurrentTrack(), vol, hits);
+       AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
        
        if(fNoShower==1){
          fpDetected += 1;
@@ -1328,13 +1328,13 @@ void AliZDCv2::StepManager()
           hits[9] = ekin;
           hits[7] = 0.;
           hits[8] = 0.;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
           }
         else{
           hits[9] = destep;
           hits[7] = 0.;
           hits[8] = 0.;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
           }
 //      printf(" Dep. E = %f \n",hits[9]);
       }
@@ -1416,13 +1416,13 @@ void AliZDCv2::StepManager()
           hits[7] = nphe;      //fLightPMQ
           hits[8] = 0;
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
         else{
           hits[7] = 0;
           hits[8] = nphe;      //fLightPMC
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
        } 
        else if((vol[0]==2)) {  // (2) ZP fibres
@@ -1435,13 +1435,13 @@ void AliZDCv2::StepManager()
           hits[7] = nphe;      //fLightPMQ
           hits[8] = 0;
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
         else{
           hits[7] = 0;
           hits[8] = nphe;      //fLightPMC
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
        } 
        else if((vol[0]==3)) {  // (3) ZEM fibres
@@ -1468,13 +1468,13 @@ void AliZDCv2::StepManager()
           hits[7] = 0;         
           hits[8] = nphe;      //fLightPMC (ZEM1)
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
         else{
           hits[7] = nphe;      //fLightPMQ (ZEM2)
           hits[8] = 0;         
           hits[9] = 0;
-          AddHit(gAlice->CurrentTrack(), vol, hits);
+          AddHit(gAlice->GetCurrentTrackNumber(), vol, hits);
         }
        }
      }