]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/QA/rec.C
Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / test / QA / rec.C
1 void 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   //reco.SetInput("raw.root") ;
18   //AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
19   //    recEmc->SetSubtractPedestals(kFALSE);
20   //    AliPHOSReconstructor::SetRecoParamEmc(recEmc);  
21   reco.SetRunQA(kTRUE) ; 
22   AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
23   AliQA::SetQARefDataDirName("Sim") ; //Data, Pedestals, BlackEvent, .....
24   
25 // **** The field map settings must be the same as in Config.C !
26   AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
27   Bool_t uniform=kFALSE;
28   AliTracker::SetFieldMap(field,uniform);
29
30   TStopwatch timer;
31   timer.Start();
32   reco.Run();
33   timer.Stop();
34   timer.Print();
35 }
36