AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBaseAODTask Class Referenceabstract

#include <AliBaseAODTask.h>

Inheritance diagram for AliBaseAODTask:

Public Member Functions

 AliBaseAODTask ()
 
 AliBaseAODTask (const char *name, const char *title)
 
virtual ~AliBaseAODTask ()
 
virtual Bool_t Configure (const char *macro="-default-")
 
Set parameters
void SetIpZRange (Double_t min, Double_t max)
 
void SetIpZMin (Double_t min)
 
void SetIpZMax (Double_t max)
 
void SetTriggerMask (UInt_t mask)
 
void SetTriggerMask (const char *mask)
 
void SetFilterMask (UInt_t mask)
 
void SetFilterMask (const char *mask)
 
void SetCentralityAxis (UShort_t n, Short_t *bins)
 
void SetCentralityAxis (UShort_t n, Double_t *bins)
 
void SetCentralityAxis (Short_t low, Short_t high)
 
void SetCentralityAxis (const char *bins)
 
Interface member functions
virtual Bool_t Connect (const char *sumFile=0, const char *resFile=0)
 
virtual Bool_t Book ()=0
 
virtual Bool_t PreData ()
 
virtual Bool_t PreEvent ()
 
virtual Bool_t Event (AliAODEvent &aod)=0
 
virtual Bool_t PostEvent ()
 
virtual Bool_t Finalize ()=0
 
Utilities
void Print (Option_t *option="") const
 

Protected Member Functions

 AliBaseAODTask (const AliBaseAODTask &o)
 
AliBaseAODTaskoperator= (const AliBaseAODTask &o)
 
AliAODForwardMultGetForward (const AliAODEvent &aod, Bool_t mc=false, Bool_t verb=true)
 
AliAODMultEventClassGetMultClass (const AliAODEvent &aod, Bool_t verb=true)
 
AliAODCentralMultGetCentral (const AliAODEvent &aod, Bool_t mc=false, Bool_t verb=true)
 
TH2DGetPrimary (const AliAODEvent &aod)
 
virtual void StoreInformation (AliAODForwardMult &forward)
 
virtual Bool_t CheckEvent (const AliAODForwardMult &forward)
 
Bool_t HasCentrality () const
 
virtual Double_t GetCentrality (AliAODEvent &event, AliAODForwardMult *forward, Int_t &qual)
 
virtual Double_t GetCentrality (AliAODEvent &event, AliAODForwardMult *forward)
 
virtual Double_t GetIpZ (AliAODEvent &event, AliAODForwardMult *forward)
 
virtual Bool_t GetIpXY (AliAODEvent &aod, Double_t &x, Double_t &y)
 
virtual const char * DefaultConfig () const
 
Task interface
virtual void Init ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 

Protected Attributes

UInt_t fTriggerMask
 
UInt_t fFilterMask
 
Double_t fMinIpZ
 
Double_t fMaxIpZ
 
TAxis fCentAxis
 
TH1IfTriggers
 
TH1IfEventStatus
 
TH1DfVertex
 
TH1DfCent
 
TH1DfAccVertex
 
TH2DfAccVertexXY
 
TH1DfAccCent
 
Bool_t fFirstEvent
 
Bool_t fCloneList
 
TListfSums
 
TListfResults
 

Detailed Description

Base class for reading in AOD stuff

Definition at line 15 of file AliBaseAODTask.h.

Constructor & Destructor Documentation

AliBaseAODTask::AliBaseAODTask ( )

Constructor (for I/O - do not use)

Definition at line 16 of file AliBaseAODTask.cxx.

AliBaseAODTask::AliBaseAODTask ( const char *  name,
const char *  title 
)

Constructor

Parameters
nameName of task
titleClass name used in configuration script

Definition at line 37 of file AliBaseAODTask.cxx.

virtual AliBaseAODTask::~AliBaseAODTask ( )
inlinevirtual

Destructor

Definition at line 33 of file AliBaseAODTask.h.

AliBaseAODTask::AliBaseAODTask ( const AliBaseAODTask o)
protected

Copyt constructor - not defined

Parameters
oObject to copy from

Member Function Documentation

virtual Bool_t AliBaseAODTask::Book ( )
pure virtual

Book output objects. Derived class should define this to book output objects on the processing output list fList before the actual event processing. This is called on the master and on each slave.

If this member function returns false, the execution is stopped with a fatal signal.

Returns
true on success.

Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, and AliFMDEventPlaneTask.

