class HDetParRootFileIo: public HDetParIo

_HADES_CLASS_DESCRIPTION

 HDetParRootFileIo

 Interface class to ROOT file for parameter input/output
 Base class for all detectors

 This class is derived from the common base class HDetParIo
 for all inputs/outputs (ROOT file, Oracle, Ascii file).
 It contains all common functionality for all detectors which can be
 implemeted without knowing the exact type of the detector or of the detector
 dependend parameter containers using only the base class types.

 The data element modulesFound stores the indices of all modules in a
 detector which are are defined in the actual analysis which can be
 initialized from the ROOT file. If a detector cannot be found in the file
 this pointer is 0. The array ic created and filled via the function
 readModules(Text_t* detectorName) which is called when the first init()
 function of a parameter container belonging to this detector is called.

 The data element initModules stores the  indices of all modules for which a
 container has been initialized from the ROOT file.


Function Members (Methods)

public:
HDetParRootFileIo(HParRootFile* f)
HDetParRootFileIo(const HDetParRootFileIo&)
virtual~HDetParRootFileIo()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) 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 voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_tHDetParIo::getInputNumber()
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::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
virtual Bool_tHDetParIo::init(HParSet*, Int_t*)
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
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
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)
HDetParRootFileIo&operator=(const HDetParRootFileIo&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
voidprintInfo(const Text_t* msg)
virtual Bool_tread(HParSet*)
virtual Int_tTObject::Read(const char* name)
Bool_tread(HDetGeomPar*, Int_t*)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidresetActivFlag(Bool_t f = kFALSE)
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)
voidHDetParIo::setInputNumber(Int_t n)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
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_twrite(HParSet*)
virtual Bool_twrite(HDetector*)
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
TObject*findContainer(const Text_t* contName, Int_t version)
Int_tfindInputVersion(const Text_t* contName)
Int_tgetMaxVersion(const Text_t* contName)
voidTObject::MakeZombie()
Int_treadModules(const Text_t* detName)

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:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
TArrayI*initModulesarray of modules initialized from Root file
Int_tHDetParIo::inputNumberinput number (first or second input in runtime database)
Bool_tisActivflag is set kTRUE by function readModules()
TArrayI*modulesFoundarray of modules found in the Root file
HParRootFile*pFilepointer to parameter ROOT file

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HDetParRootFileIo(HParRootFile* f)
 Constructor takes a pointer to the parameter ROOT file
~HDetParRootFileIo()
 destructor
Int_t readModules(const Text_t* detName)
 reads the setup of the detector with given name from the ROOT file,
 compares it with the setup of this detector in the current analysis and
 creates and fills the data element modulesFound;
 Sets the flag isAktiv kTRUE.
 returns the number of modules not found;
Bool_t read(HParSet* )
 generic read function for parameter containers
Bool_t write(HDetector* p)
 writes the setup of a detector to the ROOT file
 returns kFALSE if the file is not writable
Int_t write(HParSet* pPar)
 writes a parameter container to the ROOT file and returns the new version
 number (returns -1 if the file is not writable)
Int_t getMaxVersion(const Text_t* contName)
 returns the maximum version of the container given by name in the ROOT
 file (return -1 if not found)
Int_t findInputVersion(const Text_t* contName)
 finds the input version to initialize the container given by name;
 returns -1 if the version cannot be determined
TObject* findContainer(const Text_t* contName, Int_t version)
 finds the parameter container given by its name with a special version in
 the ROOT file (returns 0 if not successful)
 This funtion uses internally the ROOT function FindObject(Text_t*), which
 creates a new object. The calling function must therefore delete the
 object after usage!
void printInfo(const Text_t* msg)
 prints the module indices for which the container was initialized from
 the ROOT file (will later go to the log file)
Bool_t read(HDetGeomPar* , Int_t* )
 reads and fills the container for the basic geometry parameters of the
 detectors
HDetParRootFileIo(HParRootFile* f)
void resetActivFlag(Bool_t f = kFALSE)
{isActiv=f;}

Last change: Sat May 22 12:54:39 2010
Last generated: 2010-05-22 12:54

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.