]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/QA/rec.C
changing run periof
[u/mrichter/AliRoot.git] / test / QA / rec.C
index 5b288177624417657baed693edb9409c67c45422..c56b405e2c24ac9f2bddadce638a570ed27cd3e7 100644 (file)
@@ -1,7 +1,7 @@
-void rec() {
+ void rec() {
   const char * kYear = "08" ; 
   AliCDBManager * man = AliCDBManager::Instance();
-  //man->SetDefaultStorage("alien://Folder=/alice/simulation/2007/PDC07_v4-09-Rev-00/Ideal/CDB/");
+  //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08d/OCDB/");
   man->SetDefaultStorage("local://$ALICE_ROOT");
   man->SetSpecificStorage("EMCAL/*","local://DB");
   
@@ -9,22 +9,23 @@ void rec() {
 
   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");
-  //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
-  //   recEmc->SetSubtractPedestals(kFALSE);
-  //   AliPHOSReconstructor::SetRecoParamEmc(recEmc);  
-       if (! reco.SetRunQA("ALL:ALL") ) {
-               printf("SetRunQA ERROR\n") ; 
-               exit ; 
-       }
-       reco.SetInLoopQA() ; 
+
+  reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
+  reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
+  reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
+  reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
+       
+       AliTPCReconstructor::SetStreamLevel(1);
+  reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON T0 VZERO FMD PMD ZDC ACORDE");
+  reco.SetRunQA("ALL:ALL") ;
          
-  AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
-  AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
+       // AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
+  AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
+  
+  for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
+    reco.SetQACycles(det, 999) ;
+    reco.SetQAWriteExpert(det) ; 
+  }
   
 // **** The field map settings must be the same as in Config.C !
   AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
@@ -33,9 +34,7 @@ void rec() {
 
   TStopwatch timer;
   timer.Start();
-  gSystem->Exec("mv -f galice.root galice0.root");
   reco.Run();
-  gSystem->Exec("mv -f galice0.root galice.root")
   timer.Stop();
   timer.Print();
 }