Referenced by UserCreateOutputObjects().

Bool_t AliBaseAODTask::CheckEvent ( const AliAODForwardMult forward)
protectedvirtual

Check if the event corresponds to the selected trigger(s), vertex, and centrality. Derived classes can overload this to enable event processing - even if the event is not within cuts.

Parameters
forwardForward object
Returns
true if the event is within the cuts.

Reimplemented in AliBasedNdetaTask, AliForwardMultDists, AliBaseMultTask, and AliForwardMultiplicityDistribution.

Definition at line 531 of file AliBaseAODTask.cxx.

Referenced by AliForwardMultiplicityDistribution::CheckEvent(), AliBaseMultTask::CheckEvent(), AliForwardMultDists::CheckEvent(), AliBasedNdetaTask::CheckEvent(), and UserExec().

Bool_t AliBaseAODTask::Configure ( const char *  macro = "-default-")
virtual

Configure this task via a macro

Parameters
macroMacro to configure va
Returns
true on success, false otherwise

Definition at line 66 of file AliBaseAODTask.cxx.

Referenced by AddTaskdNdeta().

Bool_t AliBaseAODTask::Connect ( const char *  sumFile = 0,
const char *  resFile = 0 
)
virtual

Add this task to the manager and connect the outputs. If sumFile is null or the empty string, then the sum container is stored in the default output file of the manager. If resFile is null or the empty string, then it is set to resFile if defined, otherwise to the default output file of the manager.

Parameters
sumFileOutput file for sums
resFileOutput file for sums
Returns
true on success

Definition at line 229 of file AliBaseAODTask.cxx.

Referenced by AddTaskCreateRespMatr(), AddTaskdNdeta(), AddTaskMultDistributions(), AddTaskMultDists(), and AddTaskTriggerCorrection().

virtual const char* AliBaseAODTask::DefaultConfig ( ) const
inlineprotectedvirtual

Get the name of the default configuration script to use. Sub-classes can override this to give another default configuration script. Note, it should problably only return the base name (not full path) of the script.

Returns
Name of the configuration script to use.

Definition at line 354 of file AliBaseAODTask.h.

Referenced by Configure().

virtual Bool_t AliBaseAODTask::Event ( AliAODEvent aod)
pure virtual

Process a single event

Parameters
aodInput event
Returns
true on success

Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, and AliFMDEventPlaneTask.

Referenced by UserExec().

virtual Bool_t AliBaseAODTask::Finalize ( )
pure virtual

Do the final analysis on the merged output.

Returns
true on success

Implemented in AliBasedNdetaTask, AliBaseMultTask, AliForwardMultDists, AliFMDEventPlaneTask, AliForwarddNdetaTask, and AliMCTruthdNdetaTask.

Referenced by Terminate().

AliAODCentralMult * AliBaseAODTask::GetCentral ( const AliAODEvent aod,
Bool_t  mc = false,
Bool_t  verb = true 
)
protected

Get the central object from the AOD

Parameters
aodAOD event
mcIf true, for MC
verbIf truem be verbose
Returns
Central object or null

Definition at line 452 of file AliBaseAODTask.cxx.

Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), and AliCentraldNdetaTask::GetHistogram().

Double_t AliBaseAODTask::GetCentrality ( AliAODEvent event,
AliAODForwardMult forward,
Int_t qual 
)
protectedvirtual

Get the centrality. The trigger mask of the forward object is not modified

Parameters
eventOur event
forwardOur FMD event
qualOn return, the quality flag
Returns
The centrality percentage

Reimplemented in AliBasedNdetaTask.

Definition at line 397 of file AliBaseAODTask.cxx.

Referenced by GetCentrality(), AliBasedNdetaTask::GetCentrality(), and UserExec().

Double_t AliBaseAODTask::GetCentrality ( AliAODEvent event,
AliAODForwardMult forward 
)
protectedvirtual

Get the centrality. If the quality is bad, set the corresponding bit on the forward object.

Parameters
eventOur event
forwardOur FMD event

Reimplemented in AliBasedNdetaTask.

Definition at line 410 of file AliBaseAODTask.cxx.

AliAODForwardMult * AliBaseAODTask::GetForward ( const AliAODEvent aod,
Bool_t  mc = false,
Bool_t  verb = true 
)
protected

Get the forward object from the AOD

Parameters
aodAOD event
mcIf true, for MC
verbIf truem be verbose
Returns
Forward object or null

