AliPhysics  608b256 (608b256)
AliAnalysisTaskEmcalJetEnergySpectrum.cxx
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  ************************************************************************************/
27 #include <algorithm>
28 #include <array>
29 #include <sstream>
30 #include <string>
31 #include <vector>
32 
33 #include <THistManager.h>
34 #include <TLinearBinning.h>
35 #include <TVariableBinning.h>
36 
37 #include "AliAODInputHandler.h"
38 #include "AliAnalysisManager.h"
42 #include "AliEmcalJet.h"
45 #include "AliEventCuts.h"
46 #include "AliInputEventHandler.h"
47 #include "AliJetContainer.h"
48 #include "AliLog.h"
49 #include "AliMultSelection.h"
50 #include "AliVEvent.h"
51 
53 
54 using namespace EmcalTriggerJets;
55 
58  fHistos(nullptr),
59  fEventCuts(nullptr),
60  fIsMC(false),
61  fTriggerSelectionBits(AliVEvent::kAny),
62  fTriggerSelectionString(""),
63  fRequireSubsetMB(false),
64  fMinBiasTrigger(AliVEvent::kAny),
65  fNameTriggerDecisionContainer("EmcalTriggerDecision"),
66  fUseTriggerSelectionForData(false),
67  fUseDownscaleWeight(false),
68  fNameJetContainer("datajets"),
69  fRequestTriggerClusters(true),
70  fRequestCentrality(false),
71  fUseAliEventCuts(false),
72  fCentralityEstimator("V0M")
73 {
74  SetUseAliAnaUtils(true);
75 }
76 
78  AliAnalysisTaskEmcalJet(name, true),
81  fIsMC(false),
82  fTriggerSelectionBits(AliVEvent::kAny),
84  fRequireSubsetMB(false),
85  fMinBiasTrigger(AliVEvent::kAny),
86  fNameTriggerDecisionContainer("EmcalTriggerDecision"),
88  fUseDownscaleWeight(false),
89  fNameJetContainer("datajets"),
91  fRequestCentrality(false),
92  fUseAliEventCuts(false),
94 {
95  SetUseAliAnaUtils(true);
96 }
97 
99  if(fHistos) delete fHistos;
100 }
101 
104 
105  if(!fUserPtBinning.GetSize()) {
106  // binning not set. apply default binning
107  AliInfoStream() << "Using default pt binning";
108  fUserPtBinning.Set(301);
109  double current(0.);
110  for(int istep = 0; istep < 301; istep++) {
111  fUserPtBinning[istep] = current;
112  current += 1;
113  }
114  }
115 
116  TLinearBinning centralitybinning(100, 0., 100.), etabinning(100, -1., 1.), phibinning(100., 0., 7.), nefbinning(100, 0., 1.), trgclusterbinning(kTrgClusterN + 1, -0.5, kTrgClusterN -0.5);
117  TVariableBinning jetptbinning(fUserPtBinning);
118  const TBinning *binnings[6] = {&centralitybinning, &jetptbinning, &etabinning, &phibinning, &nefbinning, &trgclusterbinning};
119  fHistos = new THistManager(Form("Histos_%s", GetName()));
120  fHistos->CreateTH1("hEventCounter", "Event counter histogram", 1, 0.5, 1.5);
121  fHistos->CreateTH1("hEventCounterAbs", "Event counter histogram absolute", 1, 0.5, 1.5);
122  fHistos->CreateTH1("hEventCentrality", "Event centrality", 100., 0., 100.);
123  fHistos->CreateTH1("hEventCentralityAbs", "Event centrality absolute", 100., 0., 100.);
124  fHistos->CreateTH1("hClusterCounter", "Event counter histogram", kTrgClusterN, -0.5, kTrgClusterN - 0.5);
125  fHistos->CreateTH1("hClusterCounterAbs", "Event counter histogram absolute", kTrgClusterN, -0.5, kTrgClusterN - 0.5);
126  fHistos->CreateTHnSparse("hJetTHnSparse", "jet thnsparse", 6, binnings, "s");
127  fHistos->CreateTHnSparse("hMaxJetTHnSparse", "jet thnsparse", 6, binnings, "s");
128 
129  for(auto h : *fHistos->GetListOfHistograms()) fOutput->Add(h);
130 
131  if(fUseAliEventCuts) {
132  fEventCuts = new AliEventCuts(true);
133  // Do not perform trigger selection in the AliEvent cuts but let the task do this before
134  fEventCuts->OverrideAutomaticTriggerSelection(AliVEvent::kAny, true);
135  fOutput->Add(fEventCuts);
136  }
137  PostData(1, fOutput);
138 }
139 
141  if(fEventCuts) {
142  if(!IsTriggerSelected()) return false;
143  if(!fEventCuts->AcceptEvent(fInputEvent)) return false;
144  return true;
145  }
147 }
148 
150  if(!fMCRejectFilter) return true;
151  if(!(fIsPythia || fIsHerwig)) return true; // Only relevant for pt-hard production
152  AliDebugStream(1) << "Using custom MC outlier rejection" << std::endl;
153  auto partjets = GetJetContainer("partjets");
154  if(!partjets) return true;
155 
156  // Check whether there is at least one particle level jet with pt above n * event pt-hard
157  auto jetiter = partjets->accepted();
158  auto max = std::max_element(jetiter.begin(), jetiter.end(), [](const AliEmcalJet *lhs, const AliEmcalJet *rhs ) { return lhs->Pt() < rhs->Pt(); });
159  if(max != jetiter.end()) {
160  // At least one jet found with pt > n * pt-hard
161  AliDebugStream(1) << "Found max jet with pt " << (*max)->Pt() << " GeV/c" << std::endl;
162  if((*max)->Pt() > fPtHardAndJetPtFactor * fPtHard) return false;
163  }
164  return true;
165 }
166 
168  auto datajets = this->GetJetContainer(fNameJetContainer);
169  if(!datajets) {
170  AliErrorStream() << "Jet container " << fNameJetContainer << " not found" << std::endl;
171  return false;
172  }
173 
174  double eventCentrality = 99; // without centrality put everything in the peripheral bin
175  if(fRequestCentrality){
176  AliMultSelection *mult = dynamic_cast<AliMultSelection *>(InputEvent()->FindListObject("MultSelection"));
177  if(!mult){
178  AliErrorStream() << GetName() << ": Centrality selection enabled but no centrality estimator found" << std::endl;
179  return false;
180  }
181  if(mult->IsEventSelected()) return false;
182  eventCentrality = mult->GetEstimator(fCentralityEstimator)->GetPercentile();
183  AliDebugStream(1) << GetName() << ": Centrality " << eventCentrality << std::endl;
184  } else {
185  AliDebugStream(1) << GetName() << ": No centrality selection applied" << std::endl;
186  }
187 
188  auto trgclusters = GetTriggerClusterIndices(fInputEvent->GetFiredTriggerClasses());
189  Double_t weight = 1.;
190  if(fUseDownscaleWeight) {
191  weight = 1./PWG::EMCAL::AliEmcalDownscaleFactorsOCDB::Instance()->GetDownscaleFactorForTriggerClass(MatchTrigger(fInputEvent->GetFiredTriggerClasses().Data()));
192  }
193  fHistos->FillTH1("hEventCounterAbs", 1.);
194  fHistos->FillTH1("hEventCounter", weight);
195  fHistos->FillTH1("hEventCentralityAbs", eventCentrality);
196  fHistos->FillTH1("hEventCentrality", eventCentrality, weight);
197  AliEmcalJet *maxjet(nullptr);
198  for(auto t : trgclusters) {
199  fHistos->FillTH1("hClusterCounterAbs", t);
200  fHistos->FillTH1("hClusterCounter", t, weight);
201  }
202  for(auto j : datajets->accepted()){
203  if(!maxjet || (j->E() > maxjet->E())) maxjet = j;
204  double datapoint[6] = {eventCentrality, j->Pt(), j->Eta(), j->Phi(), j->NEF(), 0.};
205  for(auto t : trgclusters){
206  datapoint[5] = static_cast<double>(t);
207  fHistos->FillTHnSparse("hJetTHnSparse", datapoint, weight);
208  }
209  }
210 
211  double maxdata[6];
212  memset(maxdata, 0., sizeof(double) * 5);
213  maxdata[0] = eventCentrality;
214  if(maxjet){
215  maxdata[1] = maxjet->Pt();
216  maxdata[2] = maxjet->Eta();
217  maxdata[3] = maxjet->Phi();
218  maxdata[4] = maxjet->NEF();
219  }
220  for(auto t : trgclusters){
221  maxdata[5] = static_cast<double>(t);
222  fHistos->FillTHnSparse("hMaxJetTHnSparse", maxdata, weight);
223  }
224  return true;
225 }
226 
228  if(fUseDownscaleWeight) {
229  auto downscalehandler = PWG::EMCAL::AliEmcalDownscaleFactorsOCDB::Instance();
230  if(downscalehandler->GetCurrentRun() != newrun){
231  downscalehandler->SetRun(newrun);
232  }
233  }
234 }
235 
236 std::vector<AliAnalysisTaskEmcalJetEnergySpectrum::TriggerCluster_t> AliAnalysisTaskEmcalJetEnergySpectrum::GetTriggerClusterIndices(const TString &triggerstring) const {
237  // decode trigger string in order to determine the trigger clusters
238  std::vector<TriggerCluster_t> result;
239  result.emplace_back(kTrgClusterANY); // cluster ANY always included
241  // Data - separate trigger clusters
242  std::vector<std::string> clusternames;
243  auto triggerinfos = PWG::EMCAL::Triggerinfo::DecodeTriggerString(triggerstring.Data());
244  for(auto t : triggerinfos) {
245  if(std::find(clusternames.begin(), clusternames.end(), t.Triggercluster()) == clusternames.end()) clusternames.emplace_back(t.Triggercluster());
246  }
247  bool isCENT = (std::find(clusternames.begin(), clusternames.end(), "CENT") != clusternames.end()),
248  isCENTNOTRD = (std::find(clusternames.begin(), clusternames.end(), "CENTNOTRD") != clusternames.end()),
249  isCALO = (std::find(clusternames.begin(), clusternames.end(), "CALO") != clusternames.end()),
250  isCALOFAST = (std::find(clusternames.begin(), clusternames.end(), "CALOFAST") != clusternames.end());
251  if(isCENT || isCENTNOTRD) {
252  if(isCENT) {
253  result.emplace_back(kTrgClusterCENT);
254  if(isCENTNOTRD) {
255  result.emplace_back(kTrgClusterCENTNOTRD);
256  result.emplace_back(kTrgClusterCENTBOTH);
257  } else result.emplace_back(kTrgClusterOnlyCENT);
258  } else {
259  result.emplace_back(kTrgClusterCENTNOTRD);
260  result.emplace_back(kTrgClusterOnlyCENTNOTRD);
261  }
262  }
263  if(isCALO || isCALOFAST) {
264  if(isCALO) {
265  result.emplace_back(kTrgClusterCALO);
266  if(isCALOFAST) {
267  result.emplace_back(kTrgClusterCALOFAST);
268  result.emplace_back(kTrgClusterCALOBOTH);
269  } else result.emplace_back(kTrgClusterOnlyCALO);
270  } else {
271  result.emplace_back(kTrgClusterCALOFAST);
272  result.emplace_back(kTrgClusterOnlyCALOFAST);
273  }
274  }
275  }
276  return result;
277 }
278 
280  if(!fIsMC){
281  // Pure data - do EMCAL trigger selection from selection string
282  if(!(fInputHandler->IsEventSelected() & fTriggerSelectionBits)) return false;
283  if(fTriggerSelectionString.Length()) {
284  if(!fInputEvent->GetFiredTriggerClasses().Contains(fTriggerSelectionString)) return false;
285  if(fRequireSubsetMB && !(fInputHandler->IsEventSelected() & fMinBiasTrigger)) return false; // Require EMCAL trigger to be subset of the min. bias trigger (for efficiency studies)
286  if((fTriggerSelectionString.Contains("EJ") || fTriggerSelectionString.Contains("EG") || fTriggerSelectionString.Contains("DJ") || fTriggerSelectionString.Contains("DG")) && fUseTriggerSelectionForData) {
287  auto trgselresult = static_cast<PWG::EMCAL::AliEmcalTriggerDecisionContainer *>(fInputEvent->FindListObject(fNameTriggerDecisionContainer));
288  AliDebugStream(1) << "Found trigger decision object: " << (trgselresult ? "yes" : "no") << std::endl;
289  if(!trgselresult){
290  AliErrorStream() << "Trigger decision container with name " << fNameTriggerDecisionContainer << " not found in event - not possible to select EMCAL triggers" << std::endl;
291  return false;
292  }
293  if(!trgselresult->IsEventSelected(fTriggerSelectionString)) return false;
294  }
295  }
296  } else {
297  if(!(fInputHandler->IsEventSelected() & AliVEvent::kINT7)) return false;
299  // Simulation - do EMCAL trigger selection from trigger selection object
300  auto mctrigger = static_cast<PWG::EMCAL::AliEmcalTriggerDecisionContainer *>(fInputEvent->FindListObject(fNameTriggerDecisionContainer));
301  AliDebugStream(1) << "Found trigger decision object: " << (mctrigger ? "yes" : "no") << std::endl;
302  if(!mctrigger){
303  AliErrorStream() << "Trigger decision container with name " << fNameTriggerDecisionContainer << " not found in event - not possible to select EMCAL triggers" << std::endl;
304  return false;
305  }
306  if(!mctrigger->IsEventSelected(fTriggerSelectionString)) return false;
307  }
308  }
309  return true;
310 }
311 
312 std::string AliAnalysisTaskEmcalJetEnergySpectrum::MatchTrigger(const std::string &triggerstring){
313  auto triggerclasses = PWG::EMCAL::Triggerinfo::DecodeTriggerString(triggerstring);
314  std::string result;
315  for(const auto &t : triggerclasses) {
316  // Use CENT cluster for downscaling
317  if(t.Triggercluster() != "CENT") continue;
318  if(t.Triggerclass().find(fTriggerSelectionString.Data()) == std::string::npos) continue;
319  result = t.ExpandClassName();
320  break;
321  }
322  return result;
323 }
324 
325 bool AliAnalysisTaskEmcalJetEnergySpectrum::IsSelectEmcalTriggers(const std::string &triggerstring) const {
326  const std::array<std::string, 8> kEMCALTriggers = {
327  "EJ1", "EJ2", "DJ1", "DJ2", "EG1", "EG2", "DG1", "DG2"
328  };
329  bool isEMCAL = false;
330  for(auto emcaltrg : kEMCALTriggers) {
331  if(triggerstring.find(emcaltrg) != std::string::npos) {
332  isEMCAL = true;
333  break;
334  }
335  }
336  return isEMCAL;
337 }
338 
339 
341  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
342  if(!mgr) {
343  std::cerr << "Analysis manager not initialized" << std::endl;
344  return nullptr;
345  }
346 
347  Bool_t isAOD(kFALSE);
348  AliInputEventHandler *inputhandler = static_cast<AliInputEventHandler *>(mgr->GetInputEventHandler());
349  if(inputhandler) {
350  if(inputhandler->IsA() == AliAODInputHandler::Class()){
351  std::cout << "Analysing AOD events\n";
352  isAOD = kTRUE;
353  } else {
354  std::cout << "Analysing ESD events\n";
355  }
356  }
357 
358  std::string jettypestring;
360  switch(jettype){
361  case AliJetContainer::kChargedJet: jettypestring = "ChargedJets"; acctype = AliJetContainer::kTPCfid; break;
362  case AliJetContainer::kFullJet: jettypestring = "FullJets"; acctype = AliJetContainer::kEMCALfid; break;
363  case AliJetContainer::kNeutralJet: jettypestring = "NeutralJets"; acctype = AliJetContainer::kEMCALfid; break;
365  };
366 
367  std::stringstream tag, outfilename;
368  tag << jettypestring << "_R" << std::setw(2) << std::setfill('0') << int(radius * 10.) << "_" << trigger;
369  if(strlen(suffix)) {
370  tag << "_" << suffix;
371  }
372  auto task = new AliAnalysisTaskEmcalJetEnergySpectrum(Form("JetEnergySpectrum_%s", tag.str().data()));
373  task->SetIsMC(isMC);
374  mgr->AddTask(task);
375 
376  auto contains = [](const std::string &str, const std::string &test) {
377  return str.find(test) != std::string::npos;
378  };
379 
380  std::string trgstr(trigger);
381  if(contains(trgstr, "INT7")) task->SetTriggerSelection(AliVEvent::kINT7, "INT7");
382  else if(contains(trgstr, "EJ1")) task->SetTriggerSelection(AliVEvent::kEMCEJE, "EJ1");
383  else if(contains(trgstr, "EJ2")) task->SetTriggerSelection(AliVEvent::kEMCEJE, "EJ2");
384  else if(contains(trgstr, "EG1")) task->SetTriggerSelection(AliVEvent::kEMCEGA, "EG1");
385  else if(contains(trgstr, "EG2")) task->SetTriggerSelection(AliVEvent::kEMCEGA, "EG2");
386 
387  // Connect particle and cluster container
388  AliTrackContainer *tracks(nullptr);
389  AliClusterContainer *clusters(nullptr);
390  if(jettype == AliJetContainer::kChargedJet || jettype == AliJetContainer::kFullJet) {
392  tracks->SetMinPt(0.15);
393  }
394  if(jettype == AliJetContainer::kNeutralJet || jettype == AliJetContainer::kFullJet){
395  clusters = task->AddClusterContainer(EMCalTriggerPtAnalysis::AliEmcalAnalysisFactory::ClusterContainerNameFactory(isAOD));
396  clusters->SetDefaultClusterEnergy(AliVCluster::kHadCorr);
397  clusters->SetClusHadCorrEnergyCut(0.3);
398  }
399 
400 
401  // Create proper jet container
402  auto jetcont = task->AddJetContainer(jettype, AliJetContainer::antikt_algorithm, recoscheme, radius, acctype, tracks, clusters);
403  jetcont->SetName("datajets");
404  task->SetNameJetContainer("datajets");
405  std::cout << "Adding jet container with underlying array:" << jetcont->GetArrayName() << std::endl;
406 
407  if(isMC){
408  // Create also particle and particle level jet container for outlier rejection
409  TString partcontname = namepartcont;
410  if(partcontname == "usedefault") partcontname = "mcparticles";
411  auto partcont = task->AddMCParticleContainer(partcontname.Data());
412  partcont->SetMinPt(0.);
413 
414  auto pjcont = task->AddJetContainer(jettype, AliJetContainer::antikt_algorithm, recoscheme, radius, AliJetContainer::kTPCfid, partcont, nullptr);
415  pjcont->SetName("partjets");
416  pjcont->SetMinPt(0);
417  pjcont->SetMaxTrackPt(1000.);
418  }
419 
420  // Link input and output container
421  outfilename << mgr->GetCommonFileName() << ":JetSpectrum_" << tag.str().data();
422  mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
423  mgr->ConnectOutput(task, 1, mgr->CreateContainer(Form("JetSpectrum_%s", tag.str().data()), TList::Class(), AliAnalysisManager::kOutputContainer, outfilename.str().data()));
424 
425  return task;
426 }
EMCal fiducial acceptance (each eta, phi edge narrowed by jet R)
Bool_t fIsPythia
trigger, if it is a PYTHIA production
double Double_t
Definition: External.C:58
AliEventCuts * fEventCuts
Event cuts as implemented in AliEventCuts.
Class creating a variable binning, used in the histogram manager.
Class creating a linear binning, used in the histogram manager.
AliJetContainer * GetJetContainer(Int_t i=0) const
Double_t Eta() const
Definition: AliEmcalJet.h:121
Double_t Phi() const
Definition: AliEmcalJet.h:117
Container with name, TClonesArray and cuts for particles.
void SetUseAliAnaUtils(Bool_t b, Bool_t bRejPilup=kTRUE)
Bool_t fRequireSubsetMB
Require for triggers to be a subset of Min. Bias (for efficiency studies)
static AliEmcalDownscaleFactorsOCDB * Instance()
void SetMinPt(Double_t min)
std::vector< TriggerCluster_t > GetTriggerClusterIndices(const TString &triggerstring) const
virtual Bool_t CheckMCOutliers()
Filter the mc tails in pt-hard distributions.
Double_t GetDownscaleFactorForTriggerClass(const TString &trigger) const
Double_t E() const
Definition: AliEmcalJet.h:119
Interface for binnings used by the histogram handler.
Definition: TBinning.h:23
static std::vector< PWG::EMCAL::Triggerinfo > DecodeTriggerString(const std::string &triggerstring)
Decoding trigger string.
void FillTHnSparse(const char *name, const double *x, double weight=1., Option_t *opt="")
virtual bool Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
THashList * GetListOfHistograms() const
Get the list of histograms.
Definition: THistManager.h:671
ULong_t fMinBiasTrigger
Min bias trigger for trigger subset (for efficiency studies)
Bool_t fIsHerwig
trigger, if it is a HERWIG production
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Create a new TH1 within the container.
Float_t fPtHardAndJetPtFactor
Factor between ptHard and jet pT to reject/accept event.
static AliAnalysisTaskEmcalJetEnergySpectrum * AddTaskJetEnergySpectrum(Bool_t isMC, AliJetContainer::EJetType_t jettype, AliJetContainer::ERecoScheme_t recoscheme, double radius, const char *namepartcont, const char *trigger, const char *suffix="")
Bool_t fMCRejectFilter
enable the filtering of events by tail rejection
TPC fiducial acceptance (each eta edge narrowed by jet R)
void FillTH1(const char *hname, double x, double weight=1., Option_t *opt="")
Fill a 1D histogram within the container.
Bool_t fRequestTriggerClusters
Request distinction of trigger clusters.
Double_t Pt() const
Definition: AliEmcalJet.h:109
virtual void RunChanged(Int_t newrun)
Process tasks relevant when a file with a different run number is processed.
virtual Bool_t IsEventSelected()
Performing event selection.
Bool_t fUseTriggerSelectionForData
Use trigger selection on data (require trigger patch in addition to trigger selection string) ...
Bool_t isMC
Float_t fPtHard
!event -hard
AliEmcalList * fOutput
!output list
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
Container class for histograms.
Definition: THistManager.h:99
void test(int runnumber=195345)
void UserCreateOutputObjects()
Main initialization function on the worker.
bool Bool_t
Definition: External.C:53
Double_t NEF() const
Definition: AliEmcalJet.h:148
void SetDefaultClusterEnergy(Int_t d)
THnSparse * CreateTHnSparse(const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
Create a new THnSparse within the container.
Container structure for EMCAL clusters.
void SetClusHadCorrEnergyCut(Double_t cut)
static TString ClusterContainerNameFactory(Bool_t isAOD)
Get name of the default cluster container.
static TString TrackContainerNameFactory(Bool_t isAOD)
Get name of the default track container.