added low and high flux parameter options
[u/mrichter/AliRoot.git] / EMCAL / beamtest07 / Rec.C
CommitLineData
cedfe9ca 1void Rec(TString file="/scratch/alicehp2/commun/testbeam07/LHC07a_EMCAL/000000190/raw/07000000190001.10.root")
35eca021 2{
cedfe9ca 3
4 // Modified for aliroot v4-13
5 // Cynthia Hadjidakis, 30 May 2008
35eca021 6 // Reconstruction of RAW data from the input file raw.root
7 // Boris Polichtchouk, 31 Aug 2007
8
cedfe9ca 9
35eca021 10 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
cedfe9ca 11 AliCDBManager::Instance()->SetSpecificStorage("EMCAL/Calib/Data","local://$ALICE_ROOT/EMCAL/beamtest07/");
35eca021 12
13 //AliLog::SetGlobalDebugLevel(2);
cedfe9ca 14 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
15 AliTracker::SetFieldMap(field,kFALSE);
35eca021 16
17 AliReconstruction rec ;
18 rec.SetOption("EMCAL","OldRCUFormat");
cedfe9ca 19 rec.SetRunQA(kFALSE); // bug with QA
35eca021 20 rec.SetRunTracking("") ;
cedfe9ca 21 rec.SetRunVertexFinder(kFALSE) ;
35eca021 22 rec.SetRunLocalReconstruction("EMCAL") ;
23 rec.SetFillESD("EMCAL") ;
cedfe9ca 24
35eca021 25 rec.SetInput(file.Data()); // read RAW data
26
cedfe9ca 27 rec.SetEventRange(0,-1);
35eca021 28 rec.SetNumberOfEventsPerFile(-1);
35eca021 29 rec.Run();
30
cedfe9ca 31 delete rec;
32 gObjectTable->Print();
35eca021 33
34}
cedfe9ca 35
36