![]() |
AliPhysics
96866e8 (96866e8)
|
#include <AliBaseESDTask.h>
Public Member Functions | |
AliBaseESDTask () | |
AliBaseESDTask (const char *name, const char *title, AliCorrectionManagerBase *manager) | |
virtual Bool_t | Connect (const char *sumFile=0, const char *resFile=0) |
virtual Bool_t | Connect (const char *sumFile, const char *resFile, Bool_t old) |
virtual Bool_t | Setup () |
virtual Bool_t | Book ()=0 |
virtual void | PreCorrections (const AliESDEvent *esd) |
virtual Bool_t | PreData (const TAxis &vertex, const TAxis &eta) |
virtual Bool_t | PreEvent () |
virtual Bool_t | Event (AliESDEvent &esd)=0 |
virtual Bool_t | PostEvent () |
virtual Bool_t | Finalize () |
Utility methods | |
virtual void | Print (Option_t *option="") const |
virtual void | SetDebug (Int_t dbg) |
virtual void | SetDebugLevel (Int_t dbg) |
void | SetIPzMethod (const char *str) |
Access sub-components | |
virtual Bool_t | Configure (const char *macro="-default-") |
virtual AliFMDEventInspector & | GetEventInspector ()=0 |
virtual const AliFMDEventInspector & | GetEventInspector () const =0 |
Protected Member Functions | |
AliBaseESDTask (const AliBaseESDTask &o) | |
AliBaseESDTask & | operator= (const AliBaseESDTask &o) |
virtual Bool_t | IsMC () const |
virtual TAxis * | DefaultEtaAxis () const |
virtual TAxis * | DefaultVertexAxis () const |
virtual AliCorrectionManagerBase * | GetManager () const |
virtual AliCorrectionManagerBase * | GetManager () |
virtual void | CreateBranches (AliAODHandler *) |
virtual void | MarkEventForStore () const |
virtual Bool_t | CheckCorrections (UInt_t what) const |
virtual Bool_t | ReadCorrections (const TAxis *&pe, const TAxis *&pv, Bool_t mc=false, Bool_t sat=false) |
virtual AliESDEvent * | GetESDEvent () |
virtual Bool_t | StoreTrainName (Int_t no) |
virtual const char * | DefaultConfig () const |
Task interface methods | |
void | LocalInit () |
void | UserCreateOutputObjects () |
void | UserExec (Option_t *option) |
void | Terminate (Option_t *option) |
Protected Attributes | |
Bool_t | fFirstEvent |
TList * | fList |
TList * | fResults |
UInt_t | fNeededCorrections |
UInt_t | fExtraCorrections |
Bool_t | fCloneList |
Private Attributes | |
AliCorrectionManagerBase * | fCorrManager |
Base class for tasks that analyse the FMD ESD. This wraps a single-event analysis task, and provides a modified interface to implement for the sub-classes:
Definition at line 78 of file AliBaseESDTask.h.
AliBaseESDTask::AliBaseESDTask | ( | ) |
Default (I/O) constructor - do not use directly
Definition at line 20 of file AliBaseESDTask.cxx.
Referenced by SetDebugLevel().
AliBaseESDTask::AliBaseESDTask | ( | const char * | name, |
const char * | title, | ||
AliCorrectionManagerBase * | manager | ||
) |
User constructor
name | Name of the task |
title | Class name used in configuration script |
manager | Correction manager |
Definition at line 32 of file AliBaseESDTask.cxx.
|
protected |
Copy constructor - left undefined
o | Object to copy from |
|
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.
Implemented in AliForwardMultiplicityBase, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliForwardMCMultiplicityTask, AliFMDEnergyFitterTask, AliForwardQATask, ELossTimeTask, AliBaseMCCorrectionsTask, AliCentralMultiplicityTask, and AliCentralMCMultiplicityTask.
Referenced by Setup(), and UserCreateOutputObjects().
Check if all needed corrections are there and accounted for. If not, do a Fatal exit
what | Which corrections is needed |
Definition at line 319 of file AliBaseESDTask.cxx.
Referenced by CreateBranches(), and ReadCorrections().
|
virtual |
Configure this task via a macro
macro | Macro to configure va |
Definition at line 156 of file AliBaseESDTask.cxx.
Referenced by AddTaskCentralMult(), AddTaskFMDELoss(), AddTaskForwardMult(), and SetDebugLevel().
|
inlinevirtual |
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.
sumFile | Output file for sums |
resFile | Output file for sums |
Definition at line 106 of file AliBaseESDTask.h.
Referenced by AddTaskCentralMCCorr(), AddTaskCentralMult(), AddTaskFMDELoss(), AddTaskFMDMCHit(), AddTaskFMDMCTracks(), AddTaskForwardMCCorr(), AddTaskForwardMult(), AddTaskForwardQA(), and ELossTimeTask::Create().
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.
sumFile | Output file for sums |
resFile | Output file for sums |
old | Use old names |
Definition at line 60 of file AliBaseESDTask.cxx.
|
inlineprotectedvirtual |
Create output branches - called from UserCreateOutputObjects
Reimplemented in AliForwardMultiplicityBase, AliForwardMCMultiplicityTask, AliCentralMultiplicityTask, and AliCentralMCMultiplicityTask.
Definition at line 330 of file AliBaseESDTask.h.
Referenced by UserCreateOutputObjects().
|
inlineprotectedvirtual |
Get default configuration script name
Reimplemented in AliFMDEnergyFitterTask.
Definition at line 378 of file AliBaseESDTask.h.
Referenced by Configure().
|
protectedvirtual |
Set the default eta axis to use in case we didn't get one from the read-in corretions. Override this if the sub class should go on even without a valid eta axis from the corrections (e.g. QA task)
Reimplemented in AliForwardMultiplicityBase, AliCentralMultiplicityTask, AliBaseMCCorrectionsTask, AliFMDEnergyFitterTask, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, and AliForwardQATask.
Definition at line 112 of file AliBaseESDTask.cxx.
Referenced by IsMC(), and ReadCorrections().
|
protectedvirtual |
Set the default eta axis to use in case we didn't get one from the read-in corretions. Override this if the sub class should go on even without a valid eta axis from the corrections (e.g. QA task)
Reimplemented in AliForwardMultiplicityBase, AliCentralMultiplicityTask, AliBaseMCCorrectionsTask, AliFMDEnergyFitterTask, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, and AliForwardQATask.
Definition at line 119 of file AliBaseESDTask.cxx.
Referenced by IsMC(), and ReadCorrections().
|
pure virtual |
Process a single event
esd | Input event |
Implemented in ELossTimeTask, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliFMDEnergyFitterTask, AliForwardQATask, AliCentralMultiplicityTask, AliCentralMCMultiplicityTask, AliForwardMCMultiplicityTask, AliForwardMultiplicityTask, and AliBaseMCCorrectionsTask.
Referenced by PreEvent(), and UserExec().
|
inlinevirtual |
Do the final analysis on the merged output.
Reimplemented in ELossTimeTask, AliForwardMultiplicityBase, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliFMDEnergyFitterTask, AliForwardQATask, AliCentralMultiplicityTask, and AliBaseMCCorrectionsTask.
Definition at line 186 of file AliBaseESDTask.h.
Referenced by Terminate().
|
protectedvirtual |
Get the ESD event. IF this is the first event, initialise
Definition at line 403 of file AliBaseESDTask.cxx.
Referenced by CreateBranches(), and UserExec().
|
pure virtual |
Get a reference to the event inspector. User must override this to return proper object
Implemented in ELossTimeTask, AliBaseMCCorrectionsTask, AliForwardQATask, AliCentralMultiplicityTask, AliFMDEnergyFitterTask, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliForwardMCMultiplicityTask, and AliForwardMultiplicityTask.
Referenced by AliForwardMultiplicityBase::Book(), ForwardAODConfig(), GetESDEvent(), AliForwardMultiplicityBase::MakeSimpledNdeta(), AliForwardMultiplicityBase::PreData(), Print(), ReadCorrections(), SetDebug(), SetDebugLevel(), SetIPzMethod(), TunedConfig(), and UserCreateOutputObjects().
|
pure virtual |
Get a reference to the event inspector. User must override this to return proper object
Implemented in ELossTimeTask, AliForwardMCMultiplicityTask, AliForwardQATask, AliBaseMCCorrectionsTask, AliForwardMultiplicityTask, AliCentralMultiplicityTask, AliFMDEnergyFitterTask, AliFMDMCHitEnergyFitterTask, and AliFMDMCTrackInspectorTask.
|
inlineprotectedvirtual |
Get the correction mananger. Derived class should overload this to return the proper object.
Definition at line 289 of file AliBaseESDTask.h.
Referenced by CheckCorrections(), CompareCentralSecMaps(), Print(), and ReadCorrections().
|
inlineprotectedvirtual |
Get the correction mananger. Derived class should overload this to return the proper object.
Definition at line 296 of file AliBaseESDTask.h.
|
inlineprotectedvirtual |
Evaluate wether this is for MC. User class can override this
Reimplemented in AliForwardQATask.
Definition at line 264 of file AliBaseESDTask.h.
Referenced by GetESDEvent().
|
protected |
|
protectedvirtual |
Mark this event as one to store in the AOD
Definition at line 476 of file AliBaseESDTask.cxx.
Referenced by CreateBranches(), AliForwardMultiplicityTask::Event(), AliForwardMCMultiplicityTask::Event(), AliCentralMCMultiplicityTask::Event(), and AliCentralMultiplicityTask::Event().
|
protected |
Assignment operator - left undefined
o | Object to assign from |
Referenced by SetDebugLevel().
|
inlinevirtual |
Called after processing a single event - should not do anything but clear data, etc.
Reimplemented in AliForwardMultiplicityBase, and AliForwardMCMultiplicityTask.
Definition at line 180 of file AliBaseESDTask.h.
Referenced by UserExec().
|
inlinevirtual |
Called on first event before reading corrections. Here, the user class can do additional checking to see if the some (more or less) corrections are needed.
esd | Event |
Reimplemented in AliFMDEnergyFitterTask, and AliForwardMultiplicityTask.
Definition at line 402 of file AliBaseESDTask.h.
Referenced by GetESDEvent(), and Setup().
Called after reading in the first event. Here we can setup stuff depending on the conditions we're running under.
Reimplemented in AliForwardMultiplicityBase, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliFMDEnergyFitterTask, AliCentralMultiplicityTask, AliForwardQATask, and AliCentralMCMultiplicityTask.
Definition at line 311 of file AliBaseESDTask.cxx.
Referenced by GetESDEvent(), and Setup().
|
inlinevirtual |
Called before processing a single event - should not do anything but clear data, etc.
Reimplemented in AliForwardQATask, AliCentralMultiplicityTask, AliCentralMCMultiplicityTask, AliForwardMCMultiplicityTask, AliForwardMultiplicityTask, and AliForwardMCCorrectionsTask.
Definition at line 165 of file AliBaseESDTask.h.
Referenced by UserExec().
|
virtual |
Print information
option | Not used |
Reimplemented in AliForwardQATask, AliForwardMultiplicityBase, AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliFMDEnergyFitterTask, AliCentralMultiplicityTask, AliCentralMCMultiplicityTask, AliBaseMCCorrectionsTask, AliForwardMCCorrectionsTask, and AliCentralMCCorrectionsTask.
Definition at line 499 of file AliBaseESDTask.cxx.
Referenced by Finalize(), GetESDEvent(), AliBaseMCCorrectionsTask::Print(), AliCentralMultiplicityTask::Print(), AliFMDEnergyFitterTask::Print(), AliFMDMCTrackInspectorTask::Print(), AliFMDMCHitEnergyFitterTask::Print(), AliForwardMultiplicityBase::Print(), and AliForwardQATask::Print().
|
protectedvirtual |
Read corrections
pe | On return, the eta axis |
pv | On return ,the vertex axis |
mc | True assume MC input |
sat | True if we need for satellite interactions too |
Definition at line 346 of file AliBaseESDTask.cxx.
Referenced by CreateBranches(), and GetESDEvent().
|
virtual |
Set the debug level
dbg |
Reimplemented in AliForwardMultiplicityBase, AliForwardQATask, AliFMDEnergyFitterTask, AliFMDMCHitEnergyFitterTask, and AliFMDMCTrackInspectorTask.
Definition at line 126 of file AliBaseESDTask.cxx.
Referenced by Finalize(), AliFMDMCTrackInspectorTask::SetDebug(), AliFMDMCHitEnergyFitterTask::SetDebug(), AliFMDEnergyFitterTask::SetDebug(), AliForwardQATask::SetDebug(), AliForwardMultiplicityBase::SetDebug(), and SetDebugLevel().
|
inlinevirtual |
Overload super class method for setting debug level to call our SetDebug member function.
dbg | Debug level (0: no output, 1: essentials, 3: a whole lot) |
Definition at line 209 of file AliBaseESDTask.h.
void AliBaseESDTask::SetIPzMethod | ( | const char * | str | ) |
Definition at line 138 of file AliBaseESDTask.cxx.
Referenced by SetDebugLevel(), and AliBaseMCCorrectionsTask::SetSatellite().
|
inlinevirtual |
Called when initializing the train
Reimplemented in AliFMDMCHitEnergyFitterTask, AliFMDMCTrackInspectorTask, AliFMDEnergyFitterTask, and AliForwardQATask.
Definition at line 130 of file AliBaseESDTask.h.
Referenced by LocalInit().
Store the analysis trains name on the output pointed to by slot number no.
no | Output slot |
Definition at line 250 of file AliBaseESDTask.cxx.
Referenced by CreateBranches(), and Terminate().
|
protected |
End of job
option | Not used |
Definition at line 273 of file AliBaseESDTask.cxx.
Referenced by GetManager().
|
protected |
Create output objects
Definition at line 195 of file AliBaseESDTask.cxx.
Referenced by GetManager().
|
protected |
Process each event
option | Not used |
Definition at line 222 of file AliBaseESDTask.cxx.
Referenced by GetManager().
|
protected |
Definition at line 389 of file AliBaseESDTask.h.
Referenced by AliFMDEnergyFitterTask::AliFMDEnergyFitterTask(), AliFMDMCHitEnergyFitterTask::AliFMDMCHitEnergyFitterTask(), AliFMDMCTrackInspectorTask::AliFMDMCTrackInspectorTask(), AliForwardQATask::AliForwardQATask(), and Terminate().
|
private |
A pointer to the corrections manager. This is here to make the corrections manager persistent - that is, when we write the analysis train to a file (as done in PROOF) we should also write down the corrections mananger. This pointer ensures that.
Definition at line 398 of file AliBaseESDTask.h.
Referenced by AliBaseESDTask(), and GetManager().
|
protected |
Definition at line 388 of file AliBaseESDTask.h.
Referenced by AliBaseMCCorrectionsTask::Book(), ELossTimeTask::Book(), AliForwardQATask::Book(), AliFMDEnergyFitterTask::Book(), AliFMDMCTrackInspectorTask::Book(), AliFMDMCHitEnergyFitterTask::Book(), and ReadCorrections().
|
protected |
Definition at line 384 of file AliBaseESDTask.h.
Referenced by AliForwardQATask::Event(), GetESDEvent(), LocalInit(), and AliForwardMCMultiplicityTask::PreEvent().
|
protected |
Definition at line 385 of file AliBaseESDTask.h.
Referenced by AliCentralMCMultiplicityTask::Book(), AliBaseMCCorrectionsTask::Book(), ELossTimeTask::Book(), AliForwardQATask::Book(), AliFMDEnergyFitterTask::Book(), AliFMDMCTrackInspectorTask::Book(), AliFMDMCHitEnergyFitterTask::Book(), AliForwardMultiplicityBase::Book(), AliBaseMCCorrectionsTask::Finalize(), AliCentralMultiplicityTask::Finalize(), AliForwardQATask::Finalize(), AliForwardMultiplicityBase::Finalize(), ELossTimeTask::Finalize(), AliForwardMCCorrectionsTask::FinalizeVtxBin(), AliCentralMCCorrectionsTask::FinalizeVtxBin(), AliForwardMCMultiplicityTask::InitMembers(), AliForwardMultiplicityBase::InitMembers(), AliCentralMultiplicityTask::PreData(), Terminate(), UserCreateOutputObjects(), and UserExec().
|
protected |
Definition at line 387 of file AliBaseESDTask.h.
Referenced by AliBaseMCCorrectionsTask::Book(), AliCentralMultiplicityTask::Book(), ELossTimeTask::Book(), AliForwardQATask::Book(), AliFMDEnergyFitterTask::Book(), AliFMDMCTrackInspectorTask::Book(), AliFMDMCHitEnergyFitterTask::Book(), AliForwardMultiplicityBase::Book(), AliForwardMultiplicityTask::PreCorrections(), AliFMDEnergyFitterTask::PreCorrections(), AliForwardMultiplicityBase::PreData(), and ReadCorrections().
|
protected |
Definition at line 386 of file AliBaseESDTask.h.
Referenced by AliBaseMCCorrectionsTask::Finalize(), AliCentralMultiplicityTask::Finalize(), AliFMDEnergyFitterTask::Finalize(), AliForwardQATask::Finalize(), AliFMDMCTrackInspectorTask::Finalize(), AliFMDMCHitEnergyFitterTask::Finalize(), AliForwardMultiplicityBase::Finalize(), ELossTimeTask::Finalize(), AliForwardMCCorrectionsTask::FinalizeVtxBin(), AliCentralMCCorrectionsTask::FinalizeVtxBin(), and Terminate().