AliPhysics  58f3d52 (58f3d52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fast1DCentEstimator Struct Referenceabstract
Inheritance diagram for Fast1DCentEstimator:

Public Member Functions

 Fast1DCentEstimator (const char *name="")
 
virtual ~Fast1DCentEstimator ()
 
virtual const char * MultSpec () const
 
virtual void Setup (TCollection *l, TTree *tree, UShort_t, Bool_t, Bool_t)
 
virtual void PreEvent ()
 
virtual void PostEvent ()
 
virtual TH1GetHistogram (TCollection *l)=0
 
virtual void Terminate (TCollection *out)
 
virtual void Print (Option_t *option="nh") const
 
- Public Member Functions inherited from FastCentEstimator
 FastCentEstimator (const char *name="")
 
virtual ~FastCentEstimator ()
 
const char * GetName () const
 
void SetVerbose (Bool_t verb)
 
virtual void ProcessHeader (FastShortHeader &)
 
virtual void Process (const TParticle *p)=0
 

Public Attributes

ULong64_t fCache
 
TH1fHistogram
 
Bool_t fFromTop
 
- Public Attributes inherited from FastCentEstimator
TString fName
 
Bool_t fVerbose
 

Additional Inherited Members

- Static Public Member Functions inherited from FastCentEstimator
static Double_t Theta (const TParticle *p)
 
static Double_t Eta (const TParticle *p)
 
static Double_t Phi (const TParticle *p)
 
static Bool_t IsPrimary (const TParticle *p)
 
static Bool_t IsWeakDecay (const TParticle *p)
 
static Bool_t IsCharged (const TParticle *p)
 

Detailed Description

A 1-dimensional centrality estimator

Definition at line 182 of file FastCentEstimators.C.

Constructor & Destructor Documentation

Fast1DCentEstimator::Fast1DCentEstimator ( const char *  name = "")
inline

Constructor

Parameters
nameName of the estimator

Definition at line 197 of file FastCentEstimators.C.

virtual Fast1DCentEstimator::~Fast1DCentEstimator ( )
inlinevirtual

Destructor

Definition at line 203 of file FastCentEstimators.C.

Member Function Documentation

virtual TH1* Fast1DCentEstimator::GetHistogram ( TCollection l)
pure virtual
virtual const char* Fast1DCentEstimator::MultSpec ( ) const
inlinevirtual

Definition at line 204 of file FastCentEstimators.C.

Referenced by Setup().

virtual void Fast1DCentEstimator::PostEvent ( )
inlinevirtual

Fills the summed observable into the histogram

Reimplemented from FastCentEstimator.

Reimplemented in ZNCentEstimator, and BCentEstimator.

Definition at line 233 of file FastCentEstimators.C.

Referenced by ZNCentEstimator::PostEvent().

virtual void Fast1DCentEstimator::PreEvent ( )
inlinevirtual

Called before each event. Zeros the cache variable

Reimplemented from FastCentEstimator.

Reimplemented in BCentEstimator.

Definition at line 226 of file FastCentEstimators.C.

virtual void Fast1DCentEstimator::Print ( Option_t option = "nh") const
inlinevirtual

Reimplemented from FastCentEstimator.

Reimplemented in ZNCentEstimator, V0CentEstimator, and FastNchCentEstimator.

Definition at line 279 of file FastCentEstimators.C.

Referenced by FastNchCentEstimator::Print(), and ZNCentEstimator::Print().

virtual void Fast1DCentEstimator::Setup ( TCollection l,
TTree tree,
UShort_t  ,
Bool_t  ,
Bool_t   
)
inlinevirtual

Set-up this object. Defines the internal histogram and add to output

Parameters
lOutput list
treeTree to add branch to

Implements FastCentEstimator.

Reimplemented in ZNCentEstimator, RefMultEstimator, V0CentEstimator, and BCentEstimator.

Definition at line 212 of file FastCentEstimators.C.

Referenced by BCentEstimator::Setup(), V0CentEstimator::Setup(), RefMultEstimator::Setup(), and ZNCentEstimator::Setup().

virtual void Fast1DCentEstimator::Terminate ( TCollection out)
inlinevirtual

Called at the end of the processing. The member function produces a histogram like the defined observable histogram, but the bin content corresponds to the centrality corresponding to that bin. In that way, we can do a simple look-up in the output histogram to extract the centrality

Parameters
outOutput list to add information to.

Implements FastCentEstimator.

Reimplemented in BCentEstimator.

Definition at line 249 of file FastCentEstimators.C.

Member Data Documentation

TH1* Fast1DCentEstimator::fHistogram

Our histogram. The Setup member function must be overridden to define this member.

Definition at line 190 of file FastCentEstimators.C.

Referenced by BCentEstimator::GetCentrality(), PostEvent(), Print(), Setup(), BCentEstimator::Setup(), V0CentEstimator::Setup(), RefMultEstimator::Setup(), and ZNCentEstimator::Setup().


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