]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/MUONrecoNtupleRun.C
Code for MUON Station1 (I.Hrivnacova)
[u/mrichter/AliRoot.git] / MUON / MUONrecoNtupleRun.C
CommitLineData
8904b7e3 1// Macro for muon reconstruction
2//
3// This macro is a simplified way to call the macro MUONrecoNtuple.C which produces
4// an Ntuple with reconstructed tracks in output file "MUONtrackReco.root".
5////
6// Arguments:
7// FirstEvent (default 0)
8// LastEvent (default 0)
9// RecGeantHits (1 to reconstruct GEANT hits) (default 0)
10// FileName (for signal) (default "galice.root")
11// BkgGeantFileName (for background),
12// needed only if RecGeantHits = 1 and background to be added
13
14void MUONrecoNtupleRun (Int_t FirstEvent = 0, Int_t LastEvent = 0, Int_t RecGeantHits = 0, Text_t *FileName = "galice.root", Text_t *BkgGeantFileName = "")
15{
16
17 TStopwatch timer;
18 timer.Start();
19
20 gSystem->SetIncludePath("-I$ALICE_ROOT/MUON -I$ALICE_ROOT/STEER -I$ROOTSYS/include") ;
21 gROOT->ProcessLine(".x loadlibs.C");
22 // force macros compilation (++), load the resulting shared library and execute the macro MUONrecoNtuple.C
23 gROOT->ProcessLine(".x MUONrecoNtuple.C++(FirstEvent,LastEvent,RecGeantHits,FileName,BkgGeantFileName) ");
24
25 timer.Stop();
26 cout << "**** MUONrecoNtupleRun.C , timer" <<endl;
27 timer.Print();
28
29}
30
31
32
33
34