AliPhysics  95775ff (95775ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBaseMCCorrectionsTask Class Referenceabstract

#include <AliBaseMCCorrectionsTask.h>

Inheritance diagram for AliBaseMCCorrectionsTask:

Classes

struct  VtxBin
 

Public Member Functions

 AliBaseMCCorrectionsTask (const char *name, AliCorrectionManagerBase *m)
 
 AliBaseMCCorrectionsTask ()
 
void Print (Option_t *option="") const
 
void SetVertexAxis (Int_t nBins, Double_t vzMin, Double_t vzMax=-1000000)
 
void SetVertexAxis (const TAxis &axis)
 
void SetEtaAxis (Int_t nBins, Double_t etaMin, Double_t etaMax=-1000000)
 
void SetEtaAxis (const TAxis &axis)
 
void SetSatellite (Bool_t sat)
 
virtual AliBaseMCTrackDensityGetTrackDensity ()=0
 
virtual const
AliBaseMCTrackDensity
GetTrackDensity () const =0
 
AliFMDEventInspectorGetEventInspector ()
 
const AliFMDEventInspectorGetEventInspector () const
 
void SetUseESDVertex (Bool_t use)
 
void SetAfterEventSel (Bool_t use)
 
Interface methods
virtual Bool_t Book ()
 
virtual Bool_t Event (AliESDEvent &esd)
 
virtual Bool_t Finalize ()
 
- Public Member Functions inherited from AliBaseESDTask
 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 void PreCorrections (const AliESDEvent *esd)
 
virtual Bool_t PreData (const TAxis &vertex, const TAxis &eta)
 
virtual Bool_t PreEvent ()
 
virtual Bool_t PostEvent ()
 
virtual void SetDebug (Int_t dbg)
 
virtual void SetDebugLevel (Int_t dbg)
 
void SetIPzMethod (const char *str)
 
virtual Bool_t Configure (const char *macro="-default-")
 

Protected Member Functions

 AliBaseMCCorrectionsTask (const AliBaseMCCorrectionsTask &o)
 
AliBaseMCCorrectionsTaskoperator= (const AliBaseMCCorrectionsTask &o)
 
virtual TAxisDefaultVertexAxis () const
 
virtual TAxisDefaultEtaAxis () const
 
virtual VtxBinCreateVtxBin (Double_t low, Double_t high)=0
 
virtual Bool_t ProcessESD (const AliESDEvent &esd, const AliMCEvent &mc, VtxBin &bin, const TVector3 &ip)=0
 
virtual void CreateCorrections (TList *results)=0
 
virtual Bool_t FinalizeVtxBin (VtxBin *bin, UShort_t iVz)=0
 
void DefineBins (TList *list)
 
- Protected Member Functions inherited from AliBaseESDTask
 AliBaseESDTask (const AliBaseESDTask &o)
 
AliBaseESDTaskoperator= (const AliBaseESDTask &o)
 
virtual Bool_t IsMC () const
 
virtual AliCorrectionManagerBaseGetManager () const
 
virtual AliCorrectionManagerBaseGetManager ()
 
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 AliESDEventGetESDEvent ()
 
virtual const char * DefaultConfig () const
 
void LocalInit ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
void Terminate (Option_t *option)
 

Protected Attributes

AliFMDMCEventInspector fInspector
 
TObjArrayfVtxBins
 
TH1IfHEvents
 
TH1IfHEventsTr
 
TH1IfHEventsTrVtx
 
TAxis fVtxAxis
 
TAxis fEtaAxis
 
Bool_t fUseESDVertex
 
Bool_t fAfterEventSel
 
- Protected Attributes inherited from AliBaseESDTask
Bool_t fFirstEvent
 
TListfList
 
TListfResults
 
UInt_t fNeededCorrections
 
UInt_t fExtraCorrections
 
Bool_t fCloneList
 

Detailed Description

Calculate the corrections in the base regions

Inputs:
Outputs:
  • AliAODBaseMult
Histograms
Corrections used

Definition at line 46 of file AliBaseMCCorrectionsTask.h.

Constructor & Destructor Documentation

AliBaseMCCorrectionsTask::AliBaseMCCorrectionsTask ( const char *  name,
AliCorrectionManagerBase m 
)

Constructor

Parameters
nameName of task
mManager

Definition at line 61 of file AliBaseMCCorrectionsTask.cxx.

AliBaseMCCorrectionsTask::AliBaseMCCorrectionsTask ( )

Constructor

Definition at line 40 of file AliBaseMCCorrectionsTask.cxx.

AliBaseMCCorrectionsTask::AliBaseMCCorrectionsTask ( const AliBaseMCCorrectionsTask o)
protected

Copy constructor

Parameters
oObject to copy from

Member Function Documentation

Bool_t AliBaseMCCorrectionsTask::Book ( )
virtual

Create output objects

Returns
true on success

Implements AliBaseESDTask.

Definition at line 190 of file AliBaseMCCorrectionsTask.cxx.

virtual void AliBaseMCCorrectionsTask::CreateCorrections ( TList results)
protectedpure virtual

Create corrections objects and store them in passed list

Parameters
resultsOutput list

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

Referenced by Finalize().

virtual VtxBin* AliBaseMCCorrectionsTask::CreateVtxBin ( Double_t  low,
Double_t  high 
)
protectedpure virtual

Create a vertex bin

Parameters
lowLow cut on \(IP_{z}\)
highHigh cut on \(IP_{z}\)
Returns
Newly create vertex bin

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

Referenced by DefineBins().

virtual TAxis* AliBaseMCCorrectionsTask::DefaultEtaAxis ( ) const
inlineprotectedvirtual

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)

