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

#include <AliFMDCorrMergingEfficiency.h>

Inheritance diagram for AliFMDCorrMergingEfficiency:

Public Member Functions

 AliFMDCorrMergingEfficiency ()
 
 AliFMDCorrMergingEfficiency (const AliFMDCorrMergingEfficiency &o)
 
virtual ~AliFMDCorrMergingEfficiency ()
 
Get corrections and parameters
AliFMDCorrMergingEfficiencyoperator= (const AliFMDCorrMergingEfficiency &o)
 
TH1DGetCorrection (UShort_t d, Char_t r, Double_t v) const
 
TH1DGetCorrection (UShort_t d, Char_t r, UShort_t b) const
 
const TAxisGetVertexAxis () const
 
Set corrections and parameters
Bool_t SetCorrection (UShort_t d, Char_t r, Double_t v, TH1D *h)
 
Bool_t SetCorrection (UShort_t d, Char_t r, UShort_t b, TH1D *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
 
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)
 
 ClassDef (AliFMDCorrMergingEfficiency, 1)
 

Protected Attributes

TObjArray fRingArray
 
TAxis fVertexAxis
 

Detailed Description

This class contains the merging efficiency correction.

The secondary correction is given by

\[ m_{r,v}(\eta) = \]

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

Definition at line 34 of file AliFMDCorrMergingEfficiency.h.

Constructor & Destructor Documentation

AliFMDCorrMergingEfficiency::AliFMDCorrMergingEfficiency ( )

Default constructor

Definition at line 12 of file AliFMDCorrMergingEfficiency.cxx.

AliFMDCorrMergingEfficiency::AliFMDCorrMergingEfficiency ( const AliFMDCorrMergingEfficiency o)

Copy constructor

Parameters
oObject to copy from

Definition at line 26 of file AliFMDCorrMergingEfficiency.cxx.

AliFMDCorrMergingEfficiency::~AliFMDCorrMergingEfficiency ( )
virtual

Destructor

Definition at line 43 of file AliFMDCorrMergingEfficiency.cxx.

Member Function Documentation

void AliFMDCorrMergingEfficiency::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 292 of file AliFMDCorrMergingEfficiency.cxx.

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

Referenced by GetCorrection(), and SetCorrection().

TH1D * AliFMDCorrMergingEfficiency::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 71 of file AliFMDCorrMergingEfficiency.cxx.

Referenced by AliFMDCorrector::Correct().

TH1D * AliFMDCorrMergingEfficiency::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 90 of file AliFMDCorrMergingEfficiency.cxx.

TObjArray * AliFMDCorrMergingEfficiency::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 197 of file AliFMDCorrMergingEfficiency.cxx.

Referenced by SetCorrection().

TObjArray * AliFMDCorrMergingEfficiency::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 172 of file AliFMDCorrMergingEfficiency.cxx.

Referenced by GetCorrection().

Int_t AliFMDCorrMergingEfficiency::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 150 of file AliFMDCorrMergingEfficiency.cxx.

Referenced by GetOrMakeRingArray(), and GetRingArray().

const TAxis& AliFMDCorrMergingEfficiency::GetVertexAxis ( ) const
inline

Get the vertex axis used

Returns
vertex axis

Definition at line 90 of file AliFMDCorrMergingEfficiency.h.

Bool_t AliFMDCorrMergingEfficiency::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 147 of file AliFMDCorrMergingEfficiency.h.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 53 of file AliFMDCorrMergingEfficiency.cxx.

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

Print this object

Parameters
option

Definition at line 305 of file AliFMDCorrMergingEfficiency.cxx.

Bool_t AliFMDCorrMergingEfficiency::SetCorrection ( UShort_t  d,
Char_t  r,
Double_t  v,
TH1D h 
)

Set the secondary map correction \( m_{r,v}(\eta)\). 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\( m_{r,v}(\eta)\)
Returns
true if operation succeeded

Definition at line 266 of file AliFMDCorrMergingEfficiency.cxx.

Bool_t AliFMDCorrMergingEfficiency::SetCorrection ( UShort_t  d,
Char_t  r,
UShort_t  b,
TH1D h 
)

Set the secondary map correction \( m_{r,v}(\eta)\) 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\( m_{r,v}(\eta)\)
Returns
true if operation succeeded

Definition at line 226 of file AliFMDCorrMergingEfficiency.cxx.

void AliFMDCorrMergingEfficiency::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 213 of file AliFMDCorrMergingEfficiency.h.

Referenced by operator=().

void AliFMDCorrMergingEfficiency::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 206 of file AliFMDCorrMergingEfficiency.h.

Member Data Documentation

TObjArray AliFMDCorrMergingEfficiency::fRingArray
protected
TAxis AliFMDCorrMergingEfficiency::fVertexAxis
protected

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