From 53dd3c3d1bb5391282e3c15f376f8a6b41919971 Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 28 Aug 2007 15:58:26 +0000 Subject: [PATCH] Loading alignment objects for the inactive modules/structures (Raffaele) --- STEER/AliReconstruction.cxx | 29 +++++++++++++++-------------- STEER/AliSimulation.cxx | 1 + 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index 7d81c54a22d..238492cd6bd 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -373,20 +373,20 @@ void AliReconstruction::SetSpecificStorage(const char* calibType, const char* ur } } - // check that calibType refers to a "valid" detector name - Bool_t isDetector = kFALSE; - for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) { - TString detName = fgkDetectorName[iDet]; - if(aPath.GetLevel0() == detName) { - isDetector = kTRUE; - break; - } - } - - if(!isDetector) { - AliError(Form("Not a valid detector: %s", aPath.GetLevel0().Data())); - return; - } +// // check that calibType refers to a "valid" detector name +// Bool_t isDetector = kFALSE; +// for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) { +// TString detName = fgkDetectorName[iDet]; +// if(aPath.GetLevel0() == detName) { +// isDetector = kTRUE; +// break; +// } +// } +// +// if(!isDetector) { +// AliError(Form("Not a valid detector: %s", aPath.GetLevel0().Data())); +// return; +// } TObject* obj = fSpecCDBUri.FindObject(aPath.GetPath().Data()); if (obj) fSpecCDBUri.Remove(obj); @@ -456,6 +456,7 @@ Bool_t AliReconstruction::MisalignGeometry(const TString& detectors) loadAlObjsListOfDets += fgkDetectorName[iDet]; loadAlObjsListOfDets += " "; } // end loop over detectors + loadAlObjsListOfDets.Prepend("GRP "); //add alignment objects for non-sensitive modules AliGeomManager::ApplyAlignObjsFromCDB(loadAlObjsListOfDets.Data()); }else{ // Check if the array with alignment objects was diff --git a/STEER/AliSimulation.cxx b/STEER/AliSimulation.cxx index a235651a49c..0bab59ee41b 100644 --- a/STEER/AliSimulation.cxx +++ b/STEER/AliSimulation.cxx @@ -403,6 +403,7 @@ Bool_t AliSimulation::MisalignGeometry(AliRunLoader *runLoader) loadAlObjsListOfDets += " "; } } // end loop over detectors + loadAlObjsListOfDets.Prepend("GRP "); //add alignment objects for non-sensitive modules AliGeomManager::ApplyAlignObjsFromCDB(loadAlObjsListOfDets.Data()); }else{ // Check if the array with alignment objects was -- 2.43.0