![]() |
AliPhysics
d3bfcb9 (d3bfcb9)
|
Enhanced TList-derived class that implements correct merging for pt_hard binned production. More...
#include <AliEmcalList.h>
Public Member Functions | |
AliEmcalList () | |
~AliEmcalList () | |
Long64_t | Merge (TCollection *hlist) |
Overridden Merge function. More... | |
void | SetUseScaling (Bool_t val) |
Bool_t | IsUseScaling () const |
Private Member Functions | |
void | ScaleAllHistograms (TCollection *hlist, Double_t scalingFactor) |
Function that does the scaling of all histograms in hlist recursively. More... | |
Double_t | GetScalingFactor (TH1 *xsection, TH1 *ntrials) |
Helper function scaling factor. More... | |
Bool_t | IsLastMergeLevel (TCollection *collection) |
Int_t | GetFilledBinNumber (TH1 *hist) |
Private Attributes | |
Bool_t | fUseScaling |
if true, scaling will be done. if false AliEmcalList simplifies to TList More... | |
Enhanced TList-derived class that implements correct merging for pt_hard binned production.
Must be activated using SetUseScaling(kTRUE). Otherwise the behavior is like a TList Scaling is recursively applied also to all nested lists deriving from TCollection fHistXsection and fHistTrials must be added directly to the list (not to a nested list)
Definition at line 25 of file AliEmcalList.h.
AliEmcalList::AliEmcalList | ( | ) |
Definition at line 27 of file AliEmcalList.cxx.
|
inline |
Definition at line 29 of file AliEmcalList.h.
Helper function that returns the bin in a TH1 that is filled
hist | Histogram |
Definition at line 176 of file AliEmcalList.cxx.
Referenced by GetScalingFactor(), IsLastMergeLevel(), and IsUseScaling().
Helper function scaling factor.
Definition at line 133 of file AliEmcalList.cxx.
Referenced by IsUseScaling(), and Merge().
|
private |
Helper function to determine whether we are in last merge step
collection | Collection of AliEmcalList objects |
Definition at line 155 of file AliEmcalList.cxx.
Referenced by IsUseScaling(), and Merge().
|
inline |
Definition at line 32 of file AliEmcalList.h.
Long64_t AliEmcalList::Merge | ( | TCollection * | hlist | ) |
Overridden Merge function.
Definition at line 34 of file AliEmcalList.cxx.
Referenced by ~AliEmcalList().
|
private |
Function that does the scaling of all histograms in hlist recursively.
Definition at line 84 of file AliEmcalList.cxx.
Referenced by IsUseScaling(), and Merge().
|
inline |
Definition at line 31 of file AliEmcalList.h.
Referenced by AliAnalysisTaskEmcal::UserCreateOutputObjects().
|
private |
if true, scaling will be done. if false AliEmcalList simplifies to TList
Definition at line 41 of file AliEmcalList.h.
Referenced by IsUseScaling(), Merge(), and SetUseScaling().