]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/MakeEMCALZeroMisAlignment.C
BunchCrossing-based L1phase time offset correction added
[u/mrichter/AliRoot.git] / EMCAL / MakeEMCALZeroMisAlignment.C
index 64b7c9a1754568d270dd385223447a97f303035b..31a2464b03f2f9209d53dd20f15444b877ab29ef 100644 (file)
@@ -1,8 +1,9 @@
-void MakeEMCALZeroMisAlignment(){
+void MakeEMCALZeroMisAlignment(TString geoname = "EMCAL_COMPLETE"){
   // Create TClonesArray of zero misalignment objects for EMCAL
   //
   const char* macroname = "MakeEMCALZeroMisAlignment.C";
-  const AliEMCALGeometry *geom = AliEMCALGeometry::GetInstance(AliEMCALGeometry::GetDefaulGeometryName(),"");
+  if(geoname=="")geoname=AliEMCALGeometry::GetDefaultGeometryName();
+  const AliEMCALGeometry *geom = AliEMCALGeometry::GetInstance(geoname,"");
   if(!geom) {
     Error("MakeEMCALZeroMisAlignment","Cannot obtain AliEMCALGeometry singleton\n");
     return;