AliPhysics  914d8ff (914d8ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliCopyHeaderTask Class Reference

#include <AliCopyHeaderTask.h>

Inheritance diagram for AliCopyHeaderTask:

Public Member Functions

 AliCopyHeaderTask (const char *name="header")
 
 AliCopyHeaderTask (const AliCopyHeaderTask &other)
 
virtual ~AliCopyHeaderTask ()
 
AliCopyHeaderTaskoperator= (const AliCopyHeaderTask &other)
 
virtual void SetCopyOptions (const TString &what)
 
virtual void SetCalculateRefMult (Bool_t calc=true)
 
virtual void SetCopyCentrality (Bool_t copy=true)
 
virtual void SetCopyTracklets (Bool_t copy=true)
 
virtual void SetCopyV0 (Bool_t copy)
 
virtual void SetCopyAD (Bool_t copy)
 
virtual void SetCopyZDC (Bool_t copy)
 
virtual Bool_t Connect ()
 
Implementation of interface methods
virtual void UserCreateOutputObjects ()
 
virtual void Init ()
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 

Protected Member Functions

void CopyVertex (AliAODEvent &aod, const AliESDVertex *vtx, Int_t type)
 
 ClassDef (AliCopyHeaderTask, 3)
 

Protected Attributes

Bool_t fCalculateRefMult
 
Bool_t fCopyCentrality
 
Bool_t fCopyTracklets
 
Bool_t fCopyV0
 
Bool_t fCopyAD
 
Bool_t fCopyZDC
 
AliMultSelection * fMultSelection
 

Detailed Description

Task to copy header from ESD to AOD

Definition at line 22 of file AliCopyHeaderTask.h.

Constructor & Destructor Documentation

AliCopyHeaderTask::AliCopyHeaderTask ( const char *  name = "header")
inline

Constructor

Parameters
nameName

Definition at line 30 of file AliCopyHeaderTask.h.

AliCopyHeaderTask::AliCopyHeaderTask ( const AliCopyHeaderTask other)

Copy constructor

Parameters
otherObject to copy from

Definition at line 53 of file AliCopyHeaderTask.cxx.

virtual AliCopyHeaderTask::~AliCopyHeaderTask ( )
inlinevirtual

Destructor

Definition at line 51 of file AliCopyHeaderTask.h.

Member Function Documentation

AliCopyHeaderTask::ClassDef ( AliCopyHeaderTask  ,
 
)
protected
Bool_t AliCopyHeaderTask::Connect ( )
virtual

Connect this task to the train.

Returns
true on success.

Definition at line 375 of file AliCopyHeaderTask.cxx.

Referenced by AddTaskCopyHeader().

void AliCopyHeaderTask::CopyVertex ( AliAODEvent aod,
const AliESDVertex *  vtx,
Int_t  type 
)
protected

Copy an ESD primary vertex to the AOD

Parameters
aodWhere to copy to
vtxVertex (if any) to copy to
typeType of vertex

Definition at line 336 of file AliCopyHeaderTask.cxx.

Referenced by UserExec().

virtual void AliCopyHeaderTask::Init ( )
inlinevirtual

Called at the beginning of the master job

Definition at line 74 of file AliCopyHeaderTask.h.

Referenced by LocalInit().

virtual void AliCopyHeaderTask::LocalInit ( )
inlinevirtual

Called at start of each (Grid/Proof) sub-job

Definition at line 78 of file AliCopyHeaderTask.h.

AliCopyHeaderTask& AliCopyHeaderTask::operator= ( const AliCopyHeaderTask other)

Assignmen operator

Parameters
otherObject to assing from
Returns
Reference to this object
virtual void AliCopyHeaderTask::SetCalculateRefMult ( Bool_t  calc = true)
inlinevirtual

Set whether to calculate the reference multiplicity. This is optional because the calculation could be processor/memory heavy.

Parameters
calcIf true, calculate the reference multiplicity (number of tracks and tracklets) in \(|\eta|<0.5\) and \(|\eta|<0.8\).

Definition at line 101 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

virtual void AliCopyHeaderTask::SetCopyAD ( Bool_t  copy)
inlinevirtual

Whether to copy AD data to output

Parameters
copyIf true, copy AD data to output

Definition at line 126 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

virtual void AliCopyHeaderTask::SetCopyCentrality ( Bool_t  copy = true)
inlinevirtual

Set whether to copy centrality information (from AliMultSelectionTask) to the output.

Parameters
copyIf true, copy centrality object to separate branch on AOD

Definition at line 108 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

void AliCopyHeaderTask::SetCopyOptions ( const TString what)
virtual

Definition at line 69 of file AliCopyHeaderTask.cxx.

Referenced by AddTaskCopyHeader().

virtual void AliCopyHeaderTask::SetCopyTracklets ( Bool_t  copy = true)
inlinevirtual

Set whether to copy tracklet information to the output.

Parameters
copyIf true, copy tracklets to the AOD

Definition at line 114 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

virtual void AliCopyHeaderTask::SetCopyV0 ( Bool_t  copy)
inlinevirtual

Whether to copy V0 data to output

Parameters
copyIf true, copy V0 data to output

Definition at line 120 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

virtual void AliCopyHeaderTask::SetCopyZDC ( Bool_t  copy)
inlinevirtual

Whether to copy ZDC data to output

Parameters
copyIf true, copy ZDC data to output

Definition at line 132 of file AliCopyHeaderTask.h.

Referenced by SetCopyOptions().

void AliCopyHeaderTask::Terminate ( Option_t option)
virtual

Called at the end of processing on the merged output.

Parameters
optionNot used

Definition at line 368 of file AliCopyHeaderTask.cxx.

void AliCopyHeaderTask::UserCreateOutputObjects ( )
virtual

Create output objects. Called at the beginning of each (Grid/Proof) sub-job.

Definition at line 99 of file AliCopyHeaderTask.cxx.

void AliCopyHeaderTask::UserExec ( Option_t option)
virtual

Called on each event.

Parameters
optionNot used

Definition at line 116 of file AliCopyHeaderTask.cxx.

Member Data Documentation

Bool_t AliCopyHeaderTask::fCalculateRefMult
protected

Definition at line 149 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCalculateRefMult(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyAD
protected

Definition at line 153 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCopyAD(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyCentrality
protected

Definition at line 150 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCopyCentrality(), and UserCreateOutputObjects().

Bool_t AliCopyHeaderTask::fCopyTracklets
protected

Definition at line 151 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCopyTracklets(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyV0
protected

Definition at line 152 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCopyV0(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyZDC
protected

Definition at line 154 of file AliCopyHeaderTask.h.

Referenced by ClassImp(), SetCopyZDC(), and UserExec().

AliMultSelection* AliCopyHeaderTask::fMultSelection
protected

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