Returns
null

Reimplemented from AliBaseESDTask.

Definition at line 233 of file AliBaseMCCorrectionsTask.h.

virtual TAxis* AliBaseMCCorrectionsTask::DefaultVertexAxis ( ) const
inlineprotectedvirtual

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)

Returns
null

Reimplemented from AliBaseESDTask.

Definition at line 232 of file AliBaseMCCorrectionsTask.h.

void AliBaseMCCorrectionsTask::DefineBins ( TList list)
protected

Define our vertex bins

Parameters
listList to read or add binst from/to

Definition at line 173 of file AliBaseMCCorrectionsTask.cxx.

Referenced by Book(), and Finalize().

Bool_t AliBaseMCCorrectionsTask::Event ( AliESDEvent esd)
virtual

Process each event

Parameters
esdESD event
Returns
true on success

Implements AliBaseESDTask.

Definition at line 261 of file AliBaseMCCorrectionsTask.cxx.

Bool_t AliBaseMCCorrectionsTask::Finalize ( )
virtual

End of job

Returns
true on success

Reimplemented from AliBaseESDTask.

Definition at line 344 of file AliBaseMCCorrectionsTask.cxx.

virtual Bool_t AliBaseMCCorrectionsTask::FinalizeVtxBin ( VtxBin bin,
UShort_t  iVz 
)
protectedpure virtual

Do the final processing of a vertex bin

Parameters
binVertex bin
iVzVertex bin number
Returns
true on successd

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

Referenced by Finalize().

AliFMDEventInspector& AliBaseMCCorrectionsTask::GetEventInspector ( )
inlinevirtual

Get a reference to the event inspector

Returns
Reference to the event inspector

Implements AliBaseESDTask.

Definition at line 146 of file AliBaseMCCorrectionsTask.h.

const AliFMDEventInspector& AliBaseMCCorrectionsTask::GetEventInspector ( ) const
inlinevirtual

Get a reference to the event inspector

Returns
Reference to the event inspector

Implements AliBaseESDTask.

Definition at line 152 of file AliBaseMCCorrectionsTask.h.

virtual AliBaseMCTrackDensity& AliBaseMCCorrectionsTask::GetTrackDensity ( )
pure virtual

Get a reference to the track density calculator

Returns
Reference to the track density calculator

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

Referenced by Book().

virtual const AliBaseMCTrackDensity& AliBaseMCCorrectionsTask::GetTrackDensity ( ) const
pure virtual

Get a reference to the track density calculator

Returns
Reference to the track density calculator

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object
void AliBaseMCCorrectionsTask::Print ( Option_t option = "") const
virtual

Print this object

Parameters
optionNot used

Reimplemented from AliBaseESDTask.

Reimplemented in AliForwardMCCorrectionsTask, and AliCentralMCCorrectionsTask.

