AliPhysics  ff1d528 (ff1d528)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDCorrector Class Reference

#include <AliFMDCorrector.h>

Inheritance diagram for AliFMDCorrector:

Classes

struct  RingHistos
 

Public Member Functions

 AliFMDCorrector ()
 
 AliFMDCorrector (const char *name)
 
 AliFMDCorrector (const AliFMDCorrector &o)
 
virtual ~AliFMDCorrector ()
 
AliFMDCorrectoroperator= (const AliFMDCorrector &)
 
virtual void SetupForData (const TAxis &etaAxis)
 
virtual Bool_t Correct (AliForwardUtil::Histos &hists, UShort_t vtxBin)
 
virtual void Terminate (const TList *dir, TList *output, Int_t nEvents)
 
virtual void CreateOutputObjects (TList *dir)
 
void SetDebug (Int_t dbg=1)
 
virtual void Print (Option_t *option="") const
 
Enable/disable parts of the corrections
void SetUseSecondaryMap (Bool_t use=true)
 
Bool_t IsUseSecondaryMap () const
 
void SetUseVertexBias (Bool_t use=true)
 
Bool_t IsUseVertexBias () const
 
void SetUseAcceptance (Bool_t use=true)
 
Bool_t IsUseAcceptance () const
 
void SetUseMergingEfficiency (Bool_t use=true)
 
Bool_t IsUseMergingEfficiency () const
 

Protected Member Functions

RingHistosGetRingHistos (UShort_t d, Char_t r) const
 
void DivideMap (TH2 *num, const TH2 *denom, Bool_t alsoUnderOver=false) const
 
 ClassDef (AliFMDCorrector, 4)
 

Protected Attributes

TList fRingHistos
 
Bool_t fUseSecondaryMap
 
Bool_t fUseVertexBias
 
Bool_t fUseAcceptance
 
Bool_t fUseMergingEfficiency
 
Int_t fDebug
 

Detailed Description

This class calculates the exclusive charged particle density in each for the 5 FMD rings.

Input:
  • 5 RingHistos objects - each with a number of vertex dependent 2D histograms of the inclusive charge particle density
Output:
  • 5 RingHistos objects - each with a number of vertex dependent 2D histograms of the exclusive charge particle density
Corrections used:

Definition at line 48 of file AliFMDCorrector.h.

Constructor & Destructor Documentation

AliFMDCorrector::AliFMDCorrector ( )

Constructor

AliFMDCorrector::AliFMDCorrector ( const char *  name)

Constructor

Parameters
nameName of object

Definition at line 42 of file AliFMDCorrector.cxx.

AliFMDCorrector::AliFMDCorrector ( const AliFMDCorrector o)

Copy constructor

Parameters
oObject to copy from

Definition at line 60 of file AliFMDCorrector.cxx.

AliFMDCorrector::~AliFMDCorrector ( )
virtual

Destructor

Definition at line 80 of file AliFMDCorrector.cxx.

Member Function Documentation

AliFMDCorrector::ClassDef ( AliFMDCorrector  ,
 
)
protected
Bool_t AliFMDCorrector::Correct ( AliForwardUtil::Histos hists,
UShort_t  vtxBin 
)
virtual

Do the calculations

Parameters
histsCache of histograms
vtxBinVertex bin
Returns
true on successs

Definition at line 196 of file AliFMDCorrector.cxx.

Referenced by AliForwardMultiplicityTask::Event(), and AliForwardMCMultiplicityTask::Event().

void AliFMDCorrector::CreateOutputObjects ( TList dir)
virtual

Output diagnostic histograms to directory

Parameters
dirList to write in

Reimplemented in AliFMDMCCorrector.

Definition at line 342 of file AliFMDCorrector.cxx.

Referenced by AliForwardMultiplicityBase::Book(), and AliFMDMCCorrector::CreateOutputObjects().

void AliFMDCorrector::DivideMap ( TH2 num,
const TH2 denom,
Bool_t  alsoUnderOver = false 
) const
protected

Divide a map with another map. This is a reimplementation of TH1::Divide, but we assume compatible histograms, and the under- and overflow bins are only divided if the third argument is true.

Parameters
numNumerator. On return contains the result
denomDenominator
alsoUnderOverIf true, also divide under/overflow bins

