Patch for jet analysis
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / macros / AddTaskJetRespPtHard.C
CommitLineData
4643d2e8 1// $Id$
2
3AliJetResponseMaker* 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,
53dca394 16 Int_t minPtBin = 1,
17 Int_t maxPtBin = 10,
18 Bool_t domatch = kTRUE,
19 Bool_t biggerMatrix = kFALSE,
4643d2e8 20 const char *taskname = "AliJetResponseMaker"
53dca394 21
4643d2e8 22)
23{
aa4d701c 24 gROOT->LoadMacro("$ALICE_ROOT/PWGJE/EMCALJetTasks/macros/AddTaskJetResponseMaker.C");
4643d2e8 25
53dca394 26 AliJetResponseMaker *jetTask = new AliJetResponseMaker[maxPtBin - minPtBin + 1];
4643d2e8 27
28 for (Int_t i = minPtBin; i <= maxPtBin; i++) {
53dca394 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);
4643d2e8 35 }
36
37 return jetTask;
38}