removed illegal delete in dtor
[u/mrichter/AliRoot.git] / test / QA / rec.C
CommitLineData
478d5b53 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;
2ded75c3 9
478d5b53 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");
2ee23f97 17 //Reco.SetInput("raw.root") ;
478d5b53 18 //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
19 // recEmc->SetSubtractPedestals(kFALSE);
20 // AliPHOSReconstructor::SetRecoParamEmc(recEmc);
6b6f7c6b 21 if (! reco.SetRunQA("ALL:ALL") ) {
ce43afbe 22 printf("SetRunQA ERROR\n") ;
23 exit ;
24 }
25 reco.SetInLoopQA() ;
26
478d5b53 27 AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
28 AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
29
2ded75c3 30// **** The field map settings must be the same as in Config.C !
31 AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
32 Bool_t uniform=kFALSE;
33 AliTracker::SetFieldMap(field,uniform);
34
478d5b53 35 TStopwatch timer;
36 timer.Start();
a6675aa2 37 gSystem->Exec("mv -f galice.root galice0.root");
2ee23f97 38 reco.Run("raw.root");
a6675aa2 39 gSystem->Exec("mv -f galice0.root galice.root")
478d5b53 40 timer.Stop();
41 timer.Print();
42}
43