AliPhysics  781d0c7 (781d0c7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBaseMultTask Class Referenceabstract

#include <AliBaseMultTask.h>

Inheritance diagram for AliBaseMultTask:

Classes

struct  Bin
 

Public Member Functions

 AliBaseMultTask ()
 
virtual ~AliBaseMultTask ()
 
Settings
void SetMaxMult (Int_t max)
 
void SetMCIsNSD (Bool_t assume)
 
Creation of @f$ \eta@f$ bins
void AddBin (Double_t etaLow, Double_t etaHigh)
 
virtual BinMakeBin (Double_t minEta, Double_t maxEta)=0
 
virtual void DefaultBins ()
 
Interface methods
virtual Bool_t Book ()
 
virtual Bool_t PreEvent ()
 
virtual Bool_t Event (AliAODEvent &aod)
 
virtual Bool_t Finalize ()
 
- Public Member Functions inherited from AliBaseAODTask
 AliBaseAODTask ()
 
 AliBaseAODTask (const char *name, const char *title)
 
virtual ~AliBaseAODTask ()
 
virtual Bool_t Configure (const char *macro="-default-")
 
void SetIPzAxis (Int_t n, Double_t min, Double_t max)
 
void SetIPzAxis (Int_t n, Double_t max)
 
void SetIPzAxis (const TString &spec)
 
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)
 
void SetAbsMinCent (Double_t x=-1)
 
void SetTriggerMask (UInt_t mask)
 
void SetTriggerMask (const char *mask)
 
void SetFilterMask (UInt_t mask)
 
void SetFilterMask (const char *mask)
 
virtual Bool_t Connect (const char *sumFile=0, const char *resFile=0)
 
virtual Bool_t PreData ()
 
virtual Bool_t PostEvent ()
 
void Print (Option_t *option="") const
 

Protected Member Functions

 AliBaseMultTask (const char *name)
 
 AliBaseMultTask (const AliBaseMultTask &)
 
AliBaseMultTaskoperator= (const AliBaseMultTask &)
 
virtual void Process (TH1D *dndetaForward, TH1D *dndetaCentral, TH1D *normForward, TH1D *normCentral, TH1D *mc, Double_t ipZ, Bool_t pileup, Bool_t selectedTrigger, Bool_t isMCClass, Bool_t isESDClass, const AliAODEvent &aodevent)
 
 ClassDef (AliBaseMultTask, 2)
 
Check of event
virtual Bool_t CheckEvent (const AliAODForwardMult &fwd)
 
virtual Bool_t IsMCClass (AliAODForwardMult *m) const
 
virtual Bool_t IsESDClass (AliAODForwardMult *m) const
 
- Protected Member Functions inherited from AliBaseAODTask
 AliBaseAODTask (const AliBaseAODTask &o)
 
AliBaseAODTaskoperator= (const AliBaseAODTask &o)
 
virtual const char * DefaultConfig () const
 
virtual void Init ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
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)
 
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)
 

Protected Attributes

TList fBins
 
Bool_t fIsSelected
 
Int_t fMaxMult
 
Bool_t fMCIsNSD
 
- Protected Attributes inherited from AliBaseAODTask
UInt_t fTriggerMask
 
UInt_t fFilterMask
 
TAxis fCentAxis
 
Double_t fAbsMinCent
 
TAxis fIPzAxis
 
TH1IfTriggers
 
TH1IfEventStatus
 
TH1DfVertex
 
TH1DfCent
 
TH1DfAccVertex
 
TH2DfAccVertexXY
 
TH1DfAccCent
 
Bool_t fFirstEvent
 
Bool_t fCloneList
 
TListfSums
 
TListfResults
 

Additional Inherited Members

- Static Protected Member Functions inherited from AliBaseAODTask
static void FixAxis (TAxis &axis, const char *title=0)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t *borders)
 
static void SetAxis (TAxis &axis, const TString &spec, const char *sep=":,")
 
static void SetAxis (TAxis &axis, Int_t n, Double_t l, Double_t h)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t m)
 
static void PrintAxis (const TAxis &axis, Int_t nSig=2, const char *alt=0)
 

Detailed Description

Definition at line 14 of file AliBaseMultTask.h.

Constructor & Destructor Documentation

AliBaseMultTask::AliBaseMultTask ( )

Default constructor for ROOT I/O only

virtual AliBaseMultTask::~AliBaseMultTask ( )
inlinevirtual

Default constructor for ROOT I/O only

Definition at line 127 of file AliBaseMultTask.h.

AliBaseMultTask::AliBaseMultTask ( const char *  name)
protected

NAmed constructor

Definition at line 39 of file AliBaseMultTask.cxx.

AliBaseMultTask::AliBaseMultTask ( const AliBaseMultTask )
inlineprotected

Copy constructor

Definition at line 208 of file AliBaseMultTask.h.

Member Function Documentation

