AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalList.h
Go to the documentation of this file.
1 #ifndef ALIEMCALLIST_H
2 #define ALIEMCALLIST_H
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
17 //
18 
19 class TList;
20 
21 #include "TList.h"
22 
23 class AliEmcalList : public TList {
24 
25 public:
26  AliEmcalList();
28  Long64_t Merge(TCollection *hlist);
29  void SetUseScaling(Bool_t val) {fUseScaling = val;}
30 
31 private:
32  // ####### Helper functions
33  void ScaleAllHistograms(TCollection *hlist, Double_t scalingFactor);
34  Double_t GetScalingFactor(TH1* xsection, TH1* ntrials);
35  Bool_t IsLastMergeLevel(TCollection* collection);
36  Int_t GetFilledBinNumber(TH1* hist);
37 
38  Bool_t fUseScaling;
39 
41  ClassDef(AliEmcalList, 1);
43 };
44 
45 #endif
Bool_t fUseScaling
if true, scaling will be done. if false AliEmcalList simplifies to TList
Definition: AliEmcalList.h:38
Int_t GetFilledBinNumber(TH1 *hist)
void ScaleAllHistograms(TCollection *hlist, Double_t scalingFactor)
Function that does the scaling of all histograms in hlist recursively.
Bool_t IsLastMergeLevel(TCollection *collection)
Double_t GetScalingFactor(TH1 *xsection, TH1 *ntrials)
Helper function scaling factor.
void SetUseScaling(Bool_t val)
Definition: AliEmcalList.h:29
Long64_t Merge(TCollection *hlist)
Overridden ::Merge function.
Enhanced TList-derived class that implements correct merging for pt_hard binned production.
Definition: AliEmcalList.h:23