![]() |
AliPhysics
d84cbc0 (d84cbc0)
|
#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 531 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 542 of file AliCorrectionManagerBase.cxx.
AliCorrectionManagerBase::Correction::Correction | ( | const Correction & | o | ) |
Copy constructor
o | Object to copy from |
Definition at line 557 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 838 of file AliCorrectionManagerBase.cxx.
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 857 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::CleanUp().
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 602 of file AliCorrectionManagerBase.cxx.
|
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 760 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::CheckCorrections(), and AliCorrectionManagerBase::Get().
const TObject * AliCorrectionManagerBase::Correction::Get | ( | ) | const |
Get the data of the correction
Definition at line 770 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 585 of file AliCorrectionManagerBase.cxx.
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 619 of file AliCorrectionManagerBase.cxx.
AliCorrectionManagerBase::Correction & AliCorrectionManagerBase::Correction::operator= | ( | const Correction & | o | ) |
Assignement operator
o | Object to assign from |
Definition at line 569 of file AliCorrectionManagerBase.cxx.
void AliCorrectionManagerBase::Correction::Print | ( | Option_t * | option = "" | ) | const |
Print information to the screen
option | Options |
Definition at line 799 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::Print().
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 644 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::ReadCorrection().
|
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 702 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::Store().
const TClass * AliCorrectionManagerBase::Correction::TheClass | ( | ) | const |
Get pointer to class meta information. Sets the internal member if not done already.
Definition at line 781 of file AliCorrectionManagerBase.cxx.
Referenced by AliCorrectionManagerBase::GetObjectName().
const TString AliCorrectionManagerBase::Correction::fClientCls |
Class of correction objects.
Definition at line 472 of file AliCorrectionManagerBase.h.
|
mutable |
Definition at line 471 of file AliCorrectionManagerBase.h.
Referenced by AliCorrectionManagerBase::GetId(), operator=(), and AliCorrectionManagerBase::Store().
Bool_t AliCorrectionManagerBase::Correction::fEnabled |
Definition at line 474 of file AliCorrectionManagerBase.h.
Referenced by AliCorrectionManagerBase::CleanUp(), Enable(), AliCorrectionManagerBase::EnableCorrection(), operator=(), and AliCorrectionManagerBase::ReadCorrection().
TString AliCorrectionManagerBase::Correction::fLastEntry |
Definition at line 475 of file AliCorrectionManagerBase.h.
Referenced by operator=().
TObject* AliCorrectionManagerBase::Correction::fObject |
Definition at line 476 of file AliCorrectionManagerBase.h.
Referenced by operator=(), and ~Correction().
UShort_t AliCorrectionManagerBase::Correction::fQueryFields |
Definition at line 473 of file AliCorrectionManagerBase.h.
Referenced by operator=().