AliPhysics  6bc8652 (6bc8652)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalList Class Reference

Enhanced TList-derived class that implements correct merging for pt_hard binned production. More...

#include <AliEmcalList.h>

Inheritance diagram for AliEmcalList:

Public Member Functions

 AliEmcalList ()
 
 ~AliEmcalList ()
 
Long64_t Merge (TCollection *hlist)
 Overridden Merge function. More...
 
void SetUseScaling (Bool_t val)
 

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...
 

Detailed Description

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)

Author
Ruediger Haake ruedi.nosp@m.ger..nosp@m.haake.nosp@m.@cer.nosp@m.n.ch, CERN
Date
May 05, 2016

Definition at line 25 of file AliEmcalList.h.

Constructor & Destructor Documentation

AliEmcalList::AliEmcalList ( )

Definition at line 26 of file AliEmcalList.cxx.

AliEmcalList::~AliEmcalList ( )
inline

Definition at line 29 of file AliEmcalList.h.

Member Function Documentation

Int_t AliEmcalList::GetFilledBinNumber ( TH1 hist)
private

Helper function that returns the bin in a TH1 that is filled

Parameters
histHistogram
Returns
bin number that is filled. If no or more than one bin is filled, 0.

Definition at line 166 of file AliEmcalList.cxx.

Referenced by GetScalingFactor(), and IsLastMergeLevel().

Double_t AliEmcalList::GetScalingFactor ( TH1 xsection,
TH1 ntrials 
)
private

Helper function scaling factor.

Definition at line 123 of file AliEmcalList.cxx.

Referenced by Merge().

Bool_t AliEmcalList::IsLastMergeLevel ( TCollection collection)
private

Helper function to determine whether we are in last merge step

Parameters
collectionCollection of AliEmcalList objects

Definition at line 145 of file AliEmcalList.cxx.

Referenced by Merge().

Long64_t AliEmcalList::Merge ( TCollection hlist)

Overridden Merge function.

Definition at line 33 of file AliEmcalList.cxx.

void AliEmcalList::ScaleAllHistograms ( TCollection hlist,
Double_t  scalingFactor 
)
private

Function that does the scaling of all histograms in hlist recursively.

Definition at line 83 of file AliEmcalList.cxx.

Referenced by Merge().

void AliEmcalList::SetUseScaling ( Bool_t  val)
inline

Definition at line 31 of file AliEmcalList.h.

Referenced by AliAnalysisTaskEmcal::UserCreateOutputObjects().

Member Data Documentation

Bool_t AliEmcalList::fUseScaling
private

if true, scaling will be done. if false AliEmcalList simplifies to TList

Definition at line 40 of file AliEmcalList.h.

Referenced by Merge(), and SetUseScaling().


The documentation for this class was generated from the following files: