#include "hdetparrootfileio.h" |
HDetParRootFileIo
class description - source file - inheritance tree (.pdf)
protected:
TObject* findContainer(Text_t* contName, Int_t version)
Int_t findInputVersion(Text_t* contName)
Int_t getMaxVersion(Text_t* contName)
Int_t readModules(Text_t* detName)
public:
HDetParRootFileIo(HParRootFile* f)
HDetParRootFileIo(const HDetParRootFileIo&)
virtual ~HDetParRootFileIo()
static TClass* Class()
virtual TClass* IsA() const
HDetParRootFileIo& operator=(const HDetParRootFileIo&)
void printInfo(const Text_t* msg)
virtual Bool_t read(HParSet*)
Bool_t read(HDetGeomPar*, Int_t*)
void resetActivFlag(Bool_t f = kFALSE)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Int_t write(HParSet*)
virtual Bool_t write(HDetector*)
protected:
HParRootFile* pFile pointer to parameter ROOT file
TArrayI* modulesFound array of modules found in the Root file
TArrayI* initModules array of modules initialized from Root file
Bool_t isActiv flag is set kTRUE by function readModules()
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.
HDetParRootFileIo(HParRootFile* f) : HDetParIo()
Constructor takes a pointer to the parameter ROOT file
~HDetParRootFileIo()
destructor
Int_t readModules(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* pPar)
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(Text_t* name)
returns the maximum version of the container given by name in the ROOT
file (return -1 if not found)
Int_t findInputVersion(Text_t* name)
finds the input version to initialize the container given by name;
returns -1 if the version cannot be determined
TObject* findContainer(Text_t* name, Int_t vers)
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* pPar,Int_t* set)
reads and fills the container for the basic geometry parameters of the
detectors
Inline Functions
void resetActivFlag(Bool_t f = kFALSE)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HDetParRootFileIo HDetParRootFileIo(const HDetParRootFileIo&)
HDetParRootFileIo& operator=(const HDetParRootFileIo&)
Last update: 26/04/2002 by Ilse Koenig
ROOT page - Class index - Class Hierarchy - Top of the page
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.