Add consistent geometry for simulation
authorprsnko <Dmitri.Peressounko@cern.ch>
Sat, 23 Aug 2014 06:51:22 +0000 (10:51 +0400)
committerprsnko <Dmitri.Peressounko@cern.ch>
Sat, 23 Aug 2014 06:55:25 +0000 (10:55 +0400)
ANALYSIS/TenderSupplies/AliPHOSTenderSupply.cxx
OADB/PHOS/PHOSMCGeometry.root [new file with mode: 0644]

index e176a95..f0c9099 100644 (file)
@@ -159,7 +159,10 @@ void AliPHOSTenderSupply::InitTender()
   //Init geometry 
   if(!fPHOSGeo){
     AliOADBContainer geomContainer("phosGeo");
-    geomContainer.InitFromFile("$ALICE_ROOT/OADB/PHOS/PHOSGeometry.root","PHOSRotationMatrixes");
+    if(fIsMC) //use excatly the same geometry as in simulation
+      geomContainer.InitFromFile("$ALICE_ROOT/OADB/PHOS/PHOSMCGeometry.root","PHOSMCRotationMatrixes");
+    else //Use best approaximation to real geometry
+      geomContainer.InitFromFile("$ALICE_ROOT/OADB/PHOS/PHOSGeometry.root","PHOSRotationMatrixes");
     TObjArray *matrixes = (TObjArray*)geomContainer.GetObject(runNumber,"PHOSRotationMatrixes");
     fPHOSGeo =  AliPHOSGeometry::GetInstance("IHEP") ;
     for(Int_t mod=0; mod<5; mod++) {
@@ -167,7 +170,7 @@ void AliPHOSTenderSupply::InitTender()
       fPHOSGeo->SetMisalMatrix(((TGeoHMatrix*)matrixes->At(mod)),mod) ;
       printf(".........Adding Matrix(%d), geo=%p\n",mod,fPHOSGeo) ;
       ((TGeoHMatrix*)matrixes->At(mod))->Print() ;
-    }
+    } 
   }
   
   //Init Bad channels map
diff --git a/OADB/PHOS/PHOSMCGeometry.root b/OADB/PHOS/PHOSMCGeometry.root
new file mode 100644 (file)
index 0000000..c619b49
Binary files /dev/null and b/OADB/PHOS/PHOSMCGeometry.root differ