ROOT logo
AliRoot » PWGLF » FORWARD » ANALYSIS2 » AliOADBForward::Table

class AliOADBForward::Table: public TObject

Function Members (Methods)

public:
virtual~Table()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBrowse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
Bool_tClose()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
AliOADBForward::Entry*Get(ULong_t run = 0, AliOADBForward::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, AliOADBForward::ERunSelectMode mode = kNear, UShort_t sys = 0, UShort_t sNN = 0, Short_t fld = 0, Bool_t mc = false, Bool_t sat = false) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetEntry(ULong_t run = 0, AliOADBForward::ERunSelectMode mode = kNear, UShort_t sys = 0, UShort_t sNN = 0, Short_t fld = 0, Bool_t mc = false, Bool_t sat = false) const
virtual const char*TObject::GetIconName() const
virtual const Char_t*GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const Char_t*GetTableName() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
Bool_tInsert(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 = "")
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsOpen(Bool_t rw = false) const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliOADBForward::Table&operator=(const AliOADBForward::Table& other)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") constMENU
Int_tQuery(ULong_t runNo, AliOADBForward::ERunSelectMode mode, const TString& q) const
Int_tQuery(ULong_t runNo = 0, AliOADBForward::ERunSelectMode mode = kNear, UShort_t sys = 0, UShort_t sNN = 0, Short_t fld = kInvalidField, Bool_t mc = false, Bool_t sat = false) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEnableFallBack(Bool_t use = true)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVerbose(Bool_t verb = true)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
AliOADBForward::TableTable(const AliOADBForward::Table& other)
AliOADBForward::TableTable(TTree* tree, Bool_t isNew, AliOADBForward::ERunSelectMode mode = kNear)
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Bool_tUpdate()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
AliOADBForward::Entry*fEntryEntry cache
Bool_tfFallBackEnable fall-back
AliOADBForward::ERunSelectModefModeRun query mode
TTree*fTreeOur tree
Bool_tfVerboseTo be verbose or not

Class Charts

Inheritance Chart:
TObject
AliOADBForward::Table

Function documentation

Table(TTree* tree, Bool_t isNew, AliOADBForward::ERunSelectMode mode = kNear)
Table(const AliOADBForward::Table& other)
 Copy constructor
~Table()
 Close this table

operator=(const AliOADBForward::Table& other)
 Assignment operator

GetTableName() const
 Get the table name or null
GetName() const
 Overload of TObject::GetName

Update()
 Flush to disk

Close()
 Close the connection

Query(ULong_t runNo = 0, AliOADBForward::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

Query(ULong_t runNo, AliOADBForward::ERunSelectMode mode, const TString& q) const
 Run a query against the 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 row in the table

GetEntry(ULong_t run = 0, AliOADBForward::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.

  - First query with all fields
    - If this returns a single entry, return that.
    - If not, then ignore the run number (if given)
      - If this returns a single entry, return that
      - If not, and fall-back is enabled, then
        - Ignore the collision energy (if given)
          - If this returns a single entry, return that.
          - If not, ignore all passed values
            - If this returns a single entry, return that.
            - Otherwise, give up and return -1
      - Otherwise, give up and return -1

 This allow us to specify default objects for a period, and for
 collision system, energy, and field setting.

Get(ULong_t run = 0, AliOADBForward::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.

  - First query with all fields
    - If this returns a single entry, return that.
    - If not, then ignore the run number (if given)
      - If this returns a single entry, return that
      - If not, and fall-back is enabled, then
        - Ignore the collision energy (if given)
          - If this returns a single entry, return that.
          - If not, ignore all passed values
            - If this returns a single entry, return that.
            - Otherwise, give up and return null
      - Otherwise, give up and return null

 This allow us to specify default objects for a period, and for
 collision system, energy, and field setting.

GetData(ULong_t run = 0, AliOADBForward::ERunSelectMode mode = kNear, UShort_t sys = 0, UShort_t sNN = 0, Short_t fld = 0, Bool_t mc = false, Bool_t sat = false) const
 Get data associated with a row or null.
 See also AliOADBForward::Get

Print(Option_t* option = "") const
 Print the full table

Browse(TBrowser* b)
 Browse this table
IsOpen(Bool_t rw = false) const
void SetVerbose(Bool_t verb = true)
     * Set the verbosity
     *
     * @param verb

{ fVerbose = verb; }
void SetEnableFallBack(Bool_t use = true)
     * Set wheter to enable fall-back queries
     *
     * @param use If true, enable fall-back queries

{ fFallBack = use; }