Removing warnings (Andrea)
[u/mrichter/AliRoot.git] / PWG3 / vertexingOld / AliBtoJPSItoEleAnalysis.cxx
index 70771f0..174f30a 100644 (file)
@@ -654,14 +654,14 @@ AliBtoJPSItoEleAnalysis::SingleTrkCuts(const AliESDtrack& trk, Double_t b) const
   return kTRUE;
 }
 //----------------------------------------------------------------------------
-void AliBtoJPSItoEleAnalysis::MakeTracksRefFile(AliRun *gAlice,
+void AliBtoJPSItoEleAnalysis::MakeTracksRefFile(AliRun *mygAlice,
                                           Int_t evFirst,Int_t evLast) const {
   // Create a file with simulation info for the reconstructed tracks
   
   TFile *outFile = TFile::Open("BTracksRefFile.root","recreate");
   TFile *esdFile = TFile::Open("AliESDs.root");
 
-  AliMC *mc = gAlice->GetMCApp();
+  AliMC *mc = mygAlice->GetMCApp();
   
   Int_t      label;
   TParticle *part;  
@@ -678,7 +678,7 @@ void AliBtoJPSItoEleAnalysis::MakeTracksRefFile(AliRun *gAlice,
     tree->GetEvent(iEvent);
     Int_t ev = (Int_t)event->GetEventNumberInFile();
 
-    gAlice->GetEvent(ev);
+    mygAlice->GetEvent(ev);
 
     Int_t nentr=(Int_t)event->GetNumberOfTracks();
 
@@ -698,12 +698,12 @@ void AliBtoJPSItoEleAnalysis::MakeTracksRefFile(AliRun *gAlice,
       reftrk.pdg = part->GetPdgCode();
       reftrk.mumlab = part->GetFirstMother();
       if(part->GetFirstMother()>=0) {
-       mumpart = (TParticle*)gAlice->GetMCApp()->Particle(part->GetFirstMother());
+       mumpart = (TParticle*)mygAlice->GetMCApp()->Particle(part->GetFirstMother());
        reftrk.mumpdg = mumpart->GetPdgCode();
        reftrk.mumprongs = mumpart->GetNDaughters();
         reftrk.gmumlab = mumpart->GetFirstMother();
         if(mumpart->GetFirstMother()>=0) {
-          gmumpart = (TParticle*)gAlice->GetMCApp()->Particle(mumpart->GetFirstMother());
+          gmumpart = (TParticle*)mygAlice->GetMCApp()->Particle(mumpart->GetFirstMother());
           reftrk.gmumpdg = gmumpart->GetPdgCode();
         }
       } else {