![]() |
AliPhysics
2c8507d (2c8507d)
|
#include <AliCorrectionManagerBase.h>
Classes | |
struct | Correction |
Public Types | |
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 | |
virtual | ~AliCorrectionManagerBase () |
virtual void | SetPrefix (const TString &prefix) |
virtual void | SetEnableFallBack (Bool_t use=true) |
const char * | GetObjectName (Int_t what) const |
Storing corrections | |
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 |
Getting the corrections | |
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) |
Get axis objects. | |
virtual const TAxis * | GetVertexAxis () const |
virtual const TAxis * | GetEtaAxis () const |
Misc | |
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) |
Protected Attributes | |
TObjArray | fCorrections |
Bool_t | fIsInit |
ULong_t | fRun |
UShort_t | fSys |
UShort_t | fSNN |
Short_t | fField |
Bool_t | fMC |
Bool_t | fSatellite |
AliOADBForward * | fDB |
Bool_t | fDebug |
do not store More... | |
Bool_t | fFallBack |
Base class for correction managers.
A correction is added to the manager by calling RegisterCorrection
In case the derived object is to be a singleton, one has to take a little extra care about when the constructor is called - especially if the singleton is to be streamed to disk:
It is important - for I/O that default construction does not register the corrections. This should only be done in-code on first construction.
Definition at line 80 of file AliCorrectionManagerBase.h.
Enumerator | |
---|---|
kIgnoreValue | |
kIgnoreField |
Definition at line 83 of file AliCorrectionManagerBase.h.
Enumerator | |
---|---|
kRun | |
kSys | |
kSNN | |
kField | |
kMC | |
kSatellite | |
kStandard | |
kFull |
Definition at line 87 of file AliCorrectionManagerBase.h.
|
virtual |
Destructor
Definition at line 96 of file AliCorrectionManagerBase.cxx.
|
protected |
Constructor
Definition at line 16 of file AliCorrectionManagerBase.cxx.
|
protected |
Constructor
Definition at line 32 of file AliCorrectionManagerBase.cxx.
|
protected |
Copy Constructor
Definition at line 49 of file AliCorrectionManagerBase.cxx.
|
virtual |
Append the content of the file addition to the destination file for this manager. This used TFileMerger::PartialMerge
destination | Filename of destination storage (in OADB_PATH) |
addition | Filename of addition. |
Reimplemented in AliForwardCorrectionManager, and AliCentralCorrectionManager.
Definition at line 188 of file AliCorrectionManagerBase.cxx.
Referenced by AliCentralCorrectionManager::Append(), and AliForwardCorrectionManager::Append().
|
virtual |
Browse this object
b | Browser to use |
Definition at line 144 of file AliCorrectionManagerBase.cxx.
|
protected |
Read in all corrections
run | Run number |
sys | System |
sNN | Center of mass energy |
fld | L3 magnetic field |
mc | For simulations |
sat | For satellite interactions |
Definition at line 411 of file AliCorrectionManagerBase.cxx.
Referenced by InitCorrections().
|
virtual |
Check if the specified corrrections have been initialized
what | Corrections to check |
verbose | If true, be verbose |
Definition at line 248 of file AliCorrectionManagerBase.cxx.
Referenced by AliBaseESDTask::CheckCorrections().
|
protected |
|
virtual |
Write a new database file with tables that only has one entry for each query tuple.
destination | Where to write the new file |
verb | Whether to be verbose |
all | If true, copy all entries |
Definition at line 215 of file AliCorrectionManagerBase.cxx.
Referenced by CleanOADB().
Enable the correction at id
id | Identifier |
enable | Whether to enable (true) or disable (false) |
Definition at line 341 of file AliCorrectionManagerBase.cxx.
Referenced by EnableCorrections(), AliCentralCorrectionManager::Init(), and AliForwardCorrectionManager::Init().
|
virtual |
Convinience function to enable corrections on-mass. User class should overload this to properly enable corrections based on the bit identifiers.
what | Bit mask of correction identifiers. |
Definition at line 239 of file AliCorrectionManagerBase.cxx.
Referenced by CleanOADB(), and AliBaseESDTask::ReadCorrections().
Get the object corresponding to ID
id | Correction identifier |
Definition at line 365 of file AliCorrectionManagerBase.cxx.
Referenced by AliCentralCorrectionManager::GetAcceptance(), AliForwardCorrectionManager::GetAcceptance(), AliForwardCorrectionManager::GetDoubleHit(), AliForwardCorrectionManager::GetELossFit(), AliForwardCorrectionManager::GetMergingEfficiency(), AliForwardCorrectionManager::GetNoiseGain(), AliCentralCorrectionManager::GetSecondaryMap(), AliForwardCorrectionManager::GetSecondaryMap(), and AliForwardCorrectionManager::GetVertexBias().
Get the object corresponding to ID
id | Correction identifier |
Definition at line 376 of file AliCorrectionManagerBase.cxx.
|
protected |
Get the correction at id
id | Identifier |
Definition at line 304 of file AliCorrectionManagerBase.cxx.
Referenced by CheckCorrections(), CleanUp(), EnableCorrection(), EnableCorrections(), Get(), GetId(), GetObjectName(), Print(), ReadCorrection(), SetCorrectionFile(), SetPrefix(), and Store().
|
protected |
Get the correction at id
id | Identifier |
Definition at line 312 of file AliCorrectionManagerBase.cxx.
|
inlinevirtual |
Get the \(\eta\) axis
Reimplemented in AliForwardCorrectionManager, and AliCentralCorrectionManager.
Definition at line 226 of file AliCorrectionManagerBase.h.
Referenced by AliBaseESDTask::ReadCorrections().
Get the id of the correction with a given name
what | Name of correction to look for |
Definition at line 329 of file AliCorrectionManagerBase.cxx.
Get the id of the correction to store an object
obj | Correction object |
Definition at line 353 of file AliCorrectionManagerBase.cxx.
const char * AliCorrectionManagerBase::GetObjectName | ( | Int_t | what | ) | const |
Definition at line 274 of file AliCorrectionManagerBase.cxx.
Referenced by DrawCorrAcc2(), DrawCorrVtxBias(), ExtractAcceptance(), GetObjects(), MakeCorrSecMap(), and MakeELossFit::Run().
|
inlinevirtual |
Get the vertex axis
Reimplemented in AliForwardCorrectionManager, and AliCentralCorrectionManager.
Definition at line 220 of file AliCorrectionManagerBase.h.
Referenced by AliBaseESDTask::ReadCorrections().
Bool_t AliCorrectionManagerBase::InitCorrections | ( | ULong_t | run, |
UShort_t | sys, | ||
UShort_t | sNN, | ||
Short_t | fld, | ||
Bool_t | mc, | ||
Bool_t | sat, | ||
Bool_t | force = false |
||
) |
Read in all corrections
run | Run number |
sys | System |
sNN | Center of mass energy |
fld | L3 magnetic field |
mc | For simulations |
sat | For satellite interactions |
force | Force-reread |
Definition at line 388 of file AliCorrectionManagerBase.cxx.
Referenced by AliCentralCorrectionManager::Init(), AliForwardCorrectionManager::Init(), and AliBaseESDTask::ReadCorrections().
|
inlinevirtual |
Flag that this is a folder
Definition at line 259 of file AliCorrectionManagerBase.h.
|
inlinevirtual |
Check if the manager is initialized
Definition at line 238 of file AliCorrectionManagerBase.h.
Referenced by AliCentralMultiplicityTask::Print().
|
protected |
Assignement operator
o | Object to assign from |
Definition at line 72 of file AliCorrectionManagerBase.cxx.
|
virtual |
Print information
option | Options: |
Definition at line 115 of file AliCorrectionManagerBase.cxx.
Referenced by CleanOADB(), and AliBaseESDTask::Print().
|
protected |
Read in a correction
id | Correction identifier |
run | Run number |
sys | System |
sNN | Center of mass energy |
fld | L3 magnetic field |
mc | For simulations |
sat | For satellite interactions |
Definition at line 472 of file AliCorrectionManagerBase.cxx.
Referenced by ReadCorrections().
|
protected |
Read in all corrections
run | Run number |
sys | System |
sNN | Center of mass energy |
fld | L3 magnetic field |
mc | For simulations |
sat | For satellite interactions |
Definition at line 493 of file AliCorrectionManagerBase.cxx.
Referenced by InitCorrections().
|
protected |
Register a correction
id | Identifier |
corr | Correction |
Definition at line 285 of file AliCorrectionManagerBase.cxx.
Referenced by AliCentralCorrectionManager::AliCentralCorrectionManager(), AliForwardCorrectionManager::AliForwardCorrectionManager(), and RegisterCorrection().
|
protected |
Register a new correction.
id | Identifier |
tableName | Table name |
fileName | File name |
cls | Class |
fields | Fields |
enabled | Enabled or not |
Definition at line 292 of file AliCorrectionManagerBase.cxx.
|
protected |
Set the correction file
id | Identifier |
fileName | file |
Referenced by AliCentralCorrectionManager::SetAcceptancePath(), AliForwardCorrectionManager::SetAcceptancePath(), AliForwardCorrectionManager::SetDoubleHitPath(), AliForwardCorrectionManager::SetELossFitsPath(), AliForwardCorrectionManager::SetMergingEffPath(), AliCentralCorrectionManager::SetSecondaryMapPath(), AliForwardCorrectionManager::SetSecondaryMapPath(), and AliForwardCorrectionManager::SetVertexBiasPath().
Set the correction file name for correction at i
i | Identifier |
file | Filename |
Definition at line 320 of file AliCorrectionManagerBase.cxx.
|
inlinevirtual |
Set whehter to enable debug information
debug | if true, do verbose queries |
Definition at line 265 of file AliCorrectionManagerBase.h.
Referenced by MultCutDrawer::Init(), and CorrDrawer::Run().
|
inlinevirtual |
Set whether to enable fall-back queries
use | If true, enable fall-back queries |
Definition at line 112 of file AliCorrectionManagerBase.h.
Referenced by AliForwardQATask::AliForwardQATask().
|
virtual |
Set the prefix to use when looking for the input files
prefix | Prefix to use for all corrections |
Definition at line 151 of file AliCorrectionManagerBase.cxx.
Referenced by AddTaskCentralMult(), AddTaskFMDELoss(), AddTaskForwardMult(), and CorrDrawer::Run().
|
virtual |
Store a correction
o | Object to store |
runNo | Run number of run this was created from |
sys | Collision system (1:pp, 2:PbPb, 3:pPb) |
sNN | Center of mass energy in GeV |
field | L3 magnetic field in kG |
mc | If true, this is for simulations |
sat | If true, contain info for satellite interactions |
file | (optional) file name to store in |
meth | (optional) method for run look to use. |
Definition at line 164 of file AliCorrectionManagerBase.cxx.
Referenced by CorrExtractor::Extract(), ExtractAcceptance(), Extractor::ExtractFile(), ExtractForRun(), and Trending2ELoss().
|
protected |
Definition at line 651 of file AliCorrectionManagerBase.h.
Referenced by AliCorrectionManagerBase(), Browse(), GetCorrection(), GetId(), operator=(), Print(), ReadCorrections(), RegisterCorrection(), SetPrefix(), and Store().
|
protected |
Definition at line 659 of file AliCorrectionManagerBase.h.
Referenced by CleanUp(), InitCorrections(), operator=(), ReadCorrection(), ReadCorrections(), and Store().
|
protected |
do not store
Definition at line 660 of file AliCorrectionManagerBase.h.
Referenced by operator=(), ReadCorrection(), and SetDebug().
|
protected |
Definition at line 661 of file AliCorrectionManagerBase.h.
Referenced by operator=(), ReadCorrection(), and SetEnableFallBack().
|
protected |
Definition at line 656 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 652 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), InitCorrections(), IsInit(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 657 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 653 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 658 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 655 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().
|
protected |
Definition at line 654 of file AliCorrectionManagerBase.h.
Referenced by CheckConditions(), operator=(), Print(), and ReadCorrections().