AliPhysics  1811c8f (1811c8f)

#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)
 

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

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(), and SetCopyZDC().

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 SetCopyZDC(), and 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

Definition at line 33 of file AliCopyHeaderTask.cxx.

Referenced by ~AliCopyHeaderTask().

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(), and LocalInit().

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.

Referenced by LocalInit().

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.

Referenced by ~AliCopyHeaderTask().

void AliCopyHeaderTask::UserExec ( Option_t option)
virtual

Called on each event.

Parameters
optionNot used

Definition at line 116 of file AliCopyHeaderTask.cxx.

Referenced by LocalInit().

Member Data Documentation

Bool_t AliCopyHeaderTask::fCalculateRefMult
protected

Definition at line 149 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCalculateRefMult(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyAD
protected

Definition at line 153 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCopyAD(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyCentrality
protected

Definition at line 150 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCopyCentrality(), and UserCreateOutputObjects().

Bool_t AliCopyHeaderTask::fCopyTracklets
protected

Definition at line 151 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCopyTracklets(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyV0
protected

Definition at line 152 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCopyV0(), and UserExec().

Bool_t AliCopyHeaderTask::fCopyZDC
protected

Definition at line 154 of file AliCopyHeaderTask.h.

Referenced by operator=(), SetCopyZDC(), and UserExec().

AliMultSelection* AliCopyHeaderTask::fMultSelection
protected

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