class HMdcParOraIo: public HDetParOraIo

_HADES_CLASS_DESCRIPTION

 HMdcParOraIo

 Interface class to database Oracle for input/output of parameters needed
 by the Mdc
 (uses the Oracle C/C++ precompiler)


Function Members (Methods)

public:
HMdcParOraIo(HOraConn* p = 0)
HMdcParOraIo(const HMdcParOraIo&)
virtual~HMdcParOraIo()
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
voidHDetParOraIo::commit()
virtual Int_tTNamed::Compare(const TObject* obj) const
Bool_tconfirmChannelMasks(Int_t)
Bool_tconfirmThresholds(Int_t)
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
Int_tHDetParOraIo::getActRunId()
Int_tgetChannelMasksVersionsLastRunID(Int_t)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const Char_t*HDetParOraIo::getExpLocation()
const Char_t*HDetParOraIo::getHistoryDate()
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
Int_tHDetParOraIo::getPredefVersion(HParSet*)
Int_tHDetParOraIo::getRunStart(HParSet* pPar = 0)
Int_tgetThresholdsVersionsLastRunID(Int_t)
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_tinit(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)
HMdcParOraIo&operator=(const HMdcParOraIo&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
voidprintIds()
virtual Int_tTObject::Read(const char* name)
Bool_tHDetParOraIo::readCond(HParCond*, Int_t*)
Bool_tHDetParOraIo::readDetectorGeometry(HDetGeomPar*, Int_t*, HGeomOraDetVersion*)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
voidHDetParOraIo::rollback()
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)
voidHDetParOraIo::showSqlError(const Char_t*)
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 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
Int_tHDetParOraIo::writeAlignment(HDetGeomPar*)
Int_tHDetParOraIo::writeCond(HParCond*)
protected:
voidHDetParOraIo::addGeomOraSet(HDetGeomPar*)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Int_tHDetParOraIo::getAlignmentOutputVersion(HParSet*, const Char_t*)
Int_tHDetParOraIo::getAlignmentVersion(HParOraSet*, const Char_t*)
Int_tHDetParOraIo::getContextId(const Char_t*, const Char_t*)
Int_tHDetParOraIo::getDetectorId(const Char_t*)
Int_tHDetParOraIo::getGeomVersion(const Char_t*, HGeomOraDetVersion*)
Int_tHDetParOraIo::getGeomVersion(Int_t, HGeomOraDetVersion*)
HParOraSet*HDetParOraIo::getOraSet(HParSet*)
voidTObject::MakeZombie()
Int_tHDetParOraIo::readAlignmentTransform(TList*, Int_t)
Bool_tHDetParOraIo::readGeomPoints(TList*)
Bool_tHDetParOraIo::readGeomTransform(TList*)
Bool_tHDetParOraIo::readIdealGeometry(TList*, HGeomOraDetVersion*)
voidHDetParOraIo::setChanged(HParSet*)
Bool_tHDetParOraIo::writeTransform(Int_t, const Char_t*, const HGeomTransform&)
private:
Int_tcountTdcChannels(Int_t)
Int_tcreateVersion(HParSet*)
Int_tgetLookupVersion(HMdcLookupGeom*)
Int_tgetReadoutVersion(HMdcMboReadout*)
Int_tgetVersion(HParSet* pPar, TArrayI*)
Int_tgetVersion(HParSet* pPar, Int_t&)
voidprintInfo(const Char_t*)
Bool_tread(HMdcRawStruct*, Int_t*)
Bool_tread(HMdcGeomStruct*, Int_t*)
Bool_tread(HMdcMboReadout*, Int_t*)
Bool_tread(HMdcCalParRaw*, Int_t*)
Bool_tread(HMdcCal2ParSim*, Int_t*)
Bool_tread(HMdcLookupGeom*, Int_t*)
Bool_tread(HMdcLayerGeomPar*, Int_t*)
Bool_tread(HMdcCellEff*, Int_t*)
Bool_tread(HMdcTimeCut*, Int_t*)
Bool_tread(HMdcGeomPar*, Int_t*)
Bool_tread(HMdcTdcThreshold*, Int_t*)
Bool_tread(HMdcClosePairCutsPar*, Int_t*)
Bool_tread(HMdcTdcChannel* pPar, Int_t* set)
Int_treadIds()
Bool_treadLayerGeomNames(HMdcGeomPar*, Int_t*)
Bool_treadModGeomNames(HMdcGeomPar*, Int_t*)
Int_tstartIo(HParSet*)
Int_twritePar(HMdcCalParRaw*)
Int_twritePar(HMdcCal2ParSim*)
Int_twritePar(HMdcCellEff*)
Int_twritePar(HMdcTimeCut*)
Int_twritePar(HMdcClosePairCutsPar*)
Int_twritePar(HMdcLayerGeomPar*)
Int_twritePar(HMdcTdcThreshold*)
Int_twritePar(HMdcTdcChannel*)
Int_twritePar(HMdcLookupGeom*)

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
Int_tHDetParIo::inputNumberinput number (first or second input in runtime database)
private:
HGeomOraDetVersion*geomVersgeometry version
TArrayI*initModulesarray of modules initialized from Oracle
TArrayI*mdcIdsid-numbers of all Mdc's (access by sector and plane)
TArrayI*modIdsid-numbers of all Mdc modules (access by id)
Int_tnumModulesnumber of modules found in Oracle
Int_trunStartstart time of actual run

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HMdcParOraIo(HOraConn* pC)
 constructor
 sets the name of the I/O class "HMdcParIo"
 gets the pointer to the connection class
~HMdcParOraIo()
 destructor
