AliPhysics  608b256 (608b256)
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 1279 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::ProcessEvent(), and ~Sum().

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 1290 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::End(), and ~Sum().

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 1257 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::ReadSum(), and ~Sum().

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

Get the histogram name

Parameters
whatWhich one
Returns
Name

Definition at line 1272 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 1220 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::CreateSums(), and ~Sum().

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 1429 of file AliBasedNdetaTask.cxx.

Referenced by AliBasedNdetaTask::CentralityBin::Print(), AliBasedNdetaTask::CentralityBin::SetSatelliteVertices(), and ~Sum().

Member Data Documentation

TH1I* AliBasedNdetaTask::Sum::fEvents

Definition at line 584 of file AliBasedNdetaTask.h.

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

TH2D* AliBasedNdetaTask::Sum::fSum
TH2D* AliBasedNdetaTask::Sum::fSum0

Definition at line 583 of file AliBasedNdetaTask.h.

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


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