]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/QA/recraw.C
961bfee4f50b074f631e3da2a503f2808f8ee7fd
[u/mrichter/AliRoot.git] / test / QA / recraw.C
1 void recraw() {
2   const char * kYear = "08" ; 
3  
4   AliLog::SetGlobalLogLevel(AliLog::kError);
5         
6 //      gSystem->Load("libRAliEn.so");
7 //  gSystem->Load("libNet.so");
8 // gSystem->Load("libMonaLisa.so");
9 //  new TMonaLisaWriter(0, "GridAliRoot-rec.C", 0, 0, "global");
10 // gSystem->Setenv("APMON_INTERVAL", "120");
11         
12         // Set the CDB storage location
13   AliCDBManager * man = AliCDBManager::Instance();
14   man->SetDefaultStorage("local://$ALICE_ROOT");
15   //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08d/OCDB/");
16
17         // Example in case a specific CDB storage is needed
18         //man->SetSpecificStorage("EMCAL/*","local://DB");
19   
20         // Tracking settings
21         // **** The field map settings must be the same as in Config.C !
22   AliMagFMaps *field=new AliMagFMaps("Maps", "Maps", 2, 1., 10., AliMagFMaps::k5kG);
23   Bool_t uniform = kFALSE;
24   AliTracker::SetFieldMap(field, uniform);
25   Double_t mostProbPt=0.35;
26   AliExternalTrackParam::SetMostProbablePt(mostProbPt);
27         
28         // AliReconstruction settings
29   AliReconstruction reco;
30   reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
31   reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
32   reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
33   reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
34   reco.SetUniformFieldTracking(uniform);
35   reco.SetWriteESDfriend(kTRUE);
36   reco.SetWriteAlignmentData();
37   reco.SetInput("raw.root");
38   reco.SetUseTrackingErrorsForAlignment("ITS");
39         
40         // In case some detectors have to be switched off.aliextr..
41   reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS MUON FMD PMD T0 VZERO ZDC ACORDE");
42         //reco.SetRunReconstruction("ITS TRD TOF HMPID PHOS MUON FMD PMD VZERO ZDC ACORDE");
43
44   reco.SetRunVertexFinder(kTRUE);
45         
46         // all events in one single file
47   reco.SetNumberOfEventsPerFile(-1);
48
49         // switch off cleanESD
50   reco.SetCleanESD(kFALSE);
51         
52         reco.SetRunQA("ALL:ALL") ;
53         //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
54   AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
55   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
56     reco.SetQACycles(det, 9999) ;
57     reco.SetQAWriteExpert(det) ; 
58   }
59   
60   AliLog::Flush();
61         
62   TStopwatch timer;
63   timer.Start();
64   reco.Run();
65   timer.Stop();
66   timer.Print();
67 }
68