![]() |
AliPhysics
48852ec (48852ec)
|
#include <AliOADBForward.h>
Public Member Functions | |
Table (TTree *tree, Bool_t isNew, ERunSelectMode mode=kNear) | |
Table (const Table &other) | |
~Table () | |
Table & | operator= (const Table &other) |
void | SetVerbose (Bool_t verb=true) |
void | SetEnableFallBack (Bool_t use=true) |
const Char_t * | GetTableName () const |
const Char_t * | GetName () const |
void | Print (Option_t *option="") const |
void | Browse (TBrowser *b) |
Bool_t | IsOpen (Bool_t rw=false) const |
ClassDef (Table, 1) | |
Open/close/flush | |
Bool_t | Update () |
Bool_t | Close () |
Queries | |
Int_t | Query (ULong_t runNo=0, ERunSelectMode mode=kNear, UShort_t sys=0, UShort_t sNN=0, Short_t fld=kInvalidField, Bool_t mc=false, Bool_t sat=false) const |
Int_t | Query (ULong_t runNo, ERunSelectMode mode, const TString &q) const |
Bool_t | Insert (TObject *o, ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field, Bool_t mc=false, Bool_t sat=false, ULong_t aliRev=0, const TString &author="") |
Int_t | GetEntry (ULong_t run=0, ERunSelectMode mode=kNear, UShort_t sys=0, UShort_t sNN=0, Short_t fld=0, Bool_t mc=false, Bool_t sat=false) const |
Entry * | Get (ULong_t run=0, ERunSelectMode mode=kNear, UShort_t sys=0, UShort_t sNN=0, Short_t fld=0, Bool_t mc=false, Bool_t sat=false) const |
TObject * | GetData (ULong_t run=0, ERunSelectMode mode=kNear, UShort_t sys=0, UShort_t sNN=0, Short_t fld=0, Bool_t mc=false, Bool_t sat=false) const |
Public Attributes | |
TTree * | fTree |
Entry * | fEntry |
Bool_t | fVerbose |
ERunSelectMode | fMode |
Bool_t | fFallBack |
A table on the Forward OADB - the underlying storage is a TTree containing Entry objects.
Definition at line 164 of file AliOADBForward.h.
AliOADBForward::Table::Table | ( | TTree * | tree, |
Bool_t | isNew, | ||
ERunSelectMode | mode = kNear |
||
) |
Constructor
tree | Tree |
isNew | Whether to make the branch |
mode | How to select on the run number |
Definition at line 148 of file AliOADBForward.cxx.
AliOADBForward::Table::Table | ( | const Table & | other | ) |
Copy constructor
other | Object to copy from |
Definition at line 174 of file AliOADBForward.cxx.
AliOADBForward::Table::~Table | ( | ) |
void AliOADBForward::Table::Browse | ( | TBrowser * | b | ) |
Browse this table
Definition at line 606 of file AliOADBForward.cxx.
AliOADBForward::Table::ClassDef | ( | Table | , |
1 | |||
) |
Bool_t AliOADBForward::Table::Close | ( | ) |
AliOADBForward::Entry * AliOADBForward::Table::Get | ( | ULong_t | run = 0 , |
ERunSelectMode | mode = kNear , |
||
UShort_t | sys = 0 , |
||
UShort_t | sNN = 0 , |
||
Short_t | fld = 0 , |
||
Bool_t | mc = false , |
||
Bool_t | sat = false |
||
) | const |
Query the tree for an object. The strategy is as follows.
This allow us to specify default objects for a period, and for collision system, energy, and field setting.
run | Run number |
mode | Run selection mode |
sys | Collision system (1: pp, 2: PbPb, 3: pPb) |
sNN | Center of mass energy (GeV) |
fld | L3 magnetic field (kG) |
mc | For MC only |
sat | For satellite interactions |
Definition at line 533 of file AliOADBForward.cxx.
Referenced by AliOADBForward::CopyEntry(), and AliOADBForward::Get().
TObject * AliOADBForward::Table::GetData | ( | ULong_t | run = 0 , |
ERunSelectMode | mode = kNear , |
||
UShort_t | sys = 0 , |
||
UShort_t | sNN = 0 , |
||
Short_t | fld = 0 , |
||
Bool_t | mc = false , |
||
Bool_t | sat = false |
||
) | const |
Query the tree for an object. The strategy is as follows.
This allow us to specify default objects for a period, and for collision system, energy, and field setting.
run | Run number |
mode | Run selection mode |
sys | Collision system (1: pp, 2: PbPb, 3: pPb) |
sNN | Center of mass energy (GeV) |
fld | L3 magnetic field (kG) |
mc | For MC only |
sat | For satellite interactions |
Definition at line 571 of file AliOADBForward.cxx.
Referenced by AliOADBForward::GetData().
Int_t AliOADBForward::Table::GetEntry | ( | ULong_t | run = 0 , |
ERunSelectMode | mode = kNear , |
||
UShort_t | sys = 0 , |
||
UShort_t | sNN = 0 , |
||
Short_t | fld = 0 , |
||
Bool_t | mc = false , |
||
Bool_t | sat = false |
||
) | const |
Query the tree for an object. The strategy is as follows.
This allow us to specify default objects for a period, and for collision system, energy, and field setting.
run | Run number |
mode | Run selection mode |
sys | Collision system (1: pp, 2: PbPb, 3: pPb) |
sNN | Center of mass energy (GeV) |
fld | L3 magnetic field (kG) |
mc | For MC only |
sat | For satellite interactions |
Definition at line 477 of file AliOADBForward.cxx.
Referenced by AliCorrectionManagerBase::Correction::CleanIt().
const Char_t * AliOADBForward::Table::GetName | ( | ) | const |
Overload TObject::GetName
Definition at line 224 of file AliOADBForward.cxx.
Referenced by AliOADBForward::Browse(), and ForwardOADBGUI::UseDB().
const Char_t * AliOADBForward::Table::GetTableName | ( | ) | const |
Bool_t AliOADBForward::Table::Insert | ( | TObject * | o, |
ULong_t | runNo, | ||
UShort_t | sys, | ||
UShort_t | sNN, | ||
Short_t | field, | ||
Bool_t | mc = false , |
||
Bool_t | sat = false , |
||
ULong_t | aliRev = 0 , |
||
const TString & | author = "" |
||
) |
Insert a new entry into the tree
o | Object to write |
runNo | Run number |
sys | Collision system (1: pp, 2:PbPb, 3:pPb) |
sNN | Center of mass energy (GeV) |
field | L3 magnetic field (kG) |
mc | If true, only for MC |
sat | For satellite interactions |
aliRev | AliROOT revision |
author | Creater of this correction |
Definition at line 412 of file AliOADBForward.cxx.
Referenced by AliOADBForward::CopyEntry(), and AliOADBForward::Insert().
Check if the tree was opened.
rw | If true, also check if the file is read/write |
Definition at line 613 of file AliOADBForward.cxx.
AliOADBForward::Table & AliOADBForward::Table::operator= | ( | const Table & | other | ) |
Assignemt operator
other | Object to assign form |
Definition at line 198 of file AliOADBForward.cxx.
void AliOADBForward::Table::Print | ( | Option_t * | option = "" | ) | const |
Print the contents of the tree
option | Passed to TTree::Scan |
Definition at line 589 of file AliOADBForward.cxx.
Referenced by ForwardOADBGUI::HandleList(), and AliOADBForward::Print().
Int_t AliOADBForward::Table::Query | ( | ULong_t | runNo = 0 , |
ERunSelectMode | mode = kNear , |
||
UShort_t | sys = 0 , |
||
UShort_t | sNN = 0 , |
||
Short_t | fld = kInvalidField , |
||
Bool_t | mc = false , |
||
Bool_t | sat = false |
||
) | const |
Query the tree
runNo | Run number |
mode | Run selection mode |
sys | Collision system (1: pp, 2: PbPb, 3: pPb) |
sNN | Center of mass energy (GeV) |
fld | L3 magnetic field (kG) |
mc | For MC only |
sat | For satellite events |
mode | How to select on the run number |
Definition at line 278 of file AliOADBForward.cxx.
Int_t AliOADBForward::Table::Query | ( | ULong_t | runNo, |
ERunSelectMode | mode, | ||
const TString & | q | ||
) | const |
Run a query with pre-build conditions
q | query string |
runNo | The given run number |
mode | Run selection mode |
Definition at line 294 of file AliOADBForward.cxx.
|
inline |
Set wheter to enable fall-back queries
use | If true, enable fall-back queries |
Definition at line 208 of file AliOADBForward.h.
Referenced by AliOADBForward::OpenTable().
|
inline |
Set the verbosity
verb |
Definition at line 202 of file AliOADBForward.h.
Referenced by AliOADBForward::OpenTable().
Bool_t AliOADBForward::Table::Update | ( | ) |
Entry* AliOADBForward::Table::fEntry |
Definition at line 423 of file AliOADBForward.h.
Referenced by AliCorrectionManagerBase::Correction::CleanIt(), ForwardOADBGUI::HandleItem(), ForwardOADBGUI::HandleList(), operator=(), and Table().
Bool_t AliOADBForward::Table::fFallBack |
Definition at line 426 of file AliOADBForward.h.
Referenced by SetEnableFallBack().
ERunSelectMode AliOADBForward::Table::fMode |
Definition at line 425 of file AliOADBForward.h.
Referenced by AliCorrectionManagerBase::Correction::CleanIt(), AliOADBForward::CopyEntry(), operator=(), and Table().
TTree* AliOADBForward::Table::fTree |
Definition at line 422 of file AliOADBForward.h.
Referenced by AliCorrectionManagerBase::Correction::CleanIt(), AliOADBForward::GetFiles(), ForwardOADBGUI::HandleItem(), ForwardOADBGUI::HandleList(), operator=(), Table(), and ForwardOADBGUI::UseDB().
Bool_t AliOADBForward::Table::fVerbose |
Definition at line 424 of file AliOADBForward.h.
Referenced by operator=(), and SetVerbose().