AliPhysics  9c66e61 (9c66e61)
AliCentralCorrectionManager Class Reference

#include <AliCentralCorrectionManager.h>

Inheritance diagram for AliCentralCorrectionManager:

Public Types

enum  ECorrection { kSecondaryMap = 0x01, kAcceptance = 0x02, kDefault = (kSecondaryMap|kAcceptance), kAll = (kSecondaryMap|kAcceptance) }
 
- Public Types inherited from AliCorrectionManagerBase
enum  EConstants { kIgnoreValue = 0, kIgnoreField = 999 }
 
enum  EFields {
  kRun = 0x01, kSys = 0x02, kSNN = 0x04, kField = 0x08,
  kMC = 0x10, kSatellite = 0x20, kStandard = kRun|kSys|kSNN|kField, kFull = kStandard|kMC|kSatellite
}
 

Public Member Functions

 AliCentralCorrectionManager ()
 
const Char_tGetName () const
 
void SetSecondaryMapPath (const char *d)
 
void SetAcceptancePath (const char *d)
 
Bool_t Init (ULong_t runNumber, UShort_t collisionSystem, UShort_t cmsNN, Short_t field, Bool_t mc=false, Bool_t satelliteCollisions=false, UInt_t what=kDefault, Bool_t force=false)
 
Bool_t Init (ULong_t runNumber, const char *collisionSystem, Float_t cmsNN, Float_t field, Bool_t mc=false, Bool_t satelliteCollisions=false, UInt_t what=kStandard, Bool_t force=false)
 
const TAxisGetVertexAxis () const
 
const TAxisGetEtaAxis () const
 
const AliCentralCorrSecondaryMapGetSecondaryMap () const
 
const AliCentralCorrAcceptanceGetAcceptance () const
 
- Public Member Functions inherited from AliCorrectionManagerBase
virtual ~AliCorrectionManagerBase ()
 
virtual void SetPrefix (const TString &prefix)
 
virtual void SetEnableFallBack (Bool_t use=true)
 
const char * GetObjectName (Int_t what) const
 
virtual Bool_t Store (TObject *o, ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field, Bool_t mc, Bool_t sat, const char *file, const char *meth="NEAR") const
 
virtual Bool_t Append (const TString &addition, const TString &destination="") const
 
virtual Bool_t CleanUp (const TString &destination, Bool_t verb=false, Bool_t all=false) const
 
virtual void EnableCorrections (UInt_t what)
 
virtual Bool_t CheckCorrections (UInt_t what, Bool_t verbose=true) const
 
Bool_t InitCorrections (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, Bool_t force=false)
 
virtual Bool_t IsInit () const
 
virtual void Print (Option_t *option="") const
 
virtual void Browse (TBrowser *b)
 
virtual Bool_t IsFolder () const
 
virtual void SetDebug (Bool_t debug)
 

Static Public Member Functions

static AliCentralCorrectionManagerInstance ()
 

Private Types

enum  EId { kIdSecondaryMap = 0, kIdAcceptance }
 

Private Member Functions

 AliCentralCorrectionManager (Bool_t notUsed)
 

Static Private Attributes

static AliCentralCorrectionManagerfgInstance = 0
 
Object name
static const Char_tfgkSecondaryMapSkel = "secondary"
 
static const Char_tfgkAcceptanceSkel = "acceptance"
 

Additional Inherited Members

- Protected Member Functions inherited from AliCorrectionManagerBase
 AliCorrectionManagerBase ()
 
 AliCorrectionManagerBase (Bool_t notUsed)
 
 AliCorrectionManagerBase (const AliCorrectionManagerBase &o)
 
AliCorrectionManagerBaseoperator= (const AliCorrectionManagerBase &o)
 
void RegisterCorrection (Int_t id, Correction *corr)
 
void RegisterCorrection (Int_t id, const TString &tableName, const TString &fileName, TClass *cls, UShort_t fields=kStandard, Bool_t enabled=false)
 
void EnableCorrection (Int_t id, Bool_t enable=true)
 
CorrectionGetCorrection (Int_t id)
 
const CorrectionGetCorrection (Int_t id) const
 
void SetCorrectionFile (Int_t id, const TString &fileName) const
 
Int_t GetId (const TString &what) const
 
Int_t GetId (const TObject *obj) const
 
TObjectGet (Int_t id)
 
const TObjectGet (Int_t id) const
 
