AliPhysics  d9e9949 (d9e9949)
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  Bool_t IsUseScaling() const { return fUseScaling; }
33 
34 private:
35  // ####### Helper functions
36  void ScaleAllHistograms(TCollection *hlist, Double_t scalingFactor);
37  Double_t GetScalingFactor(TH1* xsection, TH1* ntrials);
38  Bool_t IsLastMergeLevel(TCollection* collection);
40 
42 
44  ClassDef(AliEmcalList, 1);
46 };
47 
48 #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:41
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.
Bool_t IsUseScaling() const
Definition: AliEmcalList.h:32
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