AliPhysics  95775ff (95775ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FastCentEstimator Struct Referenceabstract
Inheritance diagram for FastCentEstimator:

Public Member Functions

 FastCentEstimator (const char *name="")
 
virtual ~FastCentEstimator ()
 
const char * GetName () const
 
void SetVerbose (Bool_t verb)
 
virtual void Setup (TCollection *out, TTree *tree, UShort_t sNN, Bool_t tgtA, Bool_t projA)=0
 
virtual void PreEvent ()
 
virtual void ProcessHeader (FastShortHeader &)
 
virtual void Process (const TParticle *p)=0
 
virtual void PostEvent ()
 
virtual void Terminate (TCollection *out)=0
 
virtual void Print (Option_t *option="") const
 
 ClassDef (FastCentEstimator, 1)
 

Static Public Member Functions

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)
 

Public Attributes

TString fName
 
Bool_t fVerbose
 

Detailed Description

Base class for centrality estimators

Definition at line 30 of file FastCentEstimators.C.

Constructor & Destructor Documentation

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

Constructor

Parameters
nameName of the estimator

Definition at line 39 of file FastCentEstimators.C.

virtual FastCentEstimator::~FastCentEstimator ( )
inlinevirtual

Destructor

Definition at line 45 of file FastCentEstimators.C.

Member Function Documentation

FastCentEstimator::ClassDef ( FastCentEstimator  ,
 
)
static Double_t FastCentEstimator::Eta ( const TParticle *  p)
inlinestatic

Get the particle pseudo-rapidity \(\eta\)

Parameters
pThe particle
Returns
Pseudo-rapidity \(\eta\)

Definition at line 114 of file FastCentEstimators.C.

Referenced by V0CentEstimator::Accept(), RefMultEstimator::Accept(), and ZNCentEstimator::Process().

static Bool_t FastCentEstimator::IsCharged ( const TParticle *  p)
inlinestatic

Check if particle is charged

Parameters
pParticle
Returns
true if particle is charged

Definition at line 166 of file FastCentEstimators.C.

Referenced by FastNchCentEstimator::Process().

static Bool_t FastCentEstimator::IsPrimary ( const TParticle *  p)
inlinestatic

Check if a particle is primary

Parameters
pParticle
Returns
true if primary

Definition at line 144 of file FastCentEstimators.C.

Referenced by V0CentEstimator::Accept(), RefMultEstimator::Accept(), and ZNCentEstimator::Process().

static Bool_t FastCentEstimator::IsWeakDecay ( const TParticle *  p)
inlinestatic

Check if particle is from weak decay

Parameters
pParticle
Returns
true if from weak decay

Definition at line 155 of file FastCentEstimators.C.

static Double_t FastCentEstimator::Phi ( const TParticle *  p)
inlinestatic

Get the particle azimuth angle \(\varphi\)

Parameters
pThe particle
Returns
Azimuth angle \(\varphi\)

Definition at line 130 of file FastCentEstimators.C.

Referenced by ZNCentEstimator::Process().

virtual void FastCentEstimator::PostEvent ( )
inlinevirtual

Called at the end of an event

Reimplemented in ZNCentEstimator, BCentEstimator, and Fast1DCentEstimator.

Definition at line 82 of file FastCentEstimators.C.

Referenced by FastSim::PostEvent(), and EPosSim::PostEvent().

virtual void FastCentEstimator::PreEvent ( )
inlinevirtual

Called before the start of an event

Reimplemented in BCentEstimator, and Fast1DCentEstimator.

Definition at line 69 of file FastCentEstimators.C.

Referenced by FastSim::PreEvent(), and EPosSim::PreEvent().

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

Reimplemented in ZNCentEstimator, V0CentEstimator, FastNchCentEstimator, and Fast1DCentEstimator.

Definition at line 89 of file FastCentEstimators.C.

Referenced by FastSim::Begin().

virtual void FastCentEstimator::Process ( const TParticle *  p)
pure virtual

Called for each particle produced by the event generator. Sub-classes should decide if they want to take the information from the passed particle, and then process that information.

Parameters
pGenerated particle

Implemented in ZNCentEstimator, FastNchCentEstimator, and BCentEstimator.

Referenced by FastSim::ProcessParticles(), and EPosSim::ProcessParticles().

virtual void FastCentEstimator::ProcessHeader ( FastShortHeader )
inlinevirtual

Reimplemented in ZNCentEstimator, and BCentEstimator.

Definition at line 70 of file FastCentEstimators.C.

Referenced by FastSim::ProcessHeader(), and EPosSim::ProcessHeader().

virtual void FastCentEstimator::Setup ( TCollection out,
TTree tree,
UShort_t  sNN,
Bool_t  tgtA,
Bool_t  projA 
)
pure virtual

Set-up this estimator. Output objects should be stored in out, and a branch can be registerd in the TTree.

Parameters
outOutput list to add stuff to
treeOutput tree
sNNCollision energy in GeV
tgtATrue if target is a nucleus
projATrue if projectile is a nucleus

Implemented in ZNCentEstimator, RefMultEstimator, V0CentEstimator, BCentEstimator, and Fast1DCentEstimator.

Referenced by FastSim::SetupOutput().

void FastCentEstimator::SetVerbose ( Bool_t  verb)
inline

Definition at line 52 of file FastCentEstimators.C.

Referenced by FastSim::SetupOutput().

virtual void FastCentEstimator::Terminate ( TCollection out)
pure virtual

Do the final calculations

Parameters
outOutput list to add stuff to

Implemented in BCentEstimator, and Fast1DCentEstimator.

Referenced by FastSim::Terminate().

static Double_t FastCentEstimator::Theta ( const TParticle *  p)
inlinestatic

Get the particle polar angle

Parameters
pParticle
Returns
Polar angle

Definition at line 100 of file FastCentEstimators.C.

Referenced by Eta().

Member Data Documentation

TString FastCentEstimator::fName

Definition at line 32 of file FastCentEstimators.C.

Referenced by GetName().

Bool_t FastCentEstimator::fVerbose

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