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

#include <AliFMDCorrVertexBias.h>

Inheritance diagram for AliFMDCorrVertexBias:

Public Member Functions

 AliFMDCorrVertexBias ()
 
 AliFMDCorrVertexBias (const AliFMDCorrVertexBias &o)
 
virtual ~AliFMDCorrVertexBias ()
 
Get corrections and parameters
AliFMDCorrVertexBiasoperator= (const AliFMDCorrVertexBias &o)
 
TH2DGetCorrection (Char_t r, Double_t v) const
 
TH2DGetCorrection (Char_t r, UShort_t b) const
 
const TAxisGetVertexAxis () const
 
Set corrections and parameters
Bool_t SetCorrection (Char_t r, Double_t v, TH2D *h)
 
Bool_t SetCorrection (Char_t r, UShort_t b, TH2D *h)
 
void SetVertexAxis (const TAxis &axis)
 
void SetVertexAxis (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
 
TObjArrayGetVertexArray (UShort_t v) const
 
TObjArrayGetOrMakeVertexArray (UShort_t v)
 
 ClassDef (AliFMDCorrVertexBias, 1)
 

Protected Attributes

TObjArray fVertexArray
 
TAxis fVertexAxis
 

Detailed Description

This class contains the correction for the bias introduced by different vertex bins

The correction is given by

\[ b_{v}(\eta,\varphi) = \frac{1/N_{t}\sum_i^{N_{tv}} N_{ch,i,primary}}{ 1/N_{v}\sum_i^{N_{v}} N_{ch,i,primary}} \]

where \(N_{ch,i,primary}\) is the number of primary particles in the given \((\eta,\varphi)\), and where the denominator sum runs over all events with a vertex within the given vertex bin, and the sum in the numerator runs over only events that have a valid trigger and reconstructed vertex. \( N_{t}\) is the number of events with a valid trigger (but not necessarily a valid vertex). The vertex information used \(v\) is in all cases the MC truth vertex

These are generated from Monte-Carlo truth and ESD information.

Definition at line 45 of file AliFMDCorrVertexBias.h.

Constructor & Destructor Documentation

AliFMDCorrVertexBias::AliFMDCorrVertexBias ( )

Default constructor

Definition at line 12 of file AliFMDCorrVertexBias.cxx.

AliFMDCorrVertexBias::AliFMDCorrVertexBias ( const AliFMDCorrVertexBias o)

Copy constructor

Parameters
oObject to copy from

Definition at line 26 of file AliFMDCorrVertexBias.cxx.

AliFMDCorrVertexBias::~AliFMDCorrVertexBias ( )
virtual

Destructor

Definition at line 42 of file AliFMDCorrVertexBias.cxx.

Member Function Documentation

void AliFMDCorrVertexBias::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 278 of file AliFMDCorrVertexBias.cxx.

AliFMDCorrVertexBias::ClassDef ( AliFMDCorrVertexBias  ,
 
)
protected
Int_t AliFMDCorrVertexBias::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 125 of file AliFMDCorrVertexBias.cxx.

Referenced by GetCorrection(), and SetCorrection().

TH2D * AliFMDCorrVertexBias::GetCorrection ( Char_t  r,
Double_t  v 
) const

Get the vertex bias correction \( b_{v}\)

Parameters
rRing type (I or O)
vPrimary interaction point \(z\) coordinate
Returns
The correction \( b_{v}\)

Definition at line 70 of file AliFMDCorrVertexBias.cxx.

Referenced by CompareVtxBias(), AliFMDCorrector::Correct(), AliFMDMCCorrector::CorrectMC(), and DrawCorrVtxBias().

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

Get the vertex bias correction \( b_{v}\)

Parameters
rRing type (I or O)
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
Returns
The correction \( b_{v}\)

Definition at line 88 of file AliFMDCorrVertexBias.cxx.

TObjArray * AliFMDCorrVertexBias::GetOrMakeVertexArray ( UShort_t  v)
protected

Get the vertex array corresponding to the specified ring

Parameters
vvertex bin (1 based)
Returns
Pointer to vertex array, or newly created container

Definition at line 178 of file AliFMDCorrVertexBias.cxx.

Referenced by SetCorrection().

TObjArray * AliFMDCorrVertexBias::GetVertexArray ( UShort_t  v) const
protected

Get the vertex array corresponding to the specified ring

Parameters
vvertex bin (1 based)
Returns
Pointer to vertex array, or null in case of problems

Definition at line 151 of file AliFMDCorrVertexBias.cxx.

Referenced by GetCorrection().

const TAxis& AliFMDCorrVertexBias::GetVertexAxis ( ) const
inline

Get the vertex axis used

Returns
vertex axis

Definition at line 99 of file AliFMDCorrVertexBias.h.

Referenced by CompareVtxBias(), and DrawCorrVtxBias().

Bool_t AliFMDCorrVertexBias::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 154 of file AliFMDCorrVertexBias.h.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 52 of file AliFMDCorrVertexBias.cxx.

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

Print this object

Parameters
option

Definition at line 291 of file AliFMDCorrVertexBias.cxx.

Bool_t AliFMDCorrVertexBias::SetCorrection ( Char_t  r,
Double_t  v,
TH2D h 
)

Set the vertex bias correction \( b_{v}(\eta,\varphi)\). Note, that the object takes ownership of the passed pointer.

Parameters
rRing type (I or O)
vPrimary interaction point \(z\) coordinate
h\( b_{v}(\eta,\varphi)\)
Returns
true if operation succeeded

Definition at line 254 of file AliFMDCorrVertexBias.cxx.

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

Set the vertex bias correction \( b_{v}(\eta,\varphi)\) Note, that the object takes ownership of the passed pointer.

Parameters
rRing type (I or O)
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
h\( b_{v}(\eta,\varphi)\)
Returns
true if operation succeeded

Definition at line 209 of file AliFMDCorrVertexBias.cxx.

void AliFMDCorrVertexBias::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 208 of file AliFMDCorrVertexBias.h.

Referenced by operator=().

void AliFMDCorrVertexBias::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 202 of file AliFMDCorrVertexBias.h.

Member Data Documentation

TObjArray AliFMDCorrVertexBias::fVertexArray
protected

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