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

#include <AliFMDCorrAcceptance.h>

Inheritance diagram for AliFMDCorrAcceptance:

Public Member Functions

 AliFMDCorrAcceptance ()
 
 AliFMDCorrAcceptance (const AliFMDCorrAcceptance &o)
 
virtual ~AliFMDCorrAcceptance ()
 
Get corrections and parameters
AliFMDCorrAcceptanceoperator= (const AliFMDCorrAcceptance &o)
 
TH2DGetCorrection (UShort_t d, Char_t r, Double_t v) const
 
TH2DGetCorrection (UShort_t d, Char_t r, UShort_t b) const
 
TH1DGetPhiAcceptance (UShort_t d, Char_t r, Double_t v) const
 
TH1DGetPhiAcceptance (UShort_t d, Char_t r, UShort_t b) const
 
const TAxisGetVertexAxis () const
 
Bool_t HasOverflow () 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 SetHasOverflow (Bool_t present=true)
 
Auxiliary member functions
Bool_t IsFolder () const
 
void Browse (TBrowser *b)
 
void Print (Option_t *option="R") const
 
void ls (Option_t *option="") const
 

Protected Member Functions

Int_t FindVertexBin (Double_t vertex) const
 
Int_t GetRingIndex (UShort_t d, Char_t r) const
 
TObjArrayGetRingArray (const TObjArray &m, UShort_t d, Char_t r) const
 
TObjArrayGetOrMakeRingArray (TObjArray &m, UShort_t d, Char_t r) const
 
TObjectGetObject (const TObjArray &m, UShort_t d, Char_t r, UShort_t b) const
 
void FillCache () const
 
 ClassDef (AliFMDCorrAcceptance, 2)
 

Protected Attributes

TObjArray fRingArray
 
TObjArrayfCache
 
TAxis fVertexAxis
 Array of per-ring, per-vertex 1d factors. More...
 
Bool_t fHasOverflow
 

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 30 of file AliFMDCorrAcceptance.h.

Constructor & Destructor Documentation

AliFMDCorrAcceptance::AliFMDCorrAcceptance ( )

Default constructor

Definition at line 19 of file AliFMDCorrAcceptance.cxx.

AliFMDCorrAcceptance::AliFMDCorrAcceptance ( const AliFMDCorrAcceptance o)

Copy constructor

Parameters
oObject to copy from

Definition at line 35 of file AliFMDCorrAcceptance.cxx.

AliFMDCorrAcceptance::~AliFMDCorrAcceptance ( )
virtual

Destructor

Definition at line 54 of file AliFMDCorrAcceptance.cxx.

Member Function Documentation

void AliFMDCorrAcceptance::Browse ( TBrowser *  b)

Browse this object in the browser

Parameters
b

Definition at line 420 of file AliFMDCorrAcceptance.cxx.

AliFMDCorrAcceptance::ClassDef ( AliFMDCorrAcceptance  ,
 
)
protected
void AliFMDCorrAcceptance::FillCache ( ) const
protected

Definition at line 369 of file AliFMDCorrAcceptance.cxx.

Referenced by GetPhiAcceptance().

Int_t AliFMDCorrAcceptance::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 164 of file AliFMDCorrAcceptance.cxx.

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

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

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

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

Definition at line 87 of file AliFMDCorrAcceptance.cxx.

Referenced by AliFMDCorrector::Correct(), DrawCorrAcc2(), CorrDrawer::DrawIt(), and FillCache().

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

