]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOF.cxx
Adding qinv hists to FemtoESE task
[u/mrichter/AliRoot.git] / TOF / AliTOF.cxx
index 8b8cf671bae418bb80f62650b3199ca9182ca995..14bffafbf27ef9ae709759aadc7984d8c088ee65 100644 (file)
 
 class AliTOFcluster;
 
-extern TROOT *gROOT;
-extern TVirtualMC *gMC;
+// extern TROOT *gROOT;
+// extern TVirtualMC *TVirtualMC::GetMC();
 
-extern AliRun *gAlice;
+// extern AliRun *gAlice;
 
 ClassImp(AliTOF)
 
@@ -419,7 +419,7 @@ void AliTOF::Init()
   // Initialise TOF detector after it has been built
   //
   // Set id of TOF sensitive volume
-  if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD");
+  if (IsVersion() !=0) fIdSens=TVirtualMC::GetMC()->VolId("FPAD");
 
   /*
   // Save the geometry
@@ -493,7 +493,7 @@ void AliTOF::Makehits(Bool_t hits)
 //              disabled for TOFv0
 // 
    if (hits &&  (IsVersion()!=0))
-      fIdSens = gMC->VolId("FPAD");
+      fIdSens = TVirtualMC::GetMC()->VolId("FPAD");
    else
       AliInfo("Option for writing the TOF-hits branch on TreeH: disabled");
 }