AliPhysics  aaf9c62 (aaf9c62)
EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent Class Reference

Global binning definition for the high- \( p_{t} \) charged particle \( p_{t}\) analysis. More...

#include <AliEMCalTriggerBinningComponent.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent:

Classes

class  AliEMCalTriggerBinningData
 Wrapper for Binning data, connecting with name. More...
 

Public Member Functions

 AliEMCalTriggerBinningComponent ()
 
 AliEMCalTriggerBinningComponent (const AliEMCalTriggerBinningComponent &ref)
 
AliEMCalTriggerBinningComponentoperator= (const AliEMCalTriggerBinningComponent &ref)
 
virtual ~AliEMCalTriggerBinningComponent ()
 
TBinningGetBinning (const char *name) const
 
void SetBinning (const char *dimname, int nbins, const double *binning)
 
void SetBinning (const char *dimname, const TArrayD &binning)
 
void SetBinning (const char *dimname, TBinning *binning)
 
void SetLinearBinning (const char *dirname, int nbins, double min, double max)
 

Private Member Functions

AliEMCalTriggerBinningDataFindBinning (const char *dim) const
 

Private Attributes

TObjArrayfDimensions
 List of binnings (dimensions) More...
 

Detailed Description

Global binning definition for the high- \( p_{t} \) charged particle \( p_{t}\) analysis.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Date
Dec 12, 2014

This class contains the binning definition for various dimensions shared globally among analysis components. The dimensions are handled via the class AliEMCalTriggerBinningDimension. Getters and setters are provided.

Definition at line 26 of file AliEMCalTriggerBinningComponent.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::AliEMCalTriggerBinningComponent ( )

Main constructor

Definition at line 31 of file AliEMCalTriggerBinningComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::AliEMCalTriggerBinningComponent ( const AliEMCalTriggerBinningComponent ref)

Copy constructor, creating a deep copy.

Parameters
[in]refReference for the copy

Definition at line 39 of file AliEMCalTriggerBinningComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::~AliEMCalTriggerBinningComponent ( )
virtual

Destructor

Definition at line 62 of file AliEMCalTriggerBinningComponent.cxx.

Referenced by operator=().

Member Function Documentation

AliEMCalTriggerBinningComponent::AliEMCalTriggerBinningData * EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::FindBinning ( const char *  dim) const
private

Find binning for the given dimension in the binning component

Parameters
[in]nameof the dimension
Returns
Binning data (null if not found)

Definition at line 91 of file AliEMCalTriggerBinningComponent.cxx.

Referenced by SetBinning().

AliEMCalTriggerBinningComponent & EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::operator= ( const AliEMCalTriggerBinningComponent ref)

Assignment operator, doing a deep copy.

Parameters
[in]refReference for the assignment

Definition at line 49 of file AliEMCalTriggerBinningComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::SetBinning ( const char *  dimname,
int  nbins,
const double *  binning 
)

Set binning for dimension. If not yet existing, create it

Parameters
[in]dimnameaxis name
[in]nbinsNumber of bins
[in]binningarray of bin limits (size nbins+1)

Definition at line 72 of file AliEMCalTriggerBinningComponent.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::AliAnalysisTaskTrackDensityData(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTriggerV1::SetBinning(), SetBinning(), and SetLinearBinning().

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::SetBinning ( const char *  dimname,
const TArrayD binning 
)

Set binning for dimension. If not yet existing, create it.

Parameters
[in]dimnameaxis name
[in]binningarray of bin limits (size nbins+1)

Definition at line 76 of file AliEMCalTriggerBinningComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::SetBinning ( const char *  dimname,
TBinning binning 
)

Set pre-defined binning initialized outside of the binning component

Parameters
[in]dimnameName of the dimension
[in]binningBinning for the dimension

Definition at line 85 of file AliEMCalTriggerBinningComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::SetLinearBinning ( const char *  dirname,
int  nbins,
double  min,
double  max 
)

Set a linear binning for dimension. If not yet existing, create it.

Parameters
[in]dimnameaxis name
[in]nbinsNumber of bins
[in]minMinimum of the range (= lowest bin limit)
[in]maxMaximum of the range (= highest bin limit)

Definition at line 81 of file AliEMCalTriggerBinningComponent.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::AliAnalysisTaskTrackDensityData().

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::fDimensions
private

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