]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing warnings (Andrea)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 08:33:46 +0000 (08:33 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 08:33:46 +0000 (08:33 +0000)
PWG3/vertexingOld/AliBtoJPSItoEleAnalysis.cxx
PWG3/vertexingOld/AliBtoJPSItoEleAnalysis.h
PWG3/vertexingOld/AliD0toKpiAnalysis.cxx
PWG3/vertexingOld/AliD0toKpiAnalysis.h

index 70771f07c3012579def100139395b98ecab3e85f..174f30aa03b77b498e5952e8fe3890d093f452de 100644 (file)
@@ -654,14 +654,14 @@ AliBtoJPSItoEleAnalysis::SingleTrkCuts(const AliESDtrack& trk, Double_t b) const
   return kTRUE;
 }
 //----------------------------------------------------------------------------
   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");
 
                                           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;  
   
   Int_t      label;
   TParticle *part;  
@@ -678,7 +678,7 @@ void AliBtoJPSItoEleAnalysis::MakeTracksRefFile(AliRun *gAlice,
     tree->GetEvent(iEvent);
     Int_t ev = (Int_t)event->GetEventNumberInFile();
 
     tree->GetEvent(iEvent);
     Int_t ev = (Int_t)event->GetEventNumberInFile();
 
-    gAlice->GetEvent(ev);
+    mygAlice->GetEvent(ev);
 
     Int_t nentr=(Int_t)event->GetNumberOfTracks();
 
 
     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) {
       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) {
        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 {
           reftrk.gmumpdg = gmumpart->GetPdgCode();
         }
       } else {
index c550745fa9b941e903739a110e73dda4b9307b35..1cd44580a7e4b213f4640cf85f5b0f21073bbe1b 100644 (file)
@@ -28,7 +28,7 @@ class AliBtoJPSItoEleAnalysis : public TNamed {
                      const Char_t *outName="AliBtoJPSItoEle_sele.root") const;
   void FindCandidates(Int_t evFirst=0,Int_t evLast=0,
                      const Char_t *outName="AliBtoJPSItoEle.root");
                      const Char_t *outName="AliBtoJPSItoEle_sele.root") const;
   void FindCandidates(Int_t evFirst=0,Int_t evLast=0,
                      const Char_t *outName="AliBtoJPSItoEle.root");
-  void MakeTracksRefFile(AliRun *gAlice,Int_t evFirst=0,Int_t evLast=0) const;
+  void MakeTracksRefFile(AliRun *mygAlice,Int_t evFirst=0,Int_t evLast=0) const;
   void PrintStatus() const;
   void SetVertexOnTheFly() { fVertexOnTheFly=kTRUE; }
   void SetSimulation() { fSim=kTRUE; }
   void PrintStatus() const;
   void SetVertexOnTheFly() { fVertexOnTheFly=kTRUE; }
   void SetSimulation() { fSim=kTRUE; }
index 80fd461fcf690a7967b9222e66f8d1590c93b1ab..8fcec1b99e7f19aa058ad2cc5b8ff0a22eb5782e 100644 (file)
@@ -502,14 +502,14 @@ AliD0toKpiAnalysis::SingleTrkCuts(const AliESDtrack& trk, Double_t b) const {
   return kTRUE;
 }
 //----------------------------------------------------------------------------
   return kTRUE;
 }
 //----------------------------------------------------------------------------
-void AliD0toKpiAnalysis::MakeTracksRefFile(AliRun *gAlice,
+void AliD0toKpiAnalysis::MakeTracksRefFile(AliRun *mygAlice,
                                           Int_t evFirst,Int_t evLast) const {
   // Create a file with simulation info for the reconstructed tracks
   
   TFile *outFile = TFile::Open("D0TracksRefFile.root","recreate");
   TFile *esdFile = TFile::Open("AliESDs.root");
 
                                           Int_t evFirst,Int_t evLast) const {
   // Create a file with simulation info for the reconstructed tracks
   
   TFile *outFile = TFile::Open("D0TracksRefFile.root","recreate");
   TFile *esdFile = TFile::Open("AliESDs.root");
 
-  AliMC *mc = gAlice->GetMCApp();
+  AliMC *mc = mygAlice->GetMCApp();
   
   Int_t      label;
   TParticle *part;  
   
   Int_t      label;
   TParticle *part;  
@@ -525,7 +525,7 @@ void AliD0toKpiAnalysis::MakeTracksRefFile(AliRun *gAlice,
     tree->GetEvent(iEvent);
     Int_t ev = (Int_t)event->GetEventNumberInFile(); // This is most likely NOT the event number you'd like to use. It has nothing to do with the 'real' event number.
 
     tree->GetEvent(iEvent);
     Int_t ev = (Int_t)event->GetEventNumberInFile(); // This is most likely NOT the event number you'd like to use. It has nothing to do with the 'real' event number.
 
-    gAlice->GetEvent(ev);
+    mygAlice->GetEvent(ev);
 
     Int_t nentr=(Int_t)event->GetNumberOfTracks();
 
 
     Int_t nentr=(Int_t)event->GetNumberOfTracks();
 
@@ -544,7 +544,7 @@ void AliD0toKpiAnalysis::MakeTracksRefFile(AliRun *gAlice,
       reftrk.pdg = part->GetPdgCode();
       reftrk.mumlab = part->GetFirstMother();
       if(part->GetFirstMother()>=0) {
       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();
       } else {
        reftrk.mumpdg = mumpart->GetPdgCode();
        reftrk.mumprongs = mumpart->GetNDaughters();
       } else {
index 23a3857f85cf4193334c26e7aee949d24612d3af..db97a3c17df87b20c3e63eb8b6936d887ca71c1f 100644 (file)
@@ -26,7 +26,7 @@ class AliD0toKpiAnalysis : public TNamed {
                      const Char_t *outName="AliD0toKpi_sele.root") const;
   void FindCandidates(Int_t evFirst=0,Int_t evLast=0,
                      const Char_t *outName="AliD0toKpi.root");
                      const Char_t *outName="AliD0toKpi_sele.root") const;
   void FindCandidates(Int_t evFirst=0,Int_t evLast=0,
                      const Char_t *outName="AliD0toKpi.root");
-  void MakeTracksRefFile(AliRun *gAlice,Int_t evFirst=0,Int_t evLast=0) const;
+  void MakeTracksRefFile(AliRun *mygAlice,Int_t evFirst=0,Int_t evLast=0) const;
   void PrintStatus() const;
   void SetVertexOnTheFly() { fVertexOnTheFly=kTRUE; }
   void SetSimulation() { fSim=kTRUE; }
   void PrintStatus() const;
   void SetVertexOnTheFly() { fVertexOnTheFly=kTRUE; }
   void SetSimulation() { fSim=kTRUE; }