![]() |
AliPhysics
2853087 (2853087)
|
#include <AliCorrectionManagerBase.h>
Public Member Functions | |
Correction () | |
Correction (const TString &tableName, const TString &fileName, TClass *cls, UShort_t queryFields=kStandard, Bool_t enabled=false) | |
Correction (const Correction &o) | |
Correction & | operator= (const Correction &o) |
~Correction () | |
Bool_t | ReadIt (AliOADBForward *db, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, Bool_t vrb=false, Bool_t fbk=false) |
Bool_t | StoreIt (AliOADBForward *db, TObject *o, ULong_t run, UShort_t sys, UShort_t sNN, Short_t fld, Bool_t mc, Bool_t sat, const char *file=0, const char *meth="NEAR") const |
void | Enable (Bool_t enabled=true) |
TObject * | Get () |
const TObject * | Get () const |
void | SetFile (const TString &fileName) |
const TClass * | TheClass () const |
void | Print (Option_t *option="") const |
void | Browse (TBrowser *b) |
Bool_t | IsFolder () const |
void | MassageFields (ULong_t &run, UShort_t &sys, UShort_t &sNN, Short_t &fld, Bool_t &mc, Bool_t &sat) const |
void | CorrectFields (ULong_t &run, UShort_t &sys, UShort_t &sNN, Short_t &fld, Bool_t &mc, Bool_t &sat) const |
Bool_t | CleanIt (AliOADBForward *db, const TString &dest, Bool_t verb=false, Bool_t all=false) const |
Bool_t | OpenIt (AliOADBForward *db, Bool_t vrb=false, Bool_t fallback=false) const |
Public Attributes | |
TClass * | fCls |
const TString | fClientCls |
Class of correction objects. More... | |
UShort_t | fQueryFields |
Bool_t | fEnabled |
TString | fLastEntry |
TObject * | fObject |
Correction registration. These objects are streamed, so we need to make them public. That does not mean that these objects should be used outside of this (or derived) classe.
Definition at line 272 of file AliCorrectionManagerBase.h.
AliCorrectionManagerBase::Correction::Correction | ( | ) |
Constructor - for I/O
Definition at line 539 of file AliCorrectionManagerBase.cxx.
AliCorrectionManagerBase::Correction::Correction | ( | const TString & | tableName, |
const TString & | fileName, | ||
TClass * | cls, | ||
UShort_t | queryFields = kStandard , |
||
Bool_t | enabled = false |
||
) |
Constructor
tableName | Table name |
fileName | File name |
cls | Class |
queryFields | Enabled fields |
enabled | Enabled or not |
Definition at line 550 of file AliCorrectionManagerBase.cxx.
AliCorrectionManagerBase::Correction::Correction | ( | const Correction & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 565 of file AliCorrectionManagerBase.cxx.
|
inline |
Destructor
Definition at line 309 of file AliCorrectionManagerBase.h.
void AliCorrectionManagerBase::Correction::Browse | ( | TBrowser * | b | ) |
Browse this object
b | Browser to use |
Definition at line 846 of file AliCorrectionManagerBase.cxx.
Referenced by SetFile().
Bool_t AliCorrectionManagerBase::Correction::CleanIt | ( | AliOADBForward * | db, |
const TString & | dest, | ||
Bool_t | verb = false , |
||
Bool_t | all = false |
||
) | const |
Clean the table of this correction
db | Database |
dest | Destination |
verb | Whether to be verbose or not |
all | If true, copy all entries |
Definition at line 865 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::CleanUp(), and IsFolder().
void AliCorrectionManagerBase::Correction::CorrectFields | ( | ULong_t & | run, |
UShort_t & | sys, | ||
UShort_t & | sNN, | ||
Short_t & | fld, | ||
Bool_t & | mc, | ||
Bool_t & | sat | ||
) | const |
Massage fields updating according to settings
run | On return, the run number |
sys | On return, the system id |
sNN | On return, the collision energy |
fld | On return, the field strength |
mc | On return, the simulation flag |
sat | On return, the satellite flag |
Definition at line 610 of file AliCorrectionManagerBase.cxx.
Referenced by CleanIt(), and IsFolder().
|
inline |
Enable this correction
enabled | If true, correction is enabled |
Definition at line 365 of file AliCorrectionManagerBase.h.
TObject * AliCorrectionManagerBase::Correction::Get | ( | ) |
Get the data of the correction
Definition at line 768 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::CheckCorrections(), Enable(), and AliCorrectionManagerBase::Get().
const TObject * AliCorrectionManagerBase::Correction::Get | ( | ) | const |
Get the data of the correction
Definition at line 778 of file AliCorrectionManagerBase.cxx.
|
inline |
Flag that this is a folder
Definition at line 408 of file AliCorrectionManagerBase.h.
void AliCorrectionManagerBase::Correction::MassageFields | ( | ULong_t & | run, |
UShort_t & | sys, | ||
UShort_t & | sNN, | ||
Short_t & | fld, | ||
Bool_t & | mc, | ||
Bool_t & | sat | ||
) | const |
Massage fields for query according to settings
run | On return, the run number |
sys | On return, the system id |
sNN | On return, the collision energy |
fld | On return, the field strength |
mc | On return, the simulation flag |
sat | On return, the satellite flag |
Definition at line 593 of file AliCorrectionManagerBase.cxx.
Referenced by CleanIt(), IsFolder(), ReadIt(), and StoreIt().
Bool_t AliCorrectionManagerBase::Correction::OpenIt | ( | AliOADBForward * | db, |
Bool_t | vrb = false , |
||
Bool_t | fallback = false |
||
) | const |
Open our data base table
db | Database |
vrb | Whether to be verbose |
fallback | Whether to enable fall-back |
Definition at line 627 of file AliCorrectionManagerBase.cxx.
Referenced by CleanIt(), IsFolder(), and ReadIt().
AliCorrectionManagerBase::Correction & AliCorrectionManagerBase::Correction::operator= | ( | const Correction & | o | ) |
Assignement operator
o | Object to assign from |
Definition at line 577 of file AliCorrectionManagerBase.cxx.
void AliCorrectionManagerBase::Correction::Print | ( | Option_t * | option = "" | ) | const |
Print information to the screen
option | Options |
Definition at line 807 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::Print(), and SetFile().
Bool_t AliCorrectionManagerBase::Correction::ReadIt | ( | AliOADBForward * | db, |
ULong_t | run, | ||
UShort_t | sys, | ||
UShort_t | sNN, | ||
Short_t | fld, | ||
Bool_t | mc, | ||
Bool_t | sat, | ||
Bool_t | vrb = false , |
||
Bool_t | fbk = false |
||
) |
Read the correction
db | Database interface |
run | Run number |
sys | Collision system |
sNN | Center of mass energy per nucleon |
fld | L3 magnetic field |
mc | If true, for simulated data, else real |
sat | If true, for satellite interactions |
vrb | If true, do verbose query |
fbk | Force read |
Definition at line 652 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::ReadCorrection(), and ~Correction().
|
inline |
Set the file the table is stored in
fileName | file name of file table is stored in |
Definition at line 383 of file AliCorrectionManagerBase.h.
Referenced by AliCorrectionManagerBase::SetCorrectionFile(), and AliCorrectionManagerBase::SetPrefix().
Bool_t AliCorrectionManagerBase::Correction::StoreIt | ( | AliOADBForward * | db, |
TObject * | o, | ||
ULong_t | run, | ||
UShort_t | sys, | ||
UShort_t | sNN, | ||
Short_t | fld, | ||
Bool_t | mc, | ||
Bool_t | sat, | ||
const char * | file = 0 , |
||
const char * | meth = "NEAR" |
||
) | const |
Store a correction
db | Possible database interface |
o | Object to store |
run | Run number |
sys | Collision system |
sNN | Center of mass energy per nucleon |
fld | L3 magnetic field |
mc | If true, for simulated data, else real |
sat | If true, for satellite interactions |
file | File to store in |
meth | Default run method |
Definition at line 710 of file AliCorrectionManagerBase.cxx.
Referenced by CleanIt(), AliCorrectionManagerBase::Store(), and ~Correction().
const TClass * AliCorrectionManagerBase::Correction::TheClass | ( | ) | const |
Get pointer to class meta information. Sets the internal member if not done already.
Definition at line 789 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::GetObjectName(), Print(), ReadIt(), SetFile(), and StoreIt().
const TString AliCorrectionManagerBase::Correction::fClientCls |
Class of correction objects.
Definition at line 472 of file AliCorrectionManagerBase.h.
Referenced by TheClass().
|
mutable |
Definition at line 471 of file AliCorrectionManagerBase.h.
Referenced by Browse(), AliCorrectionManagerBase::GetId(), operator=(), ReadIt(), AliCorrectionManagerBase::Store(), and TheClass().
Bool_t AliCorrectionManagerBase::Correction::fEnabled |
Definition at line 474 of file AliCorrectionManagerBase.h.
Referenced by Browse(), AliCorrectionManagerBase::CleanUp(), Enable(), AliCorrectionManagerBase::EnableCorrection(), Get(), operator=(), Print(), AliCorrectionManagerBase::ReadCorrection(), and ReadIt().
TString AliCorrectionManagerBase::Correction::fLastEntry |
Definition at line 475 of file AliCorrectionManagerBase.h.
Referenced by Browse(), operator=(), Print(), and ReadIt().
TObject* AliCorrectionManagerBase::Correction::fObject |
Definition at line 476 of file AliCorrectionManagerBase.h.
Referenced by Browse(), Get(), operator=(), Print(), ReadIt(), and ~Correction().
UShort_t AliCorrectionManagerBase::Correction::fQueryFields |
Definition at line 473 of file AliCorrectionManagerBase.h.
Referenced by Browse(), MassageFields(), operator=(), and Print().