Replace Fatal by Info
[u/mrichter/AliRoot.git] / test / QA / rec.C
... / ...
CommitLineData
1void rec() {
2 const char * kYear = "08" ;
3 AliCDBManager * man = AliCDBManager::Instance();
4 //man->SetDefaultStorage("alien://Folder=/alice/simulation/2007/PDC07_v4-09-Rev-00/Ideal/CDB/");
5 man->SetDefaultStorage("local://$ALICE_ROOT");
6 man->SetSpecificStorage("EMCAL/*","local://DB");
7
8 AliReconstruction reco;
9
10 reco.SetWriteESDfriend();
11 reco.SetWriteAlignmentData();
12
13 AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
14 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
15 AliTPCReconstructor::SetStreamLevel(0);
16 reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON T0 VZERO FMD PMD ZDC");
17 //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
18 // recEmc->SetSubtractPedestals(kFALSE);
19 // AliPHOSReconstructor::SetRecoParamEmc(recEmc);
20 if (! reco.SetRunQA("ALL:ALL") ) {
21 printf("SetRunQA ERROR\n") ;
22 exit ;
23 }
24 reco.SetInLoopQA() ;
25
26 AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
27 AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
28
29// **** The field map settings must be the same as in Config.C !
30 AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
31 Bool_t uniform=kFALSE;
32 AliTracker::SetFieldMap(field,uniform);
33
34 TStopwatch timer;
35 timer.Start();
36 reco.Run();
37 timer.Stop();
38 timer.Print();
39}
40