these f... RecoParam
[u/mrichter/AliRoot.git] / test / QA / recraw.C
CommitLineData
7f84ca30 1void recraw() {
2 const char * kYear = "08" ;
1749398f 3
4 AliLog::SetGlobalLogLevel(AliLog::kError);
5
a4289922 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");
1749398f 11
12 // Set the CDB storage location
13 AliCDBManager * man = AliCDBManager::Instance();
7f84ca30 14 man->SetDefaultStorage("local://$ALICE_ROOT");
1749398f 15 //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08b/OCDB/");
7f84ca30 16
1749398f 17 // Example in case a specific CDB storage is needed
a4289922 18 //man->SetSpecificStorage("EMCAL/*","local://DB");
7f84ca30 19
1749398f 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;
a4289922 30 reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
31 reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
32 reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
33 reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
1749398f 34 reco.SetUniformFieldTracking(uniform);
35 reco.SetWriteESDfriend(kTRUE);
36 reco.SetWriteAlignmentData();
37 reco.SetInput("raw.root");
38 reco.SetUseTrackingErrorsForAlignment("ITS");
39
a4289922 40 // In case some detectors have to be switched off.aliextr..
1749398f 41 reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS MUON FMD PMD T0 VZERO ZDC ACORDE");
a4289922 42 //reco.SetRunReconstruction("ITS TRD TOF HMPID PHOS MUON FMD PMD VZERO ZDC ACORDE");
1749398f 43
44 reco.SetRunVertexFinder(kTRUE);
45
46 // all events in one single file
47 reco.SetNumberOfEventsPerFile(-1);
7f84ca30 48
1749398f 49 // switch off cleanESD
50 reco.SetCleanESD(kFALSE);
51
a4289922 52 reco.SetInLoopQA() ;
1749398f 53 reco.SetRunQA("ALL:ALL") ;
54 //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
55 AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
56
57 AliLog::Flush();
58
7f84ca30 59 TStopwatch timer;
60 timer.Start();
1749398f 61 reco.Run();
7f84ca30 62 timer.Stop();
63 timer.Print();
64}
65