Update master to aliroot
[u/mrichter/AliRoot.git] / test / embedding / rec.C
CommitLineData
b8f4ca74 1void rec(Int_t embrun=0) {
2// new AliRun("gAlice","The ALICE Off-line Simulation Framework");
3 AliReconstruction reco;
4 reco.SetWriteESDfriend(kTRUE);
5 reco.SetWriteAlignmentData(kFALSE);
6// reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam());
7// reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());
8// reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());
9// reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());
10// reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());
11
12// AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
13// AliTPCReconstructor::SetRecoParam(tpcRecoParam);
14// AliTPCReconstructor::SetStreamLevel(0);
15 reco.SetRunReconstruction("ITS TPC TRD TOF VZERO");
16// reco.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");
17// reco.SetRunQA(kFALSE);
18// reco.SetRunGlobalQA(kFALSE);
19
20 reco.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
21 if (embrun == 1) {
22 reco.SetSpecificStorage("GRP/GRP/Data",
23 Form("local://%s/../BackgroundFull",gSystem->pwd()));
24 }
25 else {
26 reco.SetSpecificStorage("GRP/GRP/Data",
27 Form("local://%s",gSystem->pwd()));
28 }
29 reco.SetRunPlaneEff(kTRUE);
30 reco.SetRunQA("ALL:ALL") ;
31
32 AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;
33
34 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
35 reco.SetQACycles(det, 999) ;
36 reco.SetQAWriteExpert(det) ;
37 }
38
39 TStopwatch timer;
40 timer.Start();
41 reco.Run();
42 timer.Stop();
43 timer.Print();
44}