set proper OCD location
[u/mrichter/AliRoot.git] / test / QA / recraw.C
CommitLineData
7f84ca30 1void recraw() {
2 const char * kYear = "08" ;
1749398f 3
59932366 4 AliLog::SetGlobalLogLevel(AliLog::kError);
1749398f 5
a4289922 6// gSystem->Load("libRAliEn.so");
7// gSystem->Load("libNet.so");
59932366 8// gSystem->Load("libMonaLisa.so");
a4289922 9// new TMonaLisaWriter(0, "GridAliRoot-rec.C", 0, 0, "global");
59932366 10// gSystem->Setenv("APMON_INTERVAL", "120");
1749398f 11
12 // Set the CDB storage location
59932366 13 AliCDBManager * man = AliCDBManager::Instance();
7f84ca30 14 man->SetDefaultStorage("local://$ALICE_ROOT");
59932366 15 //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08c/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);
59932366 25 Double_t mostProbPt=0.35;
1749398f 26 AliExternalTrackParam::SetMostProbablePt(mostProbPt);
27
28 // AliReconstruction settings
59932366 29 AliReconstruction reco;
30 reco.SetRecoParam("TPC",AliTPCRecoParam::GetLowFluxParam());
a4289922 31 reco.SetRecoParam("TRD",AliTRDrecoParam::GetLowFluxParam());
32 reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
33 reco.SetRecoParam("MUON",AliMUONRecoParam::GetLowFluxParam());
59932366 34 reco.SetUniformFieldTracking(uniform);
35 reco.SetWriteESDfriend(kTRUE);
1749398f 36 reco.SetWriteAlignmentData();
59932366 37 reco.SetInput("raw.root");
38 reco.SetUseTrackingErrorsForAlignment("ITS");
1749398f 39
a4289922 40 // In case some detectors have to be switched off.aliextr..
59932366 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
59932366 44 reco.SetRunVertexFinder(kTRUE);
1749398f 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
59932366 57 AliLog::Flush();
1749398f 58
7f84ca30 59 TStopwatch timer;
60 timer.Start();
1749398f 61 reco.Run();
7f84ca30 62 timer.Stop();
63 timer.Print();
64}
65