![]() |
AliPhysics
7c9d977 (7c9d977)
|
#include <AliCentralCorrectionManager.h>
Public Types | |
enum | ECorrection { kSecondaryMap = 0x01, kAcceptance = 0x02, kDefault = (kSecondaryMap|kAcceptance), kAll = (kSecondaryMap|kAcceptance) } |
![]() | |
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_t * | GetName () 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 TAxis * | GetVertexAxis () const |
const TAxis * | GetEtaAxis () const |
const AliCentralCorrSecondaryMap * | GetSecondaryMap () const |
const AliCentralCorrAcceptance * | GetAcceptance () const |
![]() | |
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 AliCentralCorrectionManager & | Instance () |
Private Types | |
enum | EId { kIdSecondaryMap = 0, kIdAcceptance } |
Private Member Functions | |
AliCentralCorrectionManager (Bool_t notUsed) | |
Static Private Attributes | |
static AliCentralCorrectionManager * | fgInstance = 0 |
Object name | |
static const Char_t * | fgkSecondaryMapSkel = "secondary" |
static const Char_t * | fgkAcceptanceSkel = "acceptance" |
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.
Enumeration of things that can be read in
Enumerator | |
---|---|
kSecondaryMap | |
kAcceptance | |
kDefault | |
kAll |
Definition at line 46 of file AliCentralCorrectionManager.h.
|
private |
Enumeration of things that can be read in
Enumerator | |
---|---|
kIdSecondaryMap | |
kIdAcceptance |
Definition at line 38 of file AliCentralCorrectionManager.h.
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().
|
private |
Non-default constructor - initializes corrections - used by singleton access member function Instance
notUsed | Ignored |
Definition at line 47 of file AliCentralCorrectionManager.cxx.
const AliCentralCorrAcceptance * AliCentralCorrectionManager::GetAcceptance | ( | ) | const |
Get the acceptance correction due to dead channels
Get the acceptance correction due to dead channels
Definition at line 141 of file AliCentralCorrectionManager.cxx.
Referenced by GetEtaAxis(), and AliCentralMultiplicityTask::VtxBin::SetupForData().
|
inlinevirtual |
Get the \(\eta\) axis
Reimplemented from AliCorrectionManagerBase.
Definition at line 141 of file AliCentralCorrectionManager.h.
|
inline |
Definition at line 67 of file AliCentralCorrectionManager.h.
const AliCentralCorrSecondaryMap * AliCentralCorrectionManager::GetSecondaryMap | ( | ) | const |
Get the secondary correction map
Get the secondary correction map
Definition at line 130 of file AliCentralCorrectionManager.cxx.
Referenced by GetEtaAxis(), GetVertexAxis(), AliCentralMultiplicityTask::Print(), and AliCentralMultiplicityTask::VtxBin::SetupForData().
|
virtual |
Get the vertex axis
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
runNumber | Run number |
collisionSystem | Collision system |
cmsNN | Center of mass energy per nuclean pair [GeV] |
field | Magnetic field setting [kG] |
mc | Monte-carlo switch |
what | What to read in. |
force | Force (re-)reading of specified things |
satelliteCollisions | For satellite collisions |
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
runNumber | Run number |
collisionSystem | Collision system string |
cmsNN | Center of mass energy per nucleon pair [GeV] |
field | Magnetic field [kG] |
mc | Monte-carlo switch |
what | What to read in |
force | Force (re-)reading of specified things |
satelliteCollisions | For satellite collisions |
Definition at line 65 of file AliCentralCorrectionManager.cxx.
|
static |
Access to the singleton object
Definition at line 27 of file AliCentralCorrectionManager.cxx.
Referenced by AddTaskCentralMult(), ExtractMCCorr(), MakeSPDExtractor(), AliCentralMultiplicityTask::Print(), and AliCentralMultiplicityTask::VtxBin::SetupForData().
|
inline |
Set path to corrections
d | Path |
Definition at line 82 of file AliCentralCorrectionManager.h.
|
inline |
Set path to corrections
d | Path |
Definition at line 73 of file AliCentralCorrectionManager.h.
|
staticprivate |
Static singleton instance
Definition at line 165 of file AliCentralCorrectionManager.h.
Referenced by GetVertexAxis(), and Instance().
|
staticprivate |
Definition at line 172 of file AliCentralCorrectionManager.h.
Referenced by AliCentralCorrectionManager().
|
staticprivate |
Definition at line 171 of file AliCentralCorrectionManager.h.
Referenced by AliCentralCorrectionManager().