Bool_t init(HParSet* , Int_t* )
 calls special read-function for each parameter container
Int_t write(HParSet* )
 calls the appropriate write function for the container
Int_t startIo(HParSet* )
 gets the run start of the actual run
 reads the detector setup from Oracle for the first run and returns the number
   of modules found
 returns -1, if the run is not found, or 0, if no modules are found for this run
Int_t readIds()
 reads the id numbers of all modules defined for the actual run
 and stores them in array mdcIds
 returns the number of modules found
EXEC SQL BEGIN DECLARE SECTION;
void printIds()
 prints the id numbers of all modules
Bool_t read(HMdcRawStruct* pPar,Int_t* set)
 reads the names (characterizes the position) of the motherboards
 and the maximum number of TDCs on each of it and fills the
 MdcRawStruct container
Bool_t read(HMdcGeomStruct* pPar,Int_t* set)
 reads the number of cells in each layer and fills the
 MdcGeomStruct container
Int_t getLookupVersion(HMdcLookupGeom* )
 reads the version for the MdcLookupGeom container valid at the start time
   of the actual run
 if the version differs from the container version, the container must be
   reinitialized
Bool_t read(HMdcLookupGeom* pPar, Int_t* set)
 reads and fills the container "MdcLookupGeom" for mapping
Int_t getReadoutVersion(HMdcMboReadout* )
 reads the version for the MboReadout container valid at the start time
   of the actual run
 if the version differs from the container version, the container must
   be reinitialized
Bool_t read(HMdcMboReadout* pPar, Int_t* set)
 reads the lookup tables to connect the hardware adresses (sector, module,
 motherboard, tdc channel) with the event readout adresses uses in the
  unpacker
Bool_t read(HMdcGeomPar* pPar, Int_t* set)
 reads the geometry of the MDC and fills the MdcGeomPar container
Bool_t readModGeomNames(HMdcGeomPar* , Int_t* )
 reads the mdc_pos_id of all modules
EXEC SQL BEGIN DECLARE SECTION;
Bool_t readLayerGeomNames(HMdcGeomPar* , Int_t* )
 reads the names of all layers in the geometry tables
void printInfo(const Char_t* )
 prints the modules initialized from Oracle
 will later go to the log file
Int_t getVersion(HParSet* pPar,TArrayI* versions)
 used for parameter containers with version management for modules
 reads the newest versions valid for the current event file
 returns -1, if no data found
Int_t getVersion(HParSet* pPar, Int_t& version)
 used for parameter containers with one version for all modules or planes
 reads the newest version valid for the current event file
 returns -1, if no data found
Bool_t read(HMdcCalParRaw* pPar, Int_t* set)
 reads the calibration parameters and fill the MdcCalParRaw container
Bool_t read(HMdcCal2ParSim* pPar, Int_t* set)
 reads the calibration parameters and fill the MdcCal2ParSim container
Bool_t read(HMdcCellEff* pPar, Int_t* set)
 reads the cell efficiency parameters and fill the container
Bool_t read(HMdcTimeCut* pPar, Int_t* set)
 reads the time cut parameters and fill the container
Bool_t read(HMdcLayerGeomPar* pPar, Int_t* set)
 reads the layer parameters and fill the container
Bool_t read(HMdcClosePairCutsPar* pPar, Int_t* set)
 reads the close pair cut parameters and fill the container
Int_t createVersion(HParSet* )
 creates a new version for the parameters
 returns the new version
Int_t writePar(HMdcCalParRaw* pPar)
 creates a new version and writes the calibration parameters to Oracle
Int_t writePar(HMdcCellEff* pPar)
 creates a new version and writes the cell effficiency parameters to Oracle
Int_t writePar(HMdcTimeCut* pPar)
 creates a new version and writes the TimeCut parameters to Oracle
Int_t writePar(HMdcCal2ParSim* pPar)
 creates a new version and writes the calibration parameters to Oracle
Int_t writePar(HMdcClosePairCutsPar* pPar)
 creates a new version and writes the ClosePairCuts parameters to Oracle
Int_t countTdcChannels(Int_t )
 returns the number of TDC channels of a module
EXEC SQL BEGIN DECLARE SECTION;
Bool_t read(HMdcTdcThreshold* pPar,Int_t* set)
 reads the calibration parameters and fill the MdcCalParRaw container
Int_t writePar(HMdcTdcThreshold* pPar)
 creates a new version and writes the threshold parameters to Oracle
Int_t writePar(HMdcLayerGeomPar* pPar)
 creates a new version and writes the layer parameters to Oracle
Bool_t read(HMdcTdcChannel* pPar, Int_t* set)
 reads the tdc channel masks and fill the container
Int_t writePar(HMdcTdcChannel* pPar)
 creates a new version and writes the threshold parameters to Oracle
Bool_t confirmThresholds(Int_t )
 sets the threshold version as the actual valid version
EXEC SQL BEGIN DECLARE SECTION;
Bool_t confirmChannelMasks(Int_t )
 sets the channel mask version as the actual valid version
EXEC SQL BEGIN DECLARE SECTION;
Int_t getThresholdsVersionsLastRunID(Int_t )
 returns the last run id in the timerange where the threshold version was valid
EXEC SQL BEGIN DECLARE SECTION;
Int_t getChannelMasksVersionsLastRunID(Int_t )
 returns the last run id in the timerange where the channel mask version was valid
Int_t writePar(HMdcLookupGeom* pPar)
 creates a new version and writes the lookup table to Oracle
HMdcParOraIo(HOraConn* p=0)

Last change: Sat May 22 13:03:07 2010
Last generated: 2010-05-22 13:03

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.