AliPhysics  45476af (45476af)
AliFMDCorrSecondaryMap Class Reference

#include <AliFMDCorrSecondaryMap.h>

Inheritance diagram for AliFMDCorrSecondaryMap:

Public Member Functions

 AliFMDCorrSecondaryMap ()
 
 AliFMDCorrSecondaryMap (const AliFMDCorrSecondaryMap &o)
 
virtual ~AliFMDCorrSecondaryMap ()
 
Get corrections and parameters
AliFMDCorrSecondaryMapoperator= (const AliFMDCorrSecondaryMap &o)
 
TH2DGetCorrection (UShort_t d, Char_t r, Double_t v) const
 
TH2DGetCorrection (UShort_t d, Char_t r, UShort_t b) const
 
const TAxisGetVertexAxis () const
 
const TAxisGetEtaAxis () const
 
Set corrections and parameters
Bool_t SetCorrection (UShort_t d, Char_t r, Double_t v, TH2D *h)
 
Bool_t SetCorrection (UShort_t d, Char_t r, UShort_t b, TH2D *h)
 
void SetVertexAxis (const TAxis &axis)
 
void SetVertexAxis (Int_t nBins, Double_t min, Double_t max)
 
void SetEtaAxis (const TAxis &axis)
 
void SetEtaAxis (Int_t nBins, Double_t min, Double_t max)
 
Auxiliary member functions
Bool_t IsFolder () const
 
void Browse (TBrowser *b)
 
void Print (Option_t *option="R") const
 

Protected Member Functions

Int_t FindVertexBin (Double_t vertex) const
 
Int_t GetRingIndex (UShort_t d, Char_t r) const
 
TObjArrayGetRingArray (UShort_t d, Char_t r) const
 
TObjArrayGetOrMakeRingArray (UShort_t d, Char_t r)
 

Protected Attributes

TObjArray fRingArray
 
TAxis fVertexAxis
 
TAxis fEtaAxis
 

Detailed Description

This class contains the secondary correction.

The secondary correction is given by

\[ c_{r,v}(\eta,\varphi) = \frac{\sum_i N_{ch,i,v,\mbox{primary}}(\eta,\varphi)}{ \sum_i N_{ch,i,r,v,\mbox{FMD}}(\eta,\varphi)} \]

where \(N_{ch,i,v,\mbox{primary}}(\eta,\varphi)\) is the is the number of primary charged particles that fall within the \((\eta,\varphi)\) bin in event \(i\) with vertex \(v\), and is the total (primary and secondary) charged particles that hit ring \(r\) within \((\eta,\varphi)\) bin in event \(i\) with vertex \(v\).

These are generated from Monte-Carlo truth information.

Definition at line 42 of file AliFMDCorrSecondaryMap.h.

Constructor & Destructor Documentation

AliFMDCorrSecondaryMap::AliFMDCorrSecondaryMap ( )

Default constructor

Definition at line 12 of file AliFMDCorrSecondaryMap.cxx.

AliFMDCorrSecondaryMap::AliFMDCorrSecondaryMap ( const AliFMDCorrSecondaryMap o)

Copy constructor

Parameters
oObject to copy from

Definition at line 29 of file AliFMDCorrSecondaryMap.cxx.

AliFMDCorrSecondaryMap::~AliFMDCorrSecondaryMap ( )
virtual

Destructor

Definition at line 50 of file AliFMDCorrSecondaryMap.cxx.

Member Function Documentation

void AliFMDCorrSecondaryMap::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 300 of file AliFMDCorrSecondaryMap.cxx.

Referenced by IsFolder().

Int_t AliFMDCorrSecondaryMap::FindVertexBin ( Double_t  vertex) const
protected

Find the vertex bin that corresponds to the passed vertex

Parameters
vertexThe interaction points \(z\)-coordinate
Returns
Vertex bin in \([1,N_{\mbox{vertex}}]\) or negative if out of range

Definition at line 132 of file AliFMDCorrSecondaryMap.cxx.

Referenced by GetCorrection(), IsFolder(), and SetCorrection().

TH2D * AliFMDCorrSecondaryMap::GetCorrection ( UShort_t  d,
Char_t  r,
Double_t  v 
) const

Get the secondary correction \( c_{r,v}\)

Parameters
dDetector number (1-3)
rRing identifier (I or O)
vPrimary interaction point \(z\) coordinate
Returns
The correction \( c_{r,v}\)

Definition at line 79 of file AliFMDCorrSecondaryMap.cxx.

Referenced by CompareSecMaps(), AliFMDCorrector::Correct(), AliFMDMCCorrector::CorrectMC(), DrawCorrSecMap2(), CorrDrawer::DrawIt(), and AliFMDHistCollector::VtxBin::SetupForData().

TH2D * AliFMDCorrSecondaryMap::GetCorrection ( UShort_t  d,
Char_t  r,
UShort_t  b 
) const

Get the secondary correction \( c_{r,v}\)

Parameters
dDetector number (1-3)
rRing identifier (I or O)
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
Returns
The correction \( c_{r,v}\)

