class HRuntimeDb: public TObject

_HADES_CLASS_DESCRIPTION

  HRuntimeDb

  Administration class for parameter input/output


Function Members (Methods)

public:
virtual~HRuntimeDb()
voidTObject::AbstractMethod(const char* method) const
Bool_taddContainer(HParSet*)
voidaddContFactory(HContFact*)
Bool_taddParamContext(const Char_t*)
HRun*addRun(Int_t runId, Int_t refId = -1)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
voidclearRunList()
virtual TObject*TObject::Clone(const char* newname = "") const
voidcloseFirstInput()
voidcloseOutput()
voidcloseSecondInput()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
voiddisconnectInputs()
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
HParSet*findContainer(const Char_t*)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tfindOutputVersion(HParSet*)
HParSet*getContainer(const Text_t*)
const Text_t*getCurrentFileName()
HRun*getCurrentRun()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
HParIo*getFirstInput()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
HParIo*getOutput()
HRun*getRun(Int_t)
HRun*getRun(Text_t*)
HParIo*getSecondInput()
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_tinitContainers(Int_t runId, Int_t refId = -1, const Text_t* fileName = "")
virtual voidTObject::Inspect() constMENU
static HRuntimeDb*instance()
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
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
Bool_tmakeParamFile(const Char_t*, const Char_t*, const Char_t* startAt = "", const Char_t* endAt = "")
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidprint()
virtual voidTObject::Print(Option_t* option = "") const
voidprintContainers()
voidprintParamContexts()
virtual Int_tTObject::Read(const char* name)
Bool_treadAll()
Bool_treconnectInputs()
virtual voidTObject::RecursiveRemove(TObject* obj)
voidremoveAllContainers()
voidremoveContainer(Text_t*)
voidremoveRun(Text_t*)
voidresetAllVersions()
voidTObject::ResetBit(UInt_t f)
voidresetInputVersions()
voidresetOutputVersions()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
voidsaveOutput()
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)
voidsetContainersStatic(Bool_t f = kTRUE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
Bool_tsetFirstInput(HParIo*)
Bool_tsetInputVersion(Int_t run, Text_t* container, Int_t version, Int_t inputNumber)
static voidTObject::SetObjectStat(Bool_t stat)
Bool_tsetOutput(HParIo*)
Bool_tsetRootOutputVersion(Int_t run, Text_t* container, Int_t version)
Bool_tsetSecondInput(HParIo*)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidsetVersionsChanged(Bool_t f = kTRUE)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
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
Bool_twriteContainer(HParSet*, HRun*, HRun* refRun = 0)
Bool_twriteContainers()
voidwriteSetup()
voidwriteVersions()
protected:
HRuntimeDb()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
Bool_tfillParamFile()
Bool_tinitContainers()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TListcontFactorieslist of container factories
TList*containerListlist of parameter containers
TStringcurrentFileNameName of current event file
HRun*currentRunCurrent run
HParIo*firstInputfirst (prefered) input for parameters
Bool_tisRootFileOutputflag indicating that the output is a ROOT file
HParIo*outputoutput for parameters
HParamFileGenerator*pParamFileGenerator! generator for a parameter file
TList*runslist of runs
HParIo*secondInputsecond input (used if not found in first input)
Bool_tversionsChangedflag for write of list of runs (set kTRUE by each write)
private:
static HRuntimeDb*gRtdb!

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HRuntimeDb* instance(void)
HRuntimeDb(void)
 constructor creates an empty list for parameter containers
 and an empty list of runs for the version management
~HRuntimeDb()
 destructor
 deletes the list of runs and all containers
void addContFactory(HContFact* )
 Adds a container factory to the list of factories
Bool_t addParamContext(const Char_t* )
 Sets via the container factories the context of all parameter containers,
 which accept this context
void printParamContexts()
 Prints the context of all parameter containers, which can be created by
 the container factories
Bool_t addContainer(HParSet* )
 adds a container to the list of containers
HParSet* getContainer(const Text_t* )
 The function loops over the container factories to find the corresponding container
 with the give name and its context.
 The name is the original name of the parameter container without the concatination
 with the context.
 The factory checks, if the container exists already in the runtime database. Otherwise
 it will be created and added by the factory.
 The function returns a pointer to the container or NULL, if not created.
HParSet* findContainer(const Char_t* )
 returns a pointer to the container called by name
 The name is the original name of the parameter container eventually concatinated with
 a non-default context.
void removeContainer(Text_t* )
 removes the container from the list and deletes it
void removeAllContainers(void)
 removes all containers from the list and deletes them
HRun* addRun(Int_t runId, Int_t refId = -1)
 adds a run at the end of the list of runs
 returns a pointer to the run newly added
HRun* getRun(Int_t id)
 returns a pointer to the run called by the run id
HRun* getRun(Text_t* name)
 returns a pointer to the run called by name
void removeRun(Text_t* )
 removes the run from the list and deletes it
void clearRunList()
void writeSetup()
 writes the setup to the output if the setup has changed
void writeVersions()
 writes the parameter versions for all runs to the output
Bool_t writeContainers()
 writes all containers to the output
 loops over the list of containers and calls for each the
 function writeContainer(...)
Int_t findOutputVersion(HParSet* )
Bool_t writeContainer(HParSet* , HRun* , HRun* refRun = 0)
 writes a container to the output if the containers has changed
 The output might be suppressed if the changes is due an
 initialisation from a ROOT file which serves also as output
 or if it was already written
Bool_t initContainers(Int_t runId, Int_t refId = -1, const Text_t* fileName = "")
 loops over the list of containers and calls the init() function of each
 container if it is not static
 (typically called by Hades::eventLoop(...))
Bool_t readAll()
 reads all containers with all versions for all runs and writes the
 containers, the setup information and the version table to the output
Bool_t initContainers(void)
 private function
void printContainers(void)
 calls the print() function of all containers
void setContainersStatic(Bool_t f = kTRUE)
 sets the status flag in all containers
 flag kTRUE sets all 'static'
 flag kFALSE sets all 'not static'
Bool_t setInputVersion(Int_t run, Text_t* container, Int_t version, Int_t inputNumber)
 sets the input version of a container defined by its name and a
 run defined by its id taken from input with inputNumber inp
 (1 for first input and 2 for second input)
Bool_t setRootOutputVersion(Int_t run, Text_t* container, Int_t version)
 sets the Root file output version of a container defined by its name
 and a run defined by its id
 should only be used after initialization 'by hand' on the interpreter level
void print()
 prints the list of the actual containers, the list of the
 runs/versions and information about input/output
cout<<"-----------------------------------------------------------"<<'\n';
cout<<"---------  actual containers in runtime database  ---------"<<'\n';
void resetInputVersions()
 resets all input versions in the list of runs and in all containers
   which are not static
 is called each time a new input is set
void resetOutputVersions()
 resets all output versions in the list of runs
 is called each time a new output is set
 is called also each time a new input is set which is not
 identical with the output
void resetAllVersions()
 resets all input and output versions in the list of runs
 and in all containers which are not static
Bool_t setFirstInput(HParIo* )
 sets the first input pointer
Bool_t setSecondInput(HParIo* )
 sets the second input pointer
Bool_t setOutput(HParIo* )
 sets the output pointer
HParIo* getFirstInput()
 return a pointer to the first input
HParIo* getSecondInput()
 return a pointer to the second input
HParIo* getOutput()
 return a pointer to the output
void closeFirstInput()
void closeSecondInput()
Bool_t reconnectInputs()
 reconnects the inputs (actually only used for the Oracle interface)
void disconnectInputs()
 disconnects the inputs (actually only used for the Oracle interface)
void saveOutput()
 writes the setup, the versions and the containers (if not
 yet written out)
 without the setup and version information the containers cannot
 be read again!
void closeOutput()
 calls saveOutput() and deletes then the output
Bool_t makeParamFile(const Char_t* , const Char_t* , const Char_t* startAt = "", const Char_t* endAt = "")
 Creates the parameter file generator, which opens a ROOT file and a log file
 Returns kFALSE if the ROOT file already exists
Bool_t fillParamFile()
 This function is called in saveOutput, if the parameter file generator exists
 It gets the lists of runs from Oracle and initializes the parameter containers for each run
 The loop does not break, if an error occurs, but error information is written to a log file
 It returns kFALSE if there is not open Oracle connection
void Streamer(TBuffer& b)
HRun* getCurrentRun(void)
{return currentRun;}
Text_t const * getCurrentFileName()
{return currentFileName.Data();}
void setVersionsChanged(Bool_t f = kTRUE)
{versionsChanged=f;}

Last change: Sat May 22 13:12:27 2010
Last generated: 2010-05-22 13:12

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.