AliPhysics  75b74d3 (75b74d3)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RunMuonResolution.C
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Base macro for submitting muon Resolution analysis.
3 //
4 // It needs to load magnetic field, mapping, geometry (+alignment), and reconstruction parameters from the OCDB
5 // It is done by the task and OCDB storage locations can be parameterized in MuonResolution.C (default is raw://)
6 //
7 // The task reads ESDs
8 // Intermediate results are stored in a file chamberResolution_step<#step>.root
9 // Final results are stored in the file results.root
10 //
11 // Author: Philippe Pillot - SUBATECH Nantes
12 //--------------------------------------------------------------------------
13 
14 //______________________________________________________________________________
15 void RunMuonResolution(TString smode = "local", TString inputFileName = "AliESDs.root",
16  TString rootVersion = "v5-34-08", TString aliphysicsVersion = "vAN-20150215", Int_t nSteps = 5,
17  Bool_t selectPhysics = kTRUE, Bool_t selectTrigger = kTRUE, Bool_t matchTrig = kTRUE,
18  Bool_t applyAccCut = kTRUE, Bool_t applyPDCACut = kTRUE, Double_t minMomentum = 0., Double_t minPt = 0.,
19  Bool_t isMC = kFALSE, Bool_t correctForSystematics = kTRUE, Int_t extrapMode = 1,
20  Bool_t shiftHalfCh = kFALSE, Bool_t shiftDE = kFALSE, Int_t nevents = 1234567890)
21 {
38 
39  gROOT->ProcessLine(".include $ALICE_ROOT/include");
40  gROOT->ProcessLine(".include $ALICE_PHYSICS/include");
41 
42  // compile analysis macro locally
43  gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/MUON/dep/MuonResolution.C++g");
44  MuonResolution(smode, inputFileName, rootVersion, aliphysicsVersion, nSteps, selectPhysics, selectTrigger, matchTrig, applyAccCut,
45  applyPDCACut, minMomentum, minPt, isMC, correctForSystematics, extrapMode, shiftHalfCh, shiftDE, nevents);
46 
47 }
48 
void MuonResolution(TString smode, TString inputFileName, TString rootVersion, TString aliphysicsVersion, Int_t nSteps, Bool_t selectPhysics, Bool_t selectTrigger, Bool_t matchTrig, Bool_t applyAccCut, Bool_t applyPDCACut, Double_t minMomentum, Double_t minPt, Bool_t isMC, Bool_t correctForSystematics, Int_t extrapMode, Bool_t shiftHalfCh, Bool_t shiftDE, Int_t nevents)
Bool_t isMC
Int_t nevents[nsamples]
void RunMuonResolution(TString smode="local", TString inputFileName="AliESDs.root", TString rootVersion="v5-34-08", TString aliphysicsVersion="vAN-20150215", Int_t nSteps=5, Bool_t selectPhysics=kTRUE, Bool_t selectTrigger=kTRUE, Bool_t matchTrig=kTRUE, Bool_t applyAccCut=kTRUE, Bool_t applyPDCACut=kTRUE, Double_t minMomentum=0., Double_t minPt=0., Bool_t isMC=kFALSE, Bool_t correctForSystematics=kTRUE, Int_t extrapMode=1, Bool_t shiftHalfCh=kFALSE, Bool_t shiftDE=kFALSE, Int_t nevents=1234567890)