Definition at line 98 of file AliFMDCorrSecondaryMap.cxx.

const TAxis& AliFMDCorrSecondaryMap::GetEtaAxis ( ) const
inline

Get the eta axis used

Returns
eta axis

Definition at line 104 of file AliFMDCorrSecondaryMap.h.

Referenced by AliForwardCorrectionManager::GetEtaAxis().

TObjArray * AliFMDCorrSecondaryMap::GetOrMakeRingArray ( UShort_t  d,
Char_t  r 
)
protected

Get the ring array corresponding to the specified ring

Parameters
dDetector
rRing
Returns
Pointer to ring array, or newly created container

Definition at line 205 of file AliFMDCorrSecondaryMap.cxx.

Referenced by IsFolder(), and SetCorrection().

TObjArray * AliFMDCorrSecondaryMap::GetRingArray ( UShort_t  d,
Char_t  r 
) const
protected

Get the ring array corresponding to the specified ring

Parameters
dDetector
rRing
Returns
Pointer to ring array, or null in case of problems

Definition at line 180 of file AliFMDCorrSecondaryMap.cxx.

Referenced by GetCorrection(), and IsFolder().

Int_t AliFMDCorrSecondaryMap::GetRingIndex ( UShort_t  d,
Char_t  r 
) const
protected

Get the index corresponding to the given ring

Parameters
dDetector
rRing
Returns
Index (0 based) or negative in case of errors

Definition at line 158 of file AliFMDCorrSecondaryMap.cxx.

Referenced by GetOrMakeRingArray(), GetRingArray(), and IsFolder().

const TAxis& AliFMDCorrSecondaryMap::GetVertexAxis ( ) const
inline

Get the vertex axis used

Returns
vertex axis

Definition at line 98 of file AliFMDCorrSecondaryMap.h.

Referenced by CompareSecMaps(), DrawCorrSecMap2(), CorrDrawer::DrawIt(), and AliForwardCorrectionManager::GetVertexAxis().

Bool_t AliFMDCorrSecondaryMap::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 175 of file AliFMDCorrSecondaryMap.h.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 60 of file AliFMDCorrSecondaryMap.cxx.

void AliFMDCorrSecondaryMap::Print ( Option_t option = "R") const

Print this object

Parameters
option

Definition at line 314 of file AliFMDCorrSecondaryMap.cxx.

Referenced by IsFolder().

Bool_t AliFMDCorrSecondaryMap::SetCorrection ( UShort_t  d,
Char_t  r,
Double_t  v,
TH2D h 
)

Set the secondary map correction \( c_{r,v}(\eta,\varphi)\). Note, that the object takes ownership of the passed pointer.

Parameters
dDetector number (1-3)
rRing identifier (I or O)
vPrimary interaction point \(z\) coordinate
h\( c_{r,v}(\eta,\varphi)\)
Returns
true if operation succeeded

Definition at line 274 of file AliFMDCorrSecondaryMap.cxx.

Referenced by GetEtaAxis(), MakeSecMap(), and AliForwardMCCorrectionsTask::VtxBin::Terminate().

Bool_t AliFMDCorrSecondaryMap::SetCorrection ( UShort_t  d,
Char_t  r,
UShort_t  b,
TH2D h 
)

Set the secondary map correction \( c_{r,v}(\eta,\varphi)\) Note, that the object takes ownership of the passed pointer.

Parameters
dDetector number (1-3)
rRing identifier (I or O)
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
h\( c_{r,v}(\eta,\varphi)\)
Returns
true if operation succeeded

Definition at line 234 of file AliFMDCorrSecondaryMap.cxx.

void AliFMDCorrSecondaryMap::SetEtaAxis ( const TAxis axis)
inline

Set the eta axis to use

Parameters
axisEta axis

Definition at line 256 of file AliFMDCorrSecondaryMap.h.

Referenced by AliForwardMCCorrectionsTask::CreateCorrections(), GetEtaAxis(), MakeCorrSecMap(), and operator=().

void AliFMDCorrSecondaryMap::SetEtaAxis ( Int_t  nBins,
Double_t  min,
Double_t  max 
)
inline

Set the eta axis to use

Parameters
nBinsNumber of bins
minMinimum
maxMaximum

Definition at line 250 of file AliFMDCorrSecondaryMap.h.

void AliFMDCorrSecondaryMap::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 241 of file AliFMDCorrSecondaryMap.h.

Referenced by AliForwardMCCorrectionsTask::CreateCorrections(), GetEtaAxis(), MakeCorrSecMap(), and operator=().

void AliFMDCorrSecondaryMap::SetVertexAxis ( Int_t  nBins,
Double_t  min,
Double_t  max 
)
inline

Set the vertex axis to use

Parameters
nBinsNumber of bins
minMinimum
maxMaximum

Definition at line 235 of file AliFMDCorrSecondaryMap.h.

Member Data Documentation

TAxis AliFMDCorrSecondaryMap::fEtaAxis
protected
TObjArray AliFMDCorrSecondaryMap::fRingArray
protected
TAxis AliFMDCorrSecondaryMap::fVertexAxis
protected

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