changed macros to run rec from raw separately
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 17:15:43 +0000 (17:15 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 17:15:43 +0000 (17:15 +0000)
test/QA/recraw.C [new file with mode: 0644]
test/QA/simrun.sh

diff --git a/test/QA/recraw.C b/test/QA/recraw.C
new file mode 100644 (file)
index 0000000..01c262d
--- /dev/null
@@ -0,0 +1,41 @@
+void recraw() {
+  const char * kYear = "08" ; 
+  AliCDBManager * man = AliCDBManager::Instance();
+  //man->SetDefaultStorage("alien://Folder=/alice/simulation/2007/PDC07_v4-09-Rev-00/Ideal/CDB/");
+  man->SetDefaultStorage("local://$ALICE_ROOT");
+  man->SetSpecificStorage("EMCAL/*","local://DB");
+  
+  AliReconstruction reco;
+
+  reco.SetWriteESDfriend();
+  reco.SetWriteAlignmentData();
+  
+  AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
+  AliTPCReconstructor::SetRecoParam(tpcRecoParam);
+  AliTPCReconstructor::SetStreamLevel(0);
+  reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON T0 VZERO FMD PMD ZDC");
+  //Reco.SetInput("raw.root") ;
+  //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
+  //   recEmc->SetSubtractPedestals(kFALSE);
+  //   AliPHOSReconstructor::SetRecoParamEmc(recEmc);  
+       if (! reco.SetRunQA("ALL:ALL") ) {
+               printf("SetRunQA ERROR\n") ; 
+               exit ; 
+       }
+       reco.SetInLoopQA() ; 
+         
+  AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
+  AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
+  
+// **** The field map settings must be the same as in Config.C !
+  AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
+  Bool_t uniform=kFALSE;
+  AliTracker::SetFieldMap(field,uniform);
+
+  TStopwatch timer;
+  timer.Start();
+  reco.Run("raw.root");
+  timer.Stop();
+  timer.Print();
+}
+
index 7ee770c..f15183c 100755 (executable)
@@ -15,6 +15,10 @@ root -b -q $ALICE_ROOT/test/QA/simrun.C --run $1
 cd $WORK/QATest/data
 rm -f *.root
 rm -f DB.tgz
+ln -s ../geometry.root
+ln -s ../raw.root
+ln -si $ALICE_ROOT/test/QA/recraw.C recraw.C
+aliroot -b -q recraw.C  >recraw.log 2>&
 cp  $ALICE_ROOT/test/QA/rawqa.C .
 alienaliroot -b > rawqa.log 2>&1 << EOF
 .x  $ALICE_ROOT/test/QA/rootlogon.C