Bool_t CheckConditions (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
Bool_t ReadCorrections (ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
Bool_t ReadCorrection (Int_t id, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat)
 
void SetCorrectionFile (Int_t i, const TString &file)
 
- Protected Attributes inherited from AliCorrectionManagerBase
TObjArray fCorrections
 
Bool_t fIsInit
 
ULong_t fRun
 
UShort_t fSys
 
UShort_t fSNN
 
Short_t fField
 
Bool_t fMC
 
Bool_t fSatellite
 
AliOADBForwardfDB
 
Bool_t fDebug
 do not store More...
 
Bool_t fFallBack
 

Detailed Description

Manager (singleton) of corrections

Note, that this class has a custom streamer. That is to ensure that the singleton pointer is correctly set on reading in an object of this type.

Definition at line 32 of file AliCentralCorrectionManager.h.

Member Enumeration Documentation

Enumeration of things that can be read in

Enumerator
kSecondaryMap 
kAcceptance 
kDefault 
kAll 

Definition at line 46 of file AliCentralCorrectionManager.h.

Enumeration of things that can be read in

Enumerator
kIdSecondaryMap 
kIdAcceptance 

Definition at line 38 of file AliCentralCorrectionManager.h.

Constructor & Destructor Documentation

AliCentralCorrectionManager::AliCentralCorrectionManager ( )

Default constructor. This is public for the sake of the ROOT I/O system, but should never be used outside of that system - that is, do not use this constructor

Definition at line 40 of file AliCentralCorrectionManager.cxx.

Referenced by GetEtaAxis(), and Instance().

AliCentralCorrectionManager::AliCentralCorrectionManager ( Bool_t  notUsed)
private

Non-default constructor - initializes corrections - used by singleton access member function Instance

Parameters
notUsedIgnored

Definition at line 47 of file AliCentralCorrectionManager.cxx.

Member Function Documentation

const AliCentralCorrAcceptance * AliCentralCorrectionManager::GetAcceptance ( ) const

Get the acceptance correction due to dead channels

Returns
Acceptance correction due to dead channels

Get the acceptance correction due to dead channels

Returns
Acceptance correction due to dead channels

Definition at line 141 of file AliCentralCorrectionManager.cxx.

Referenced by GetEtaAxis(), and AliCentralMultiplicityTask::VtxBin::SetupForData().

const TAxis* AliCentralCorrectionManager::GetEtaAxis ( ) const
inlinevirtual

Get the \(\eta\) axis

Returns
The \(\eta\) axis or null

Reimplemented from AliCorrectionManagerBase.

Definition at line 141 of file AliCentralCorrectionManager.h.

const Char_t* AliCentralCorrectionManager::GetName ( ) const
inline
Returns
name of the object

Definition at line 67 of file AliCentralCorrectionManager.h.

const AliCentralCorrSecondaryMap * AliCentralCorrectionManager::GetSecondaryMap ( ) const

Get the secondary correction map

Returns
Get the secondary correction map object or null

Get the secondary correction map

Returns
Get the secondary correction map object or null

Definition at line 130 of file AliCentralCorrectionManager.cxx.

Referenced by GetEtaAxis(), GetVertexAxis(), AliCentralMultiplicityTask::Print(), and AliCentralMultiplicityTask::VtxBin::SetupForData().

const TAxis * AliCentralCorrectionManager::GetVertexAxis ( ) const
virtual

Get the vertex axis

Returns
The vertex axis or null

Reimplemented from AliCorrectionManagerBase.

Definition at line 154 of file AliCentralCorrectionManager.cxx.

Referenced by SetAcceptancePath().

Bool_t AliCentralCorrectionManager::Init ( ULong_t  runNumber,
UShort_t  collisionSystem,
UShort_t  cmsNN,
Short_t  field,
Bool_t  mc = false,
Bool_t  satelliteCollisions = false,
UInt_t  what = kDefault,
Bool_t  force = false 
)

Read in corrections based on the parameters given

Parameters
runNumberRun number
collisionSystemCollision system
cmsNNCenter of mass energy per nuclean pair [GeV]
fieldMagnetic field setting [kG]
mcMonte-carlo switch
whatWhat to read in.
forceForce (re-)reading of specified things
satelliteCollisionsFor satellite collisions
Returns

Definition at line 99 of file AliCentralCorrectionManager.cxx.

Referenced by AddTaskCentralMult(), Init(), and SetAcceptancePath().

Bool_t AliCentralCorrectionManager::Init ( ULong_t  runNumber,
const char *  collisionSystem,
Float_t  cmsNN,
Float_t  field,
Bool_t  mc = false,
Bool_t  satelliteCollisions = false,
UInt_t  what = kStandard,
Bool_t  force = false 
)

Read in correction based on passed parameters

Parameters
runNumberRun number
collisionSystemCollision system string
cmsNNCenter of mass energy per nucleon pair [GeV]
fieldMagnetic field [kG]
mcMonte-carlo switch
whatWhat to read in
forceForce (re-)reading of specified things
satelliteCollisionsFor satellite collisions
Returns
true on success

Definition at line 65 of file AliCentralCorrectionManager.cxx.

AliCentralCorrectionManager & AliCentralCorrectionManager::Instance ( )
static

Access to the singleton object

Returns
Reference to the singleton object

Definition at line 27 of file AliCentralCorrectionManager.cxx.

Referenced by AddTaskCentralMult(), ExtractMCCorr(), MakeSPDExtractor(), AliCentralMultiplicityTask::Print(), and AliCentralMultiplicityTask::VtxBin::SetupForData().

void AliCentralCorrectionManager::SetAcceptancePath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 82 of file AliCentralCorrectionManager.h.

void AliCentralCorrectionManager::SetSecondaryMapPath ( const char *  d)
inline

Set path to corrections

Parameters
dPath

Definition at line 73 of file AliCentralCorrectionManager.h.

Member Data Documentation

AliCentralCorrectionManager * AliCentralCorrectionManager::fgInstance = 0
staticprivate

Static singleton instance

Definition at line 165 of file AliCentralCorrectionManager.h.

Referenced by GetVertexAxis(), and Instance().

const char * AliCentralCorrectionManager::fgkAcceptanceSkel = "acceptance"
staticprivate

Definition at line 172 of file AliCentralCorrectionManager.h.

Referenced by AliCentralCorrectionManager().

const char * AliCentralCorrectionManager::fgkSecondaryMapSkel = "secondary"
staticprivate

Definition at line 171 of file AliCentralCorrectionManager.h.

Referenced by AliCentralCorrectionManager().


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