]> git.uio.no Git - u/mrichter/AliRoot.git/blame - test/QA/recraw.C
removed local EMCAL DB
[u/mrichter/AliRoot.git] / test / QA / recraw.C
CommitLineData
7f84ca30 1void recraw() {
2 const char * kYear = "08" ;
1749398f 3
9b93d3f6 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");
984cda5b 15 //man->SetDefaultStorage("alien://Folder=/alice/data/2008/LHC08d/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
9b93d3f6 52 reco.SetRunQA("ALL:ALL") ;
1749398f 53 //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
9b93d3f6 54 AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
930e6e3e 55 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
984cda5b 56 reco.SetQACycles(det, 9999) ;
57 reco.SetQAWriteExpert(det) ;
930e6e3e 58 }
1749398f 59
59932366 60 AliLog::Flush();
1749398f 61
7f84ca30 62 TStopwatch timer;
63 timer.Start();
1749398f 64 reco.Run();
7f84ca30 65 timer.Stop();
66 timer.Print();
67}
68