Definition at line 369 of file AliBaseAODTask.cxx.

Referenced by AliFMDEventPlaneTask::Event(), AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliBasedNdetaTask::Event(), AliForwarddNdetaTask::GetHistogram(), AliForwardMultDists::PreData(), and UserExec().

Bool_t AliBaseAODTask::GetIpXY ( AliAODEvent aod,
Double_t x,
Double_t y 
)
protectedvirtual

Get the IPs (x,y) coordinates

Parameters
aodInput event
xOn return, the X coordinate
yOn return, the Y coordinate
Returns
true on success, false otherwise

Definition at line 428 of file AliBaseAODTask.cxx.

Referenced by UserExec().

Double_t AliBaseAODTask::GetIpZ ( AliAODEvent event,
AliAODForwardMult forward 
)
protectedvirtual

Get the Z coordinate of the interaction point

Parameters
eventOur event
forwardOur FMD event
Returns
The z coordinate of the interaction point

Definition at line 421 of file AliBaseAODTask.cxx.

Referenced by UserExec().

AliAODMultEventClass * AliBaseAODTask::GetMultClass ( const AliAODEvent aod,
Bool_t  verb = true 
)
protected

Get the Mult event class object from the AOD

Parameters
aodAOD event
verbIf truem be verbose
Returns
Forward object or null

Definition at line 384 of file AliBaseAODTask.cxx.

TH2D * AliBaseAODTask::GetPrimary ( const AliAODEvent aod)
protected

Get the histogram of primary particles

Parameters
aodAOD event
Returns
Pointer to primary particles, or null

Definition at line 467 of file AliBaseAODTask.cxx.

Referenced by AliForwardMultDists::Event(), AliBaseMultTask::Event(), AliMCTruthdNdetaTask::GetHistogram(), and AliForwardMultDists::PreData().

Bool_t AliBaseAODTask::HasCentrality ( ) const
inlineprotected

Check if we have centrality bins defined

Returns
true if we have one or more centrality bins

Definition at line 298 of file AliBaseAODTask.h.

Referenced by AliBasedNdetaTask::Book(), CheckEvent(), AliBasedNdetaTask::Event(), AliMCTruthdNdetaTask::Finalize(), AliBasedNdetaTask::Finalize(), GetCentrality(), AliBasedNdetaTask::InitializeCentBins(), and Print().

virtual void AliBaseAODTask::Init ( )
inlineprotectedvirtual

Initialise on master - does nothing

Definition at line 213 of file AliBaseAODTask.h.

AliBaseAODTask& AliBaseAODTask::operator= ( const AliBaseAODTask o)
protected

Assignment operatoer - not defined

Parameters
oObject to assign from
Returns
reference to this object
virtual Bool_t AliBaseAODTask::PostEvent ( )
inlinevirtual

Called after processing a single event - should not do anything but clear data, etc.

Returns
true on success

Definition at line 171 of file AliBaseAODTask.h.

Referenced by UserExec().

virtual Bool_t AliBaseAODTask::PreData ( )
inlinevirtual

Called after reading in the first event. Here we can setup stuff depending on the conditions we're running under.

Returns
true on success. If this returns false, then we turn the task into a zombie and we do no more processing.

Reimplemented in AliForwardMultDists.

Definition at line 149 of file AliBaseAODTask.h.

Referenced by UserExec().

virtual Bool_t AliBaseAODTask::PreEvent ( )
inlinevirtual

Called before processing a single event - should not do anything but clear data, etc.

Returns
true on success

Reimplemented in AliBasedNdetaTask, AliBaseMultTask, and AliForwardMultDists.

Definition at line 156 of file AliBaseAODTask.h.

Referenced by UserExec().

void AliBaseAODTask::Print ( Option_t option = "") const

Print information

Parameters
optionNot used

Print this task

Parameters
optionNot used

Definition at line 600 of file AliBaseAODTask.cxx.

Referenced by AliForwardMultDists::Print(), AliBasedNdetaTask::Print(), and UserCreateOutputObjects().

void AliBaseAODTask::SetCentralityAxis ( UShort_t  n,
Short_t bins 
)

Set the centrality bins to use.

