]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/MakeEMCALZeroMisAlignment.C
bookkeep pt hard info when generating on-the-fly pythia events
[u/mrichter/AliRoot.git] / EMCAL / MakeEMCALZeroMisAlignment.C
index 64b7c9a1754568d270dd385223447a97f303035b..56468c94719c0de3a584fbd8c998820451a06ef9 100644 (file)
@@ -1,8 +1,9 @@
-void MakeEMCALZeroMisAlignment(){
+void MakeEMCALZeroMisAlignment(TString geoname = "EMCAL_COMPLETE12SMV1"){
   // 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;