AliPhysics  9b6b435 (9b6b435)
AliCentralCorrAcceptance Class Reference

#include <AliCentralCorrAcceptance.h>

Inheritance diagram for AliCentralCorrAcceptance:

Public Member Functions

 AliCentralCorrAcceptance ()
 
 AliCentralCorrAcceptance (const AliCentralCorrAcceptance &o)
 
virtual ~AliCentralCorrAcceptance ()
 
Get corrections and parameters
AliCentralCorrAcceptanceoperator= (const AliCentralCorrAcceptance &o)
 
TH1DGetCorrection (Double_t v) const
 
TH1DGetCorrection (UShort_t b) const
 
const TAxisGetVertexAxis () const
 
Set corrections and parameters
Bool_t SetCorrection (Double_t v, TH1D *h)
 
Bool_t SetCorrection (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
 

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 AliCentralCorrAcceptance.h.

Constructor & Destructor Documentation

AliCentralCorrAcceptance::AliCentralCorrAcceptance ( )

Default constructor

Definition at line 12 of file AliCentralCorrAcceptance.cxx.

AliCentralCorrAcceptance::AliCentralCorrAcceptance ( const AliCentralCorrAcceptance o)

Copy constructor

Parameters
oObject to copy from

Definition at line 26 of file AliCentralCorrAcceptance.cxx.

AliCentralCorrAcceptance::~AliCentralCorrAcceptance ( )
virtual

Destructor

Definition at line 43 of file AliCentralCorrAcceptance.cxx.

Member Function Documentation

void AliCentralCorrAcceptance::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 210 of file AliCentralCorrAcceptance.cxx.

Referenced by IsFolder().

Int_t AliCentralCorrAcceptance::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 AliCentralCorrAcceptance.cxx.

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

TH1D * AliCentralCorrAcceptance::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 AliCentralCorrAcceptance.cxx.

Referenced by AliCentralMultiplicityTask::VtxBin::SetupForData().

TH1D * AliCentralCorrAcceptance::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 AliCentralCorrAcceptance.cxx.

const TAxis& AliCentralCorrAcceptance::GetVertexAxis ( ) const
inline

Get the vertex axis used

Returns
vertex axis

Definition at line 81 of file AliCentralCorrAcceptance.h.

Bool_t AliCentralCorrAcceptance::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 134 of file AliCentralCorrAcceptance.h.

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 53 of file AliCentralCorrAcceptance.cxx.

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

Print this object

Parameters
option

Definition at line 223 of file AliCentralCorrAcceptance.cxx.

Referenced by IsFolder().

Bool_t AliCentralCorrAcceptance::SetCorrection ( Double_t  v,
TH1D 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 187 of file AliCentralCorrAcceptance.cxx.

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

Bool_t AliCentralCorrAcceptance::SetCorrection ( UShort_t  b,
TH1D 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 152 of file AliCentralCorrAcceptance.cxx.

void AliCentralCorrAcceptance::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 173 of file AliCentralCorrAcceptance.h.

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

void AliCentralCorrAcceptance::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 166 of file AliCentralCorrAcceptance.h.

Member Data Documentation

TObjArray AliCentralCorrAcceptance::fArray
protected
TAxis AliCentralCorrAcceptance::fVertexAxis
protected

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