]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSreconstruction.cxx
New detector numbering scheme (common for DAQ/HLT/Offline). All the subdetectors...
[u/mrichter/AliRoot.git] / ITS / AliITSreconstruction.cxx
index 00cd8ce126d67bd982085e938080807cdd574b14..92d791a71995f9af8d22e1e02b632b68935250c7 100644 (file)
@@ -153,10 +153,9 @@ Bool_t AliITSreconstruction::Init(){
     // Now ready to init.
  
     fRunLoader->CdGAFile();
-    fITSgeom = (AliITSgeom*)gDirectory->Get("AliITSgeom");
+    fITSgeom = fLoader->GetITSgeom();
 
-    fDetTypeRec = new AliITSDetTypeRec();
-    fDetTypeRec->SetITSgeom(fITSgeom);
+    fDetTypeRec = new AliITSDetTypeRec(fLoader);
     fDetTypeRec->SetDefaults();
     fDet[0] = fDet[1] = fDet[2] = kTRUE;
     fEnt0 = 0;
@@ -170,7 +169,6 @@ Bool_t AliITSreconstruction::Init(){
     if (fLoader->TreeR() == 0x0) fLoader->MakeTree("R");
     if (fLoader->TreeC() == 0x0) fLoader->MakeTree("C");
  
-    fDetTypeRec->SetLoader(fLoader);
     fDetTypeRec->MakeBranchR(0);
     fDetTypeRec->MakeBranchC();
     fDetTypeRec->SetTreeAddress();
@@ -272,8 +270,6 @@ void AliITSreconstruction::Exec(const Option_t *opt){
       Info("Exec","");
 
       fRunLoader->GetEvent(evnt);
-      fDetTypeRec->SetITSgeom(fITSgeom);
-      fDetTypeRec->SetLoader(fLoader);
       if (fLoader->TreeR() == 0x0) fLoader->MakeTree("R");
       fDetTypeRec->MakeBranchR(0);
       if (fLoader->TreeC() == 0x0){