]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/QA/rec.C
- first version of PWGTRD lib
[u/mrichter/AliRoot.git] / test / QA / rec.C
index b1635d10876f06a03d4a144e45b21be3e9119488..b464b04ee3ec859c01a5f120576891f52ef60155 100644 (file)
@@ -1,39 +1,28 @@
  void rec() {
-  const char * kYear = "08" ; 
-  AliCDBManager * man = AliCDBManager::Instance();
-  //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08c/OCDB/");
-  man->SetDefaultStorage("local://$ALICE_ROOT");
-  man->SetSpecificStorage("EMCAL/*","local://DB");
   
   AliReconstruction reco;
 
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
+  reco.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  reco.SetSpecificStorage("GRP/GRP/Data",
+                         Form("local://%s",gSystem->pwd()));
+  reco.SetRunPlaneEff(kTRUE);
+
+  AliTPCReconstructor::SetStreamLevel(1);
 
-  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::SetQARefStorage("local://$ALICE_ROOT") ;
+  reco.SetQARefDefaultStorage("local://$ALICE_ROOT/OCDB") ;
   
   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
-    reco.SetQACycles(det, 2) ;
+    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);
-  Bool_t uniform=kFALSE;
-  AliTracker::SetFieldMap(field,uniform);
-
   TStopwatch timer;
   timer.Start();
-  reco.Run();
+  reco.Run("raw.root");
   timer.Stop();
   timer.Print();
 }