![]() |
AliPhysics
2b88e80 (2b88e80)
|
#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 |
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 149 of file AliOADBForward.cxx.
AliOADBForward::Table::Table | ( | const Table & | other | ) |
Copy constructor
other | Object to copy from |
Definition at line 175 of file AliOADBForward.cxx.
AliOADBForward::Table::~Table | ( | ) |
void AliOADBForward::Table::Browse | ( | TBrowser * | b | ) |
Browse this table
Definition at line 607 of file AliOADBForward.cxx.
Bool_t AliOADBForward::Table::Close | ( | ) |
Close connection
Definition at line 261 of file AliOADBForward.cxx.
Referenced by ~Table().
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 534 of file AliOADBForward.cxx.
Referenced by AliOADBForward::CopyEntry(), AliOADBForward::Get(), and GetData().
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 572 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 478 of file AliOADBForward.cxx.
Referenced by AliCorrectionManagerBase::Correction::CleanIt(), and Get().
const Char_t * AliOADBForward::Table::GetName | ( | ) | const |
Overload TObject::GetName
Definition at line 225 of file AliOADBForward.cxx.
Referenced by AliOADBForward::Browse(), Print(), Query(), and ForwardOADBGUI::UseDB().
const Char_t * AliOADBForward::Table::GetTableName | ( | ) | const |
Get the name of the tree
Definition at line 216 of file AliOADBForward.cxx.
Referenced by GetName().
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 413 of file AliOADBForward.cxx.
Referenced by AliOADBForward::CopyEntry(), and AliOADBForward::Insert().
AliOADBForward::Table & AliOADBForward::Table::operator= | ( | const Table & | other | ) |
Assignemt operator
other | Object to assign form |
Definition at line 199 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 590 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 279 of file AliOADBForward.cxx.
Referenced by GetEntry().
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 295 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(), Close(), Get(), ForwardOADBGUI::HandleItem(), ForwardOADBGUI::HandleList(), Insert(), operator=(), Print(), and Table().
Bool_t AliOADBForward::Table::fFallBack |
Definition at line 426 of file AliOADBForward.h.
Referenced by GetEntry().
ERunSelectMode AliOADBForward::Table::fMode |
Definition at line 425 of file AliOADBForward.h.
Referenced by AliCorrectionManagerBase::Correction::CleanIt(), AliOADBForward::CopyEntry(), operator=(), Print(), Query(), and Table().
TTree* AliOADBForward::Table::fTree |
Definition at line 422 of file AliOADBForward.h.
Referenced by Browse(), AliCorrectionManagerBase::Correction::CleanIt(), Close(), Get(), AliOADBForward::GetFiles(), GetName(), GetTableName(), ForwardOADBGUI::HandleItem(), ForwardOADBGUI::HandleList(), Insert(), IsOpen(), operator=(), Print(), Query(), Table(), Update(), and ForwardOADBGUI::UseDB().
Bool_t AliOADBForward::Table::fVerbose |
Definition at line 424 of file AliOADBForward.h.
Referenced by Get(), GetEntry(), Insert(), operator=(), and Query().