X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FMakeEMCALResMisAlignment.C;h=5a3b3d276db0e5883026d3963498a9723d3f4454;hb=e7fbc7663f813f794c6f894112c72213d3cd3afe;hp=a1f2c76b750bfa1bba5d4fc729391471b92a3bad;hpb=289cc8a77f9cef5189ea5ad98ad9bbcef7df0bd7;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/MakeEMCALResMisAlignment.C b/EMCAL/MakeEMCALResMisAlignment.C index a1f2c76b750..5a3b3d276db 100644 --- a/EMCAL/MakeEMCALResMisAlignment.C +++ b/EMCAL/MakeEMCALResMisAlignment.C @@ -1,20 +1,21 @@ -void MakeEMCALResMisAlignment(){ +void MakeEMCALResMisAlignment(TString geoname = "EMCAL_COMPLETE"){ // Create TClonesArray of residual misalignment objects for EMCAL // const char* macroname = "MakeEMCALResMisAlignment.C"; - const AliEMCALGeometry *geom = AliEMCALGeometry::GetInstance(AliEMCALGeometry::GetDefaulGeometryName(),""); - if(!geom) { + if(geoname=="")geoname=AliEMCALGeometry::GetDefaultGeometryName(); + const AliEMCALGeometry *emcalGeom = AliEMCALGeometry::GetInstance(geoname,""); + if(!emcalGeom) { Error("MakeEMCALResMisAlignment","Cannot obtain AliEMCALGeometry singleton\n"); return; } - TClonesArray *array = new TClonesArray("AliAlignObjParams",geom->GetNumberOfSuperModules()); + TClonesArray *array = new TClonesArray("AliAlignObjParams",emcalGeom->GetNumberOfSuperModules()); TClonesArray &alobj = *array; // Activate CDB storage and load geometry from CDB AliCDBManager* cdb = AliCDBManager::Instance(); - if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT"); + if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); cdb->SetRun(0); AliCDBStorage* storage;