d5187ab7164fd69dd190e5f458e3556f068d26fd
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / macros / AddTaskJetRespPtHard.C
1 // $Id$
2
3 AliJetResponseMaker* AddTaskJetRespPtHard(const char *ntracks            = "Tracks",
4                                           const char *nclusters          = "CaloClusters",
5                                           const char *njets              = "Jets",
6                                           const char *nmcjets            = "MCJets",
7                                           const char *nmctracks          = "MCParticles",
8                                           Double_t    jetradius          = 0.4,
9                                           Double_t    jetptcut           = 1,
10                                           Double_t    jetareacut         = 0.8,
11                                           Double_t    ptcut              = 0.15,
12                                           Double_t    jetBiasTrack       = 10,
13                                           Double_t    jetBiasClus        = 10,
14                                           Double_t    maxDistance        = 0.25,
15                                           UInt_t      type               = AliAnalysisTaskEmcal::kTPC,
16                                           Int_t minPtBin                 = 1, 
17                                           Int_t maxPtBin                 = 11,
18                                           const char *taskname           = "AliJetResponseMaker"
19 )
20 {  
21   gROOT->LoadMacro("$ALICE_ROOT/PWGJE/EMCALJetTasks/macros/AddTaskJetResponseMaker.C");
22   
23   AliJetResponseMaker *jetTask = 0;
24
25   for (Int_t i = minPtBin; i <= maxPtBin; i++) {
26     jetTask = AddTaskJetResponseMaker(ntracks, nclusters, njets, nmcjets, nmctracks, 
27                                       jetradius, jetptcut, jetareacut, ptcut, jetBiasTrack, 
28                                       jetBiasClus, maxDistance, type, i, taskname);
29   }
30   
31   return jetTask;
32 }