This commit was generated by cvs2svn to compensate for changes in r18056,
[u/mrichter/AliRoot.git] / test / gun / recraw / rec.C
1 void rec() {
2
3   AliCDBManager::Instance()->SetRun(0);
4
5   AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., AliMagFMaps::k5kG);
6   AliTracker::SetFieldMap(field,kTRUE);
7
8   AliReconstruction reco;
9
10   reco.SetUniformFieldTracking(kFALSE);
11   reco.SetWriteESDfriend();
12   reco.SetWriteAlignmentData();
13   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();
14   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
15   //  AliTPCReconstructor::SetStreamLevel(1);
16
17   reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON FMD PMD ZDC T0 VZERO");
18   reco.SetInput("raw.root");
19
20   reco.SetNumberOfEventsPerFile(-1); // all events in one single file
21
22   TStopwatch timer;
23   timer.Start();
24   reco.Run();
25   timer.Stop();
26   timer.Print();
27 }