e9810d557d1ea5e6f1ce7500b830b6734cda9ad7
[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           = 10,
18                                           Bool_t      domatch            = kTRUE,
19                                           Bool_t      biggerMatrix       = kFALSE,
20                                           const char *taskname           = "AliJetResponseMaker"
21                                           
22 )
23 {  
24   gROOT->LoadMacro("$ALICE_ROOT/PWGJE/EMCALJetTasks/macros/AddTaskJetResponseMaker.C");
25   
26   AliJetResponseMaker *jetTask = new AliJetResponseMaker[maxPtBin - minPtBin + 1];
27
28   for (Int_t i = minPtBin; i <= maxPtBin; i++) {
29     AddTaskJetResponseMaker(ntracks, nclusters, njets, nmcjets, nmctracks, 
30                             jetradius, jetptcut, jetareacut, ptcut, jetBiasTrack, 
31                             jetBiasClus, maxDistance, type, i, taskname, jetTask + i - minPtBin);
32     jetTask[i - minPtBin].SetDoMatching(domatch);
33     if (biggerMatrix) 
34       jetTask[i - minPtBin].SetHistoBins(1000,0,500);
35   }
36   
37   return jetTask;
38 }