From 699243a3a2f817d056c4fcc3b7f3932b7a217449 Mon Sep 17 00:00:00 2001 From: kharlov Date: Tue, 7 Mar 2006 19:22:27 +0000 Subject: [PATCH] Remove CDB setting from the script. It is passed via env.variable --- PHOS/macros/AlignmentDB/AliPHOSDisalign.C | 32 +++++++---------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/PHOS/macros/AlignmentDB/AliPHOSDisalign.C b/PHOS/macros/AlignmentDB/AliPHOSDisalign.C index 3fc38ebc340..14bb62f11c9 100644 --- a/PHOS/macros/AlignmentDB/AliPHOSDisalign.C +++ b/PHOS/macros/AlignmentDB/AliPHOSDisalign.C @@ -1,32 +1,18 @@ /* $Id$ */ -// Run simulations with PHOS alignment parameters read from CDB -// located in the local file -// InitAlignDB/PHOS/Align/IdealGeometry2007/RunXXX.root +// Run simulations with PHOS alignment parameters read from CDB. +// CDB storage should be defined by environment variable CDB_PATH before +// the aliroot session, otherwise the default hard-coded geometry will be used +// The alignment object is located in the local file +// $CDB_PATH/PHOS/Alignment/Geometry/RunXXX.root // // Author: Yuri Kharlov -// 4 March 2006 +// 7 March 2006 -void AliPHOSDisalign(char *path="InitAlignDB", Int_t nevents=1) +void AliPHOSDisalign(Int_t nevents=1) { - - //Load alignment database into aliroot session - - TString localPath="local://"; - localPath += path; - AliPHOSAlignData* alignda = (AliPHOSAlignData*)(AliCDBManager::Instance() - ->GetStorage(localPath)->Get("PHOS/Alignment/Geometry",0) - ->GetObject()); - alignda->Print(); - - // Create PHOS geometry instance with alignment object read from CDB - - AliPHOSGeometry* geom = AliPHOSGeometry::GetInstance("IHEP","",alignda); - - // Run simulations - AliSimulation sim ; -// sim.SetMakeSDigits("PHOS") ; -// sim.SetMakeDigits("PHOS") ; + sim.SetMakeSDigits("PHOS") ; + sim.SetMakeDigits("PHOS") ; sim.Run(nevents) ; } -- 2.43.0