Changes by Salvatore
[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 *nmctracks          = "MCParticles",
7                                           const char *nmcjets            = "MCJets",
8                                           Double_t    jetradius          = 0.2,
9                                           Double_t    jetptcut           = 1,
10                                           Double_t    jetareacut         = 0.557,
11                                           Double_t    jetBiasTrack       = 5,
12                                           Double_t    jetBiasClus        = 5,
13                                           Double_t    maxDistance        = 0.25,
14                                           UInt_t      type               = AliAnalysisTaskEmcal::kTPC,
15                                           Int_t       minPtBin           = 1, 
16                                           Int_t       maxPtBin           = 10,
17                                           Bool_t      domatch            = kTRUE,
18                                           Bool_t      biggerMatrix       = kFALSE,
19                                           const char *taskname           = "AliJetResponseMaker"
20                                           
21 )
22 {  
23   gROOT->LoadMacro("$ALICE_ROOT/PWGJE/EMCALJetTasks/macros/AddTaskJetResponseMaker.C");
24   
25   AliJetResponseMaker *jetTask = new AliJetResponseMaker[maxPtBin - minPtBin + 1];
26
27   for (Int_t i = minPtBin; i <= maxPtBin; i++) {
28     AddTaskJetResponseMaker(ntracks, nclusters, njets, nmctracks, nmcjets,
29                             jetradius, jetptcut, jetareacut, jetBiasTrack, 
30                             jetBiasClus, maxDistance, type, i, taskname, jetTask + i - minPtBin);
31     jetTask[i - minPtBin].SetDoMatching(domatch);
32     if (biggerMatrix) 
33       jetTask[i - minPtBin].SetHistoBins(1000,0,500);
34   }
35   
36   return jetTask;
37 }