AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension Class Reference

Binning definition for a certain dimension. More...

#include <AliEMCalTriggerBinningComponent.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension:

Public Member Functions

 AliEMCalTriggerBinningDimension ()
 
 AliEMCalTriggerBinningDimension (const char *name)
 
 AliEMCalTriggerBinningDimension (const char *name, int nbins, const double *binning)
 
 AliEMCalTriggerBinningDimension (const char *name, const TArrayD &binning)
 
virtual ~AliEMCalTriggerBinningDimension ()
 
void Set (int nbins, const double *binning)
 
void Set (const TArrayD &binning)
 
const double * GetBinLimits () const
 
const TArrayD & GetBinning () const
 
void InitializeArray (TArrayD out) const
 
int GetNumberOfBins () const
 
virtual void Print (Option_t *option="") const
 
void PrintStream (std::ostream &stream) const
 

Private Attributes

TArrayD fBinning
 Bin limits. More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const AliEMCalTriggerBinningDimension &dim)
 

Detailed Description

Binning definition for a certain dimension.

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 a certain dimension. By construction a variable binning is assumed.

Definition at line 24 of file AliEMCalTriggerBinningComponent.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::AliEMCalTriggerBinningDimension ( )
inline

Dummy Constructor

Definition at line 30 of file AliEMCalTriggerBinningComponent.h.

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::AliEMCalTriggerBinningDimension ( const char *  name)
inline

Named constructor

Parameters
[in]nameName of the dimension

Definition at line 39 of file AliEMCalTriggerBinningComponent.h.

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::AliEMCalTriggerBinningDimension ( const char *  name,
int  nbins,
const double *  binning 
)
inline

Constructor initializing the dimension from a C-array

Parameters
[in]nameName of the dimension
[in]nbinsNumber of bins
[in]binningArray of bin limits

Definition at line 50 of file AliEMCalTriggerBinningComponent.h.

EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::AliEMCalTriggerBinningDimension ( const char *  name,
const TArrayD &  binning 
)
inline

Constructor initializing the dimension from a ROOT array

Parameters
[in]nameName of the dimension
[in]binningArray of bin limits

Definition at line 60 of file AliEMCalTriggerBinningComponent.h.

virtual EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::~AliEMCalTriggerBinningDimension ( )
inlinevirtual

Destructor

Definition at line 68 of file AliEMCalTriggerBinningComponent.h.

Member Function Documentation

const double* EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::GetBinLimits ( ) const
inline
const TArrayD& EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::GetBinning ( ) const
inline
int EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::GetNumberOfBins ( ) const
inline
void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::InitializeArray ( TArrayD  out) const
inline

Initialize output array with binning stored in this dimension

Parameters
[out]outArray to initialize with this binning

Definition at line 99 of file AliEMCalTriggerBinningComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::Print ( Option_t *  option = "") const
virtual

Print the bin limits for a given dimension.

Definition at line 149 of file AliEMCalTriggerBinningComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::PrintStream ( std::ostream &  stream) const

Print the bin limits for a given dimension. Used in the operator<< of AliEMCalTriggerBinningDimension.

Parameters
[in]streamStream to print the information on

Definition at line 137 of file AliEMCalTriggerBinningComponent.cxx.

Referenced by EMCalTriggerPtAnalysis::operator<<().

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::Set ( int  nbins,
const double *  binning 
)
inline

Set the bin limits of the dimension from a C-array

Parameters
[in]nbinsNumber of bins
[in]binningArray of bin limits

Definition at line 75 of file AliEMCalTriggerBinningComponent.h.

Referenced by EMCalTriggerPtAnalysis::AliEMCalTriggerBinningComponent::SetBinning().

void EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::Set ( const TArrayD &  binning)
inline

Set the bin limits of the dimension from a ROOT array

Parameters
[in]binningArray of bin limits

Definition at line 81 of file AliEMCalTriggerBinningComponent.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const AliEMCalTriggerBinningDimension dim 
)
friend

Output stream operator for the binning dimension.

Parameters
[in]streamStream to print the information on
[in]dimObject to be put on the stream
Returns
Stream after pringing

Definition at line 159 of file AliEMCalTriggerBinningComponent.cxx.

Member Data Documentation

TArrayD EMCalTriggerPtAnalysis::AliEMCalTriggerBinningDimension::fBinning
private

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