AliPhysics  cdeda5a (cdeda5a)
 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 
18 //
19 
20 class TH1;
21 class TList;
22 
23 #include "TList.h"
24 
25 class AliEmcalList : public TList {
26 
27 public:
28  AliEmcalList();
30  Long64_t Merge(TCollection *hlist);
31  void SetUseScaling(Bool_t val) {fUseScaling = val;}
32 
33 private:
34  // ####### Helper functions
35  void ScaleAllHistograms(TCollection *hlist, Double_t scalingFactor);
36  Double_t GetScalingFactor(TH1* xsection, TH1* ntrials);
37  Bool_t IsLastMergeLevel(TCollection* collection);
39 
41 
43  ClassDef(AliEmcalList, 1);
45 };
46 
47 #endif
double Double_t
Definition: External.C:58
Bool_t fUseScaling
if true, scaling will be done. if false AliEmcalList simplifies to TList
Definition: AliEmcalList.h:40
long long Long64_t
Definition: External.C:43
Int_t GetFilledBinNumber(TH1 *hist)
void ScaleAllHistograms(TCollection *hlist, Double_t scalingFactor)
Function that does the scaling of all histograms in hlist recursively.
int Int_t
Definition: External.C:63
Bool_t IsLastMergeLevel(TCollection *collection)
Double_t GetScalingFactor(TH1 *xsection, TH1 *ntrials)
Helper function scaling factor.
void SetUseScaling(Bool_t val)
Definition: AliEmcalList.h:31
Long64_t Merge(TCollection *hlist)
Overridden Merge function.
Enhanced TList-derived class that implements correct merging for pt_hard binned production.
Definition: AliEmcalList.h:25
bool Bool_t
Definition: External.C:53
Definition: External.C:196