Get the acceptance correction \( a_{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 \( a_{r,v}\)

Definition at line 106 of file AliFMDCorrAcceptance.cxx.

TObject * AliFMDCorrAcceptance::GetObject ( const TObjArray m,
UShort_t  d,
Char_t  r,
UShort_t  b 
) const
protected

Definition at line 212 of file AliFMDCorrAcceptance.cxx.

Referenced by GetCorrection(), and GetPhiAcceptance().

TObjArray * AliFMDCorrAcceptance::GetOrMakeRingArray ( TObjArray m,
UShort_t  d,
Char_t  r 
) const
protected

Get the ring array corresponding to the specified ring

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

Definition at line 272 of file AliFMDCorrAcceptance.cxx.

Referenced by FillCache(), and SetCorrection().

TH1D * AliFMDCorrAcceptance::GetPhiAcceptance ( UShort_t  d,
Char_t  r,
Double_t  v 
) const

Get the phi acceptance

Parameters
dDetector
rring
vvertex
Returns

Definition at line 124 of file AliFMDCorrAcceptance.cxx.

Referenced by CorrDrawer::DrawIt().

TH1D * AliFMDCorrAcceptance::GetPhiAcceptance ( UShort_t  d,
Char_t  r,
UShort_t  b 
) const

Get the phi acceptance

Parameters
dDetector
rring
bvertex bin number
Returns

Definition at line 143 of file AliFMDCorrAcceptance.cxx.

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

Get the ring array corresponding to the specified ring

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

Definition at line 246 of file AliFMDCorrAcceptance.cxx.

Referenced by GetObject().

Int_t AliFMDCorrAcceptance::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 190 of file AliFMDCorrAcceptance.cxx.

Referenced by GetOrMakeRingArray(), and GetRingArray().

const TAxis& AliFMDCorrAcceptance::GetVertexAxis ( ) const
inline

Get the vertex axis used

Returns
vertex axis

Definition at line 106 of file AliFMDCorrAcceptance.h.

Referenced by DrawCorrAcc2(), and CorrDrawer::DrawIt().

Bool_t AliFMDCorrAcceptance::HasOverflow ( ) const
inline
Returns
true if the overflow bins along eta are set to the ratio of OK strips to all strips for a given eta bin.

Definition at line 111 of file AliFMDCorrAcceptance.h.

Referenced by AliFMDCorrector::Correct(), and CorrDrawer::DrawIt().

Bool_t AliFMDCorrAcceptance::IsFolder ( ) const
inline

Declare this as a folder

Returns
Always true

Definition at line 174 of file AliFMDCorrAcceptance.h.

void AliFMDCorrAcceptance::ls ( Option_t option = "") const

Definition at line 448 of file AliFMDCorrAcceptance.cxx.

Referenced by CorrDrawer::DrawIt().

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this object

Definition at line 65 of file AliFMDCorrAcceptance.cxx.

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

Print this object

Parameters
option

Definition at line 434 of file AliFMDCorrAcceptance.cxx.

Referenced by ExtractAcceptance().

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

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

Definition at line 342 of file AliFMDCorrAcceptance.cxx.

Referenced by ExtractAcceptance().

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

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

Definition at line 302 of file AliFMDCorrAcceptance.cxx.

void AliFMDCorrAcceptance::SetHasOverflow ( Bool_t  present = true)
inline

Set that we have (or not) the overflow bin present

Parameters
presentIf true, assume the overflow bins are filled

Definition at line 162 of file AliFMDCorrAcceptance.h.

Referenced by ExtractAcceptance().

void AliFMDCorrAcceptance::SetVertexAxis ( const TAxis axis)
inline

Set the vertex axis to use

Parameters
axisVertex axis

Definition at line 251 of file AliFMDCorrAcceptance.h.

Referenced by ExtractAcceptance(), and operator=().

void AliFMDCorrAcceptance::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 244 of file AliFMDCorrAcceptance.h.

Member Data Documentation

TObjArray* AliFMDCorrAcceptance::fCache
mutableprotected
Bool_t AliFMDCorrAcceptance::fHasOverflow
protected
TObjArray AliFMDCorrAcceptance::fRingArray
protected
TAxis AliFMDCorrAcceptance::fVertexAxis
protected

Array of per-ring, per-vertex 1d factors.

Definition at line 237 of file AliFMDCorrAcceptance.h.

Referenced by AliFMDCorrAcceptance(), Browse(), FillCache(), FindVertexBin(), GetOrMakeRingArray(), GetVertexAxis(), ls(), operator=(), Print(), SetCorrection(), and SetVertexAxis().


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