Definition at line 159 of file AliFMDCorrector.cxx.

Referenced by Correct().

AliFMDCorrector::RingHistos * AliFMDCorrector::GetRingHistos ( UShort_t  d,
Char_t  r 
) const
protected

Get the ring histogram container

Parameters
dDetector
rRing
Returns
Ring histogram container

Definition at line 135 of file AliFMDCorrector.cxx.

Referenced by Correct().

Bool_t AliFMDCorrector::IsUseAcceptance ( ) const
inline

Check

Returns
true if the correction for dead-channel acceptance is done

Definition at line 153 of file AliFMDCorrector.h.

Bool_t AliFMDCorrector::IsUseMergingEfficiency ( ) const
inline

Check

Returns
true if the merging efficiency correction is used.

Definition at line 165 of file AliFMDCorrector.h.

Bool_t AliFMDCorrector::IsUseSecondaryMap ( ) const
inline

Check

Returns
true if the correction for secondaries is done

Definition at line 129 of file AliFMDCorrector.h.

Bool_t AliFMDCorrector::IsUseVertexBias ( ) const
inline

Check

Returns
true if the correction for vertex bias is done

Definition at line 141 of file AliFMDCorrector.h.

AliFMDCorrector & AliFMDCorrector::operator= ( const AliFMDCorrector o)

Assignement operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 91 of file AliFMDCorrector.cxx.

Referenced by AliFMDMCCorrector::operator=().

void AliFMDCorrector::Print ( Option_t option = "") const
virtual

Print information

Parameters
optionNot used

Reimplemented in AliFMDMCCorrector.

Definition at line 388 of file AliFMDCorrector.cxx.

Referenced by AliForwardMultiplicityBase::Print(), and AliFMDMCCorrector::Print().

void AliFMDCorrector::SetDebug ( Int_t  dbg = 1)
inline

Set the debug level. The higher the value the more output

Parameters
dbgDebug level

Definition at line 113 of file AliFMDCorrector.h.

Referenced by AliForwardMultiplicityBase::SetDebug().

void AliFMDCorrector::SetupForData ( const TAxis etaAxis)
virtual

Initialize this object

Parameters
etaAxisEta axis to use – not used

Reimplemented in AliFMDMCCorrector.

Definition at line 116 of file AliFMDCorrector.cxx.

Referenced by AliForwardMultiplicityBase::PreData(), and AliFMDMCCorrector::SetupForData().

void AliFMDCorrector::SetUseAcceptance ( Bool_t  use = true)
inline

Whether to do correction for dead-channel acceptance

Parameters
useIf true, use the dead-channel acceptance correction

Definition at line 147 of file AliFMDCorrector.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDCorrector::SetUseMergingEfficiency ( Bool_t  use = true)
inline

Whether to use the merging efficiency correction

Parameters
useIf true, use the merging efficiency correction

Definition at line 159 of file AliFMDCorrector.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDCorrector::SetUseSecondaryMap ( Bool_t  use = true)
inline

Whether to do correction for secondaries

Parameters
useIf true, use the secondary correction

Definition at line 123 of file AliFMDCorrector.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDCorrector::SetUseVertexBias ( Bool_t  use = true)
inline

Whether to do correction for vertex bias

Parameters
useIf true, use the vertex bias correction

Definition at line 135 of file AliFMDCorrector.h.

Referenced by ForwardAODConfig(), and TunedConfig().

void AliFMDCorrector::Terminate ( const TList dir,
TList output,
Int_t  nEvents 
)
virtual

Scale the histograms to the total number of events

Parameters
dirWhere the output is stored
outputOutput list
nEventsNumber of events

Definition at line 298 of file AliFMDCorrector.cxx.

Referenced by AliForwardMultiplicityBase::Finalize().

Member Data Documentation

Int_t AliFMDCorrector::fDebug
protected
TList AliFMDCorrector::fRingHistos
protected
Bool_t AliFMDCorrector::fUseAcceptance
protected
Bool_t AliFMDCorrector::fUseMergingEfficiency
protected
Bool_t AliFMDCorrector::fUseSecondaryMap
protected
Bool_t AliFMDCorrector::fUseVertexBias
protected

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