AliPhysics  5f855a4 (5f855a4)
AliCentralCorrSecondaryMap Class Reference

#include <AliCentralCorrSecondaryMap.h>

Inheritance diagram for AliCentralCorrSecondaryMap:

Public Member Functions

 AliCentralCorrSecondaryMap ()
 
 AliCentralCorrSecondaryMap (const AliCentralCorrSecondaryMap &o)
 
virtual ~AliCentralCorrSecondaryMap ()
 
Get corrections and parameters
AliCentralCorrSecondaryMapoperator= (const AliCentralCorrSecondaryMap &o)
 
TH2DGetCorrection (Double_t v) const
 
TH2DGetCorrection (UShort_t b) const
 
const TAxisGetVertexAxis () const
 
Set corrections and parameters
Bool_t SetCorrection (Double_t v, TH2D *h)
 
Bool_t SetCorrection (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
 

Protected Attributes

TObjArray fArray
 
TAxis fVertexAxis
 

Detailed Description

This class contains the acceptance correction due to dead channels

These are generated from the on-line dead channel calculations

Definition at line 29 of file AliCentralCorrSecondaryMap.h.

Constructor & Destructor Documentation

AliCentralCorrSecondaryMap::AliCentralCorrSecondaryMap ( )

Default constructor

Definition at line 12 of file AliCentralCorrSecondaryMap.cxx.

AliCentralCorrSecondaryMap::AliCentralCorrSecondaryMap ( const AliCentralCorrSecondaryMap o)

Copy constructor

Parameters
oObject to copy from

Definition at line 26 of file AliCentralCorrSecondaryMap.cxx.

AliCentralCorrSecondaryMap::~AliCentralCorrSecondaryMap ( )
virtual

Destructor

Definition at line 43 of file AliCentralCorrSecondaryMap.cxx.

Member Function Documentation

void AliCentralCorrSecondaryMap::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 208 of file AliCentralCorrSecondaryMap.cxx.

Referenced by IsFolder().

Int_t AliCentralCorrSecondaryMap::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 116 of file AliCentralCorrSecondaryMap.cxx.

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

TH2D * AliCentralCorrSecondaryMap::GetCorrection ( Double_t  v) const

Get the acceptance correction \( a_{r,v}\)

Parameters
vPrimary interaction point \(z\) coordinate
Returns
The correction \( a_{r,v}\)

Definition at line 71 of file AliCentralCorrSecondaryMap.cxx.

Referenced by CompareCentralSecMaps(), DrawCorrCentralSecMap2(), and AliCentralMultiplicityTask::VtxBin::SetupForData().

TH2D * AliCentralCorrSecondaryMap::GetCorrection ( UShort_t  b) const

Get the acceptance correction \( a_{r,v}\)

Parameters
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
Returns
The correction \( a_{r,v}\)

Definition at line 90 of file AliCentralCorrSecondaryMap.cxx.

const TAxis& AliCentralCorrSecondaryMap::GetVertexAxis ( ) const
inline
Bool_t AliCentralCorrSecondaryMap::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 134 of file AliCentralCorrSecondaryMap.h.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 53 of file AliCentralCorrSecondaryMap.cxx.

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

Print this object

Parameters
option

Definition at line 221 of file AliCentralCorrSecondaryMap.cxx.

Referenced by IsFolder().

Bool_t AliCentralCorrSecondaryMap::SetCorrection ( Double_t  v,
TH2D h 
)

Set the acceptance correction \( a_{r,v}(\eta)\). Note, that the object takes ownership of the passed pointer.

Parameters
vPrimary interaction point \(z\) coordinate
h\( a_{r,v}(\eta)\)
Returns
true if operation succeeded

Definition at line 183 of file AliCentralCorrSecondaryMap.cxx.

Referenced by GetVertexAxis(), and AliCentralMCCorrectionsTask::VtxBin::Terminate().

Bool_t AliCentralCorrSecondaryMap::SetCorrection ( UShort_t  b,
TH2D h 
)

Set the acceptance correction \( a_{r,v}(\eta)\) Note, that the object takes ownership of the passed pointer.

Parameters
bBin corresponding to the primary interaction point \(z\) coordinate (1 based)
h\( a_{r,v}(\eta)\)
Returns
true if operation succeeded

Definition at line 143 of file AliCentralCorrSecondaryMap.cxx.

void AliCentralCorrSecondaryMap::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 181 of file AliCentralCorrSecondaryMap.h.

Referenced by AliCentralMCCorrectionsTask::CreateCorrections(), GetVertexAxis(), and operator=().

void AliCentralCorrSecondaryMap::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 174 of file AliCentralCorrSecondaryMap.h.

Member Data Documentation

TObjArray AliCentralCorrSecondaryMap::fArray
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 167 of file AliCentralCorrSecondaryMap.h.

Referenced by AliCentralCorrSecondaryMap(), Browse(), GetCorrection(), operator=(), Print(), SetCorrection(), and ~AliCentralCorrSecondaryMap().

TAxis AliCentralCorrSecondaryMap::fVertexAxis
protected

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