UShort_t bins[] = { 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
task->SetCentralityBins(11, bins);
Parameters
nNumber of bins (elements in bins minus 1)
binsBin limits

Definition at line 136 of file AliBaseAODTask.cxx.

Referenced by AddTaskMultDistributions(), and SetCentralityAxis().

void AliBaseAODTask::SetCentralityAxis ( UShort_t  n,
Double_t bins 
)

Set the centrality bins to use.

UShort_t bins[] = { 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
task->SetCentralityBins(11, bins);
Parameters
nNumber of bins (elements in bins minus 1)
binsBin limits

Definition at line 214 of file AliBaseAODTask.cxx.

void AliBaseAODTask::SetCentralityAxis ( Short_t  low,
Short_t  high 
)

Define a single centrality bin from low to high

Parameters
lowLower bound
highUpper bound

Definition at line 221 of file AliBaseAODTask.cxx.

void AliBaseAODTask::SetCentralityAxis ( const char *  bins)

Set the centrality axis to use based on a string. The bin edges are separated by colons.

Parameters
binsString of bin edges

Definition at line 184 of file AliBaseAODTask.cxx.

void AliBaseAODTask::SetFilterMask ( UInt_t  mask)

Set mask of events to filter out

Parameters
maskThe fitler mask

Definition at line 129 of file AliBaseAODTask.cxx.

Referenced by SetFilterMask().

void AliBaseAODTask::SetFilterMask ( const char *  mask)

Definition at line 116 of file AliBaseAODTask.cxx.

void AliBaseAODTask::SetIpZMax ( Double_t  max)
inline

Definition at line 54 of file AliBaseAODTask.h.

void AliBaseAODTask::SetIpZMin ( Double_t  min)
inline

Definition at line 53 of file AliBaseAODTask.h.

void AliBaseAODTask::SetIpZRange ( Double_t  min,
Double_t  max 
)
inline

Set the vertex range to use

Parameters
minMinimum (in centermeter)
maxMaximum (in centermeter)

Definition at line 52 of file AliBaseAODTask.h.

Referenced by AddTaskCreateRespMatr(), AddTaskForwardMultDists(), AddTaskMultDistributions(), AddTaskMultDists(), and AddTaskTriggerCorrection().

void AliBaseAODTask::SetTriggerMask ( UInt_t  mask)

Set the trigger maskl

Parameters
maskTrigger mask

Definition at line 109 of file AliBaseAODTask.cxx.

Referenced by AddTaskCreateRespMatr(), AddTaskForwardMultDists(), AddTaskMultDistributions(), AddTaskMultDists(), AddTaskTriggerCorrection(), and SetTriggerMask().

void AliBaseAODTask::SetTriggerMask ( const char *  mask)

Set the trigger mask

Parameters
masktrigger mask

Definition at line 96 of file AliBaseAODTask.cxx.

void AliBaseAODTask::StoreInformation ( AliAODForwardMult forward)
protectedvirtual

Store information about the job on output

Parameters
forwardForward object

Definition at line 547 of file AliBaseAODTask.cxx.

Referenced by UserExec().

void AliBaseAODTask::Terminate ( Option_t option)
protectedvirtual

Called at end of event processing.

This is called once in the master

Parameters
optionNot used

Definition at line 555 of file AliBaseAODTask.cxx.

void AliBaseAODTask::UserCreateOutputObjects ( )
protectedvirtual

Create output objects.

This is called once per slave process

Definition at line 276 of file AliBaseAODTask.cxx.

void AliBaseAODTask::UserExec ( Option_t option)
protectedvirtual

Process a single event

Parameters
optionNot used

Definition at line 477 of file AliBaseAODTask.cxx.

Member Data Documentation

TH1D* AliBaseAODTask::fAccCent
protected

Definition at line 367 of file AliBaseAODTask.h.

Referenced by AliBasedNdetaTask::Book(), UserCreateOutputObjects(), and UserExec().

TH1D* AliBaseAODTask::fAccVertex
protected

Definition at line 365 of file AliBaseAODTask.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH2D* AliBaseAODTask::fAccVertexXY
protected

Definition at line 366 of file AliBaseAODTask.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TH1D* AliBaseAODTask::fCent
protected
Bool_t AliBaseAODTask::fCloneList
protected

Definition at line 369 of file AliBaseAODTask.h.

Referenced by Terminate().

TH1I* AliBaseAODTask::fEventStatus
protected
UInt_t AliBaseAODTask::fFilterMask
protected
Bool_t AliBaseAODTask::fFirstEvent
protected

Definition at line 368 of file AliBaseAODTask.h.

Referenced by UserExec().

TH1D* AliBaseAODTask::fVertex
protected

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