AliPhysics  3337bb0 (3337bb0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBasedNdetaTask::Sum Struct Reference

#include <AliBasedNdetaTask.h>

Inheritance diagram for AliBasedNdetaTask::Sum:

Public Member Functions

 Sum ()
 
 Sum (const char *name, const char *postfix)
 
 Sum (const Sum &o)
 
Sumoperator= (const Sum &o)
 
 ~Sum ()
 
void Init (TList *list, const TH2D *data, Int_t col)
 
void Add (const TH2D *data, Bool_t isZero, Double_t weight)
 
TString GetHistName (Int_t what=0) const
 
TH2DCalcSum (TList *o, Double_t &ntotal, Double_t zeroEff, Double_t otherEff=1, Int_t marker=20, Bool_t rootXproj=false, Bool_t corrEmpty=true) const
 
virtual void Print (Option_t *option="") const
 

Static Public Member Functions

static TString GetHistName (const char *name, Int_t what=0, const char *post=0)
 

Public Attributes

TH2DfSum
 
TH2DfSum0
 
TH1IfEvents
 
Int_t fDebug
 

Detailed Description

Class that holds the sum of the data - possibly split into 0 or non-zero bins

Definition at line 580 of file AliBasedNdetaTask.h.

Constructor & Destructor Documentation

AliBasedNdetaTask::Sum::Sum ( )
inline

I/O Constructor - do not use

Definition at line 589 of file AliBasedNdetaTask.h.

AliBasedNdetaTask::Sum::Sum ( const char *  name,
const char *  postfix 
)
inline

Constructor

Parameters
nameName
postfixPossible post-fix

Definition at line 596 of file AliBasedNdetaTask.h.

AliBasedNdetaTask::Sum::Sum ( const Sum o)
inline

Copy constructor

Parameters
oObject to copy from

Definition at line 608 of file AliBasedNdetaTask.h.

AliBasedNdetaTask::Sum::~Sum ( )
inline

Destructor

Definition at line 631 of file AliBasedNdetaTask.h.

Member Function Documentation

void AliBasedNdetaTask::Sum::Add ( const TH2D data,
Bool_t  isZero,
Double_t  weight 
)

Add an event

Parameters
dataData to add
isZeroIf this is zero event
weightEvent weight

Definition at line 1271 of file AliBasedNdetaTask.cxx.

Referenced by AliMCTruthdNdetaTask::CentralityBin::ProcessEvent().

TH2D * AliBasedNdetaTask::Sum::CalcSum ( TList o,
Double_t ntotal,
Double_t  zeroEff,
Double_t  otherEff = 1,
Int_t  marker = 20,
Bool_t  rootXproj = false,
Bool_t  corrEmpty = true 
) const

Get the sum

Parameters
oOutput list
ntotalOn return, the total number of events
zeroEffZero-bin efficiency
otherEffNon-zero-bin efficiency
markerMarker to use
rootXprojWhether to use TH2::ProjectionX
corrEmptyCorrect for empty bins
Returns
The total sum histogram

Definition at line 1282 of file AliBasedNdetaTask.cxx.

TString AliBasedNdetaTask::Sum::GetHistName ( const char *  name,
Int_t  what = 0,
const char *  post = 0 
)
static

Get the histogram name

Parameters
nameBase name
whatWhich one
postPossible postfix
Returns
Name

Definition at line 1249 of file AliBasedNdetaTask.cxx.

Referenced by Init(), and AliBasedNdetaTask::CentralityBin::ReadSum().

TString AliBasedNdetaTask::Sum::GetHistName ( Int_t  what = 0) const

Get the histogram name

Parameters
whatWhich one
Returns
Name

Definition at line 1264 of file AliBasedNdetaTask.cxx.

void AliBasedNdetaTask::Sum::Init ( TList list,
const TH2D data,
Int_t  col 
)

Initialise this object.

Parameters
listList to add histograms to
dataFormat of data to be cloned here
colColor

Definition at line 1212 of file AliBasedNdetaTask.cxx.

Sum& AliBasedNdetaTask::Sum::operator= ( const Sum o)
inline

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 622 of file AliBasedNdetaTask.h.

void AliBasedNdetaTask::Sum::Print ( Option_t option = "") const
virtual

Print this sum container

Parameters
optionNot used

Definition at line 1421 of file AliBasedNdetaTask.cxx.

Member Data Documentation

Int_t AliBasedNdetaTask::Sum::fDebug

Definition at line 585 of file AliBasedNdetaTask.h.

Referenced by Init(), and AliBasedNdetaTask::CentralityBin::ReadSum().

TH1I* AliBasedNdetaTask::Sum::fEvents

Definition at line 584 of file AliBasedNdetaTask.h.

Referenced by Init(), operator=(), and AliBasedNdetaTask::CentralityBin::ReadSum().

TH2D* AliBasedNdetaTask::Sum::fSum

Definition at line 582 of file AliBasedNdetaTask.h.

Referenced by Init(), operator=(), and AliBasedNdetaTask::CentralityBin::ReadSum().

TH2D* AliBasedNdetaTask::Sum::fSum0

Definition at line 583 of file AliBasedNdetaTask.h.

Referenced by Init(), operator=(), and AliBasedNdetaTask::CentralityBin::ReadSum().


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