reading geometry from OCDB
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Apr 2008 13:04:09 +0000 (13:04 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 28 Apr 2008 13:04:09 +0000 (13:04 +0000)
test/QA/rawqa.C
test/QA/simqa.C
test/QA/simrun.sh

index a0f1b3e21c01fe7d8711eeffac4b4e503237d49d..0cca31ed07d75d0ba458c0fbac5eff8423a67e87 100644 (file)
@@ -82,9 +82,10 @@ void rawqa(const Int_t runNumber, Int_t maxFiles = 10, const char* year = "08")
        UShort_t filesProcessed = 0 ; 
        UShort_t eventsProcessed = 0 ; 
        AliCDBManager* man = AliCDBManager::Instance();
-       AliGeomManager::LoadGeometry("geometry.root");
+       man->SetDefaultStorage(kDefaultOCDBStorage) ;  
+       man->SetRun(runNumber) ; 
+       AliGeomManager::LoadGeometry();
        for ( file = 0 ; file < maxFiles ; file++) {
-               man->SetDefaultStorage(kDefaultOCDBStorage) ;  
                if ( qas.GetCurrentEvent() >= maxEvents) 
                        break ;
 
index a7eb3d97224e9bd0ec01e5de4fa1065b8bec77c2..9b84a9ef5a0882fe780487c13c95998752a7d6de 100644 (file)
@@ -3,7 +3,6 @@ void simqa()
   const char * kYear = "08" ; 
   gEnv->SetValue("Root.Stacktrace","no");
   gEnv->SetValue("Root.Stacktrace","no");
-  AliGeomManager::LoadGeometry("geometry.root");       
   AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
   AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
   
index adc838aee2460301f918ad861755f5aa8ec73c1f..0cd8231cd39e70c042721111f1def02d97143be1 100755 (executable)
@@ -10,7 +10,7 @@ ln -si $ALICE_ROOT/test/QA/sim.C sim.C
 ln -si $ALICE_ROOT/test/QA/simqa.C simqa.C
 ln -si $ALICE_ROOT/test/QA/rec.C rec.C
 ln -si $ALICE_ROOT/test/QA/recqa.C recqa.C
-ln -si $ALICE_ROOT/test/QA/geometry.root geometry.root
+ln -si $ALICE_ROOT/test/QA/DB.tgz DB.tgz
 root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
 cd $WORK/QATest/data
 rm -f *.root