Definition at line 366 of file AliBaseMCCorrectionsTask.cxx.

Referenced by AliCentralMCCorrectionsTask::Print(), and AliForwardMCCorrectionsTask::Print().

virtual Bool_t AliBaseMCCorrectionsTask::ProcessESD ( const AliESDEvent esd,
const AliMCEvent &  mc,
VtxBin bin,
const TVector3 &  ip 
)
protectedpure virtual

Process an ESD event

Parameters
esdESD event
mcMC event
binVertex bin
ip\(IP_{z}\)
Returns
true on success

Implemented in AliCentralMCCorrectionsTask, and AliForwardMCCorrectionsTask.

Referenced by Event().

void AliBaseMCCorrectionsTask::SetAfterEventSel ( Bool_t  use)
inline

setter for the fCalculateafterESDeventcuts flag

Definition at line 160 of file AliBaseMCCorrectionsTask.h.

void AliBaseMCCorrectionsTask::SetEtaAxis ( Int_t  nBins,
Double_t  etaMin,
Double_t  etaMax = -1000000 
)

Set the eta axis to use

Parameters
nBinsNumber of bins
etaMinLeast \(\eta\)
etaMaxLargest \(\eta\)

Definition at line 137 of file AliBaseMCCorrectionsTask.cxx.

Referenced by SetEtaAxis(), and SetSatellite().

void AliBaseMCCorrectionsTask::SetEtaAxis ( const TAxis axis)

Set the eta axis to use

Parameters
axisAxis

Definition at line 160 of file AliBaseMCCorrectionsTask.cxx.

void AliBaseMCCorrectionsTask::SetSatellite ( Bool_t  sat)

Set-up for satellite collisions

Parameters
satIf true, set-up for satellites

Definition at line 86 of file AliBaseMCCorrectionsTask.cxx.

Referenced by AddTaskCentralMCCorr(), and AddTaskForwardMCCorr().

void AliBaseMCCorrectionsTask::SetUseESDVertex ( Bool_t  use)
inline

setter for the fUseESDVertexCoordinate flag

Definition at line 156 of file AliBaseMCCorrectionsTask.h.

void AliBaseMCCorrectionsTask::SetVertexAxis ( Int_t  nBins,
Double_t  vzMin,
Double_t  vzMax = -1000000 
)

Set the vertex axis to use

Parameters
nBinsNumber of bins
vzMinLeast \(z\) coordinate of interation point
vzMaxLargest \(z\) coordinate of interation point

Definition at line 95 of file AliBaseMCCorrectionsTask.cxx.

Referenced by SetSatellite(), and SetVertexAxis().

void AliBaseMCCorrectionsTask::SetVertexAxis ( const TAxis axis)

Set the vertex axis to use

Parameters
axisAxis

Definition at line 121 of file AliBaseMCCorrectionsTask.cxx.

Member Data Documentation

Bool_t AliBaseMCCorrectionsTask::fAfterEventSel
protected

Definition at line 289 of file AliBaseMCCorrectionsTask.h.

Referenced by Event(), and SetAfterEventSel().

TH1I* AliBaseMCCorrectionsTask::fHEvents
protected

Definition at line 283 of file AliBaseMCCorrectionsTask.h.

Referenced by Book(), and Event().

TH1I* AliBaseMCCorrectionsTask::fHEventsTr
protected

Definition at line 284 of file AliBaseMCCorrectionsTask.h.

Referenced by Book(), and Event().

TH1I* AliBaseMCCorrectionsTask::fHEventsTrVtx
protected

Definition at line 285 of file AliBaseMCCorrectionsTask.h.

Referenced by Book(), and Event().

AliFMDMCEventInspector AliBaseMCCorrectionsTask::fInspector
protected

Definition at line 280 of file AliBaseMCCorrectionsTask.h.

Referenced by Book(), Event(), and GetEventInspector().

Bool_t AliBaseMCCorrectionsTask::fUseESDVertex
protected

Definition at line 288 of file AliBaseMCCorrectionsTask.h.

Referenced by Event(), and SetUseESDVertex().

TObjArray* AliBaseMCCorrectionsTask::fVtxBins
protected

Definition at line 282 of file AliBaseMCCorrectionsTask.h.

Referenced by DefineBins(), Event(), and Finalize().


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