void AliBaseMultTask::AddBin ( Double_t  etaLow,
Double_t  etaHigh 
)
inline

Add another eta bin to the task

Definition at line 154 of file AliBaseMultTask.h.

Referenced by AddTaskMultDists(), and DefaultBins().

Bool_t AliBaseMultTask::Book ( )
virtual

Create Output Objects

Implements AliBaseAODTask.

Definition at line 75 of file AliBaseMultTask.cxx.

Bool_t AliBaseMultTask::CheckEvent ( const AliAODForwardMult fwd)
protectedvirtual

Check the event

Parameters
fwdForwarddata
Returns
true on success

Reimplemented from AliBaseAODTask.

Reimplemented in AliForwardMultiplicityDistribution.

Definition at line 68 of file AliBaseMultTask.cxx.

AliBaseMultTask::ClassDef ( AliBaseMultTask  ,
 
)
protected
void AliBaseMultTask::DefaultBins ( )
virtual

Create our default bins

Definition at line 53 of file AliBaseMultTask.cxx.

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

Bool_t AliBaseMultTask::Event ( AliAODEvent aod)
virtual

User Exec

Implements AliBaseAODTask.

Definition at line 102 of file AliBaseMultTask.cxx.

virtual Bool_t AliBaseMultTask::Finalize ( )
inlinevirtual

Finalize the job

Returns
true on success

Implements AliBaseAODTask.

Definition at line 196 of file AliBaseMultTask.h.

Bool_t AliBaseMultTask::IsESDClass ( AliAODForwardMult m) const
protectedvirtual

Check if event is proper reconstructed event class

Parameters
mForward object
Returns
true if proper reconstructed event class

Reimplemented in AliForwardTriggerBiasCorrection.

Definition at line 90 of file AliBaseMultTask.cxx.

Referenced by Event().

Bool_t AliBaseMultTask::IsMCClass ( AliAODForwardMult m) const
protectedvirtual

Check if event is proper MC class

Parameters
mForward object
Returns
true if proper MC class

Definition at line 95 of file AliBaseMultTask.cxx.

Referenced by Event().

virtual Bin* AliBaseMultTask::MakeBin ( Double_t  minEta,
Double_t  maxEta 
)
pure virtual

Create a bin. Must be overloaded in derived class

Parameters
minEtaLeast pseudorapidity
maxEtaLargest pseudorapidity
Returns
newly created bin object

Implemented in AliForwardTriggerBiasCorrection, AliForwardCreateResponseMatrices, and AliForwardMultiplicityDistribution.

Referenced by AddBin().

AliBaseMultTask& AliBaseMultTask::operator= ( const AliBaseMultTask )
inlineprotected

Assignment operator

Definition at line 218 of file AliBaseMultTask.h.

virtual Bool_t AliBaseMultTask::PreEvent ( )
inlinevirtual

Reset before start of evet

Returns
Always true

Reimplemented from AliBaseAODTask.

Definition at line 186 of file AliBaseMultTask.h.

void AliBaseMultTask::Process ( TH1D dndetaForward,
TH1D dndetaCentral,
TH1D normForward,
TH1D normCentral,
TH1D mc,
Double_t  ipZ,
Bool_t  pileup,
Bool_t  selectedTrigger,
Bool_t  isMCClass,
Bool_t  isESDClass,
const AliAODEvent aodevent 
)
protectedvirtual

Loop over bins and call Process for each of them

Parameters
dndetaForwardForward observations
dndetaCentralCentral observations
normForwardAcceptance
normCentralAcceptance
mcPrimary "observations"
ipZInteraction point
pileupTrue if flagged as pile-up
selectedTriggerIs event selected
isMCClassIs event MC NSD
isESDClassIs event real NSD
aodeventFull event

Definition at line 161 of file AliBaseMultTask.cxx.

Referenced by Event().

void AliBaseMultTask::SetMaxMult ( Int_t  max)
inline

Set maximum multiplicity

Parameters
maxMaximum multiplicity

Definition at line 138 of file AliBaseMultTask.h.

void AliBaseMultTask::SetMCIsNSD ( Bool_t  assume)
inline

Set if we are to assume all MC events are NSD

Parameters
assumeIf true, assume MC events are always NSD (e.g., for p-Pb)

Definition at line 144 of file AliBaseMultTask.h.

Member Data Documentation

TList AliBaseMultTask::fBins
protected

Definition at line 274 of file AliBaseMultTask.h.

Referenced by AddBin(), Book(), and Process().

Bool_t AliBaseMultTask::fIsSelected
protected
Int_t AliBaseMultTask::fMaxMult
protected

Definition at line 276 of file AliBaseMultTask.h.

Referenced by Book(), and SetMaxMult().

Bool_t AliBaseMultTask::fMCIsNSD
protected

Definition at line 277 of file AliBaseMultTask.h.

Referenced by IsMCClass(), and SetMCIsNSD().


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