class TMuiAddressTable : public PHAddressObject

Maps addresses of MuID channels between "hardware" and "software" representations

Inheritance:


Public Methods

static void Init()
Initializes the instance of TMuiAddressTable (from a file or database).
static TMuiAddressTable* Table()
Points to the *single* instance of TMuiAddressTable.
static void Destroy()
Destroys the *single* instance of TMuiAddressTable.
short Arm(const unsigned long& module_id) const
Return the arm identifier for the given module identifier.
short Orient(const unsigned long& module_id) const
Return the orientation (kHORIZ,kVERT) for the given module identifier.
TMuiChannelId SoftwareAddress(const TMuiReadoutID& ident) const
Given a hardware address, return the corresponding software address.
short Location(const TMuiReadoutID& ident, short& arm, short& gap, short& orient, short& location) const
Given a hardware address, return the location (arm,gap,orient,location).
TMuiReadoutID HardwareAddress(const TMuiChannelId& ident) const
Given a software address, return the corresponding hardware address.
TMuiReadoutID HardwareAddress(const unsigned long& module_id, const short& word_index) const
Find the hardware addr. for the FEM and position in the data list.
bool IsHardwareValid(const unsigned long& module_id, const short& roc, const short& word, const short& channel, const short& word_index) const
Are the elements of the hardware address within the allowed range?
virtual void initialize()
Initialize table before accessing database.
virtual PHBoolean fetch(PHTimeStamp &Tsearch, const char *calibname, PdbBankID)
Fetch address table from the database.
virtual PHBoolean update(PHTimeStamp &Tstart, PHTimeStamp &Tstop, const char *calibname, PdbBankID, char *descrip)
Update database with current address table.

Public

Unused methods from base class (PHAddressObject)

Documentation

Maps addresses of MuID channels between "hardware" and "software" representations.

This is a singleton class.

static void Init()
Initializes the instance of TMuiAddressTable (from a file or database).

static TMuiAddressTable* Table()
Points to the *single* instance of TMuiAddressTable.

static void Destroy()
Destroys the *single* instance of TMuiAddressTable.

short Arm(const unsigned long& module_id) const
Return the arm identifier for the given module identifier.

short Orient(const unsigned long& module_id) const
Return the orientation (kHORIZ,kVERT) for the given module identifier.

TMuiChannelId SoftwareAddress(const TMuiReadoutID& ident) const
Given a hardware address, return the corresponding software address.

short Location(const TMuiReadoutID& ident, short& arm, short& gap, short& orient, short& location) const
Given a hardware address, return the location (arm,gap,orient,location).

TMuiReadoutID HardwareAddress(const TMuiChannelId& ident) const
Given a software address, return the corresponding hardware address.

TMuiReadoutID HardwareAddress(const unsigned long& module_id, const short& word_index) const
Find the hardware addr. for the FEM and position in the data list.

bool IsHardwareValid(const unsigned long& module_id, const short& roc, const short& word, const short& channel, const short& word_index) const
Are the elements of the hardware address within the allowed range?

virtual void initialize()
Initialize table before accessing database.

virtual PHBoolean fetch(PHTimeStamp &Tsearch, const char *calibname, PdbBankID)
Fetch address table from the database.

virtual PHBoolean update(PHTimeStamp &Tstart, PHTimeStamp &Tstop, const char *calibname, PdbBankID, char *descrip)
Update database with current address table.

Unused methods from base class (PHAddressObject)


This class has no child classes.
Author:
Kyle Pope mailto:pope@phy.ornl.gov
See Also:
TMuiChannelId
TMuiReadoutID

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de