#include <configuration.h>
Inheritance diagram for SctConfiguration::Configuration:
Public Member Functions | |
virtual | ~Configuration () |
Free resources. | |
virtual std::list< unsigned int > | listPartitions ()=0 |
List partition ids Lookup the partitions defined in the configuration and return a list of integer ID's. | |
virtual std::list< unsigned int > | listCratesInPartition (unsigned int partition)=0 |
List crate ids with reference to the given partition Lookup the crates defined in the specified partition and return a list of integer ID's. | |
virtual bool | isDummyCrate (unsigned int partition, unsigned int crate)=0 |
Check if this should be a dummy crate. | |
virtual std::list< unsigned int > | listRodsInCrate (unsigned int partition, unsigned int crate)=0 |
List the rods present in a crate Lookup the RODs defined in the specified crate and return a list of integer ID's. | |
virtual std::list< unsigned int > | listMURSInRod (unsigned int partition, unsigned int crate, unsigned int rod)=0 |
List the MURs associated with a ROD Return integer id's of the MURs in the specified rod. | |
virtual std::list< std::string > | listModulesInMUR (unsigned int partition, unsigned int MUR)=0 |
List the modules in the given MUR Return a list of serial numbers associated with the specified MUR. | |
virtual std::list< std::string > | listRModulesInMUR (unsigned int partition, unsigned int MUR)=0 |
List the modules in the given MUR Return a list of serial numbers associated with the redundancy links of the specified MUR. | |
virtual std::list< std::string > | listAllModules ()=0 |
Return a list of serial numbers of all modules that have configuration. | |
virtual std::list< std::string > | listUnusedModules ()=0 |
Return a list of serial numbers of modules that have configuration but are not attached to an MUR. | |
virtual ABCDModule | getModuleConfig (const std::string module)=0 |
Return the configuration for the module. | |
virtual short | getModuleGroup (const std::string module)=0 |
Return the group for this module. | |
virtual void | setModuleGroup (const std::string module, short group)=0 |
Set the group for this module. | |
virtual unsigned int | getModuleErrorMask (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int link)=0 |
Return the error mask for this module, link = 0,1. | |
virtual void | setModuleErrorMask (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int link, unsigned int mask)=0 |
Set the error mask for this module, link = 0,1. | |
virtual void | setDefaultModuleErrorMask (unsigned int mask)=0 |
Set the default error mask for all modules. | |
virtual RodConfig | getRodConfig (unsigned int partition, unsigned int crate, unsigned int rod)=0 |
Return the Rod configuration Find the configuration associated with the specified ROD. | |
virtual SlaveConfig | getDefaultSlaveConfig (char type)=0 |
Return the default slave configuration Find the configuration associated with the specified slave type. | |
virtual BOCChannelConfig | getBOCConfig (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel)=0 |
Get the BOC configuration of one of 48 channels. | |
virtual BOCGlobalConfig | getBOCGlobalConfig (unsigned int partition, unsigned int crate, unsigned int rod)=0 |
Get the BOCs global configuration. | |
virtual unsigned char * | getFibreMappings (unsigned int partition, unsigned int crate, unsigned int rod)=0 |
Get the BOC fibre mappings. | |
virtual TimConfig | getTimConfig (unsigned int partition, unsigned int crate)=0 |
Return the TIM configuration Find the configuration associated with the specified TIM. | |
virtual void | setFibreMapping (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int tx, unsigned int rx0, unsigned int rx1)=0 |
Set fibre mappings for one channel. | |
virtual std::string | printModuleConfig (const ABCDModule &conf)=0 |
Print module configuration to cout. | |
virtual MURType | getMURType (unsigned int MUR)=0 |
virtual unsigned int | getFreeMurId ()=0 |
Return an unused MUR id. | |
virtual void | translateToROD (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &channel)=0 |
Translate from MUR / module(1-6) number to p/k/r/c. | |
virtual void | translateToRROD (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &channel)=0 |
Translate from MUR / redundant module(1-6) number to p/k/r/c. | |
virtual void | translateToSN (unsigned int MUR, unsigned int module, std::string &sn)=0 |
Translate from MUR / module(1-6) number to serial number. | |
virtual void | translateToRMUR (unsigned int MUR, unsigned int module, unsigned int &RMUR, unsigned int &rmodule)=0 |
Translate from MUR / module(1-6) number to MUR/module of redundant connection. | |
virtual void | translateToBarrel (unsigned int MUR, unsigned int module, unsigned int &barrel, unsigned int &row, int &number)=0 |
Translate from MUR / module(1-6) number to geographical barrel system. | |
virtual void | translateToEndcap (unsigned int MUR, unsigned int module, int &disk, unsigned int &ring, unsigned int &number)=0 |
Translate from MUR / module(1-6) number to geographical endcap system. | |
virtual void | translateToPowerSupply (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &channel)=0 |
Translate from MUR / module(1-6) number to power supply channel address. | |
virtual void | translateFromROD (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int &MUR, unsigned int &module)=0 |
Translate to MUR / module(1-6) number from p/k/r/c. | |
virtual void | translateFromRROD (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int &MUR, unsigned int &module)=0 |
Translate to MUR / module(1-6) number from address of redundant module. | |
virtual void | translateFromSN (const std::string sn, unsigned int &MUR, unsigned int &module)=0 |
Translate to MUR / module(1-6) number from serial number. | |
virtual void | translateFromRMUR (unsigned int RMUR, unsigned int rmodule, unsigned int &MUR, unsigned int &module)=0 |
Translate from redundant MUR / module(1-6) number to MUR/module via redundant connection. | |
virtual void | translateFromBarrel (unsigned int barrel, unsigned int row, int number, unsigned int &MUR, unsigned int &module)=0 |
Translate to MUR / module(1-6) number from geographical barrel system. | |
virtual void | translateFromEndcap (int disk, unsigned int ring, unsigned int number, unsigned int &MUR, unsigned int &module)=0 |
Translate to MUR / module(1-6) number from geographical endcap system. | |
virtual void | translateFromPowerSupply (unsigned int partition, unsigned int crate, unsigned int channel, unsigned int &MUR, unsigned int &module)=0 |
Translate from power supply channel address to MUR / module(1-6) number. | |
virtual void | configureModuleFromStructure (const std::string module, const ABCDModule conf)=0 |
Update or add the configuration of a module stored in memory Replace the configuration for the given module with the data stored in the given configuration. | |
virtual void | configureModuleFromFile (const std::string filename)=0 |
Update or add the configuration of a module stored in memory Replace the configuration for the given module with the data stored in the given file (the serial number is read from the file). | |
virtual void | configureROD (unsigned int partition, unsigned int crate, unsigned int rod, RodConfig conf)=0 |
Configure a ROD. | |
virtual void | configureTIM (unsigned int partition, unsigned int crate, TimConfig conf)=0 |
Configure a TIM. | |
virtual void | configureBOC (unsigned int partition, unsigned int crate, unsigned int rod, const BOCGlobalConfig &conf)=0 |
Set a BOC configuration. | |
virtual void | clearAll ()=0 |
Remove all configuration. | |
virtual void | namePartition (unsigned int partition, const std::string name)=0 |
Name a partition (for information, any use?). | |
virtual void | configureBOCChannel (unsigned int MUR, unsigned int position, const BOCChannelConfig &conf)=0 |
Set a BOC channel configuration. | |
virtual void | mapModuleMUR (unsigned int MUR, unsigned int order, unsigned int RMUR, unsigned int rorder, std::string number)=0 |
Map a module (by serial number) onto a position in an MUR. | |
virtual void | unmapModuleMUR (unsigned int MUR, unsigned int order)=0 |
Unmap a module from a position in an MUR. | |
virtual void | mapRODMUR (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int order, unsigned int MUR)=0 |
Map an MUR to a ROD. | |
virtual void | unmapRODMUR (unsigned int MUR)=0 |
Unmap an MUR from a ROD. | |
virtual void | mapBarrelMUR (unsigned int MUR, unsigned int barrel, unsigned int row, int position)=0 |
Map Barrel MUR. | |
virtual void | unmapBarrelMUR (unsigned int MUR)=0 |
Unmap MUR from Barrel. | |
virtual void | getMapMURROD (unsigned int MUR, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &order)=0 |
Get mapping of MUR to ROD. | |
virtual void | getMapRODMUR (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int order, unsigned int &number)=0 |
Get mapping of ROD to MUR. | |
virtual void | getMapMURPhysical (unsigned int MUR, MURType &type, int &plane, int §ion, int &position)=0 |
virtual void | swapMURNames (unsigned int MUR1, unsigned int MUR2)=0 |
Swap two MUR names around. | |
virtual void | mapEndcapMUR (unsigned int MUR, int disk, unsigned int quadrant, unsigned int position)=0 |
Map Endcap MUR. | |
virtual void | unmapEndcapMUR (unsigned int MUR)=0 |
Unmap Endcap MUR. | |
virtual void | mapPowerChannel (unsigned int MUR, unsigned int number, unsigned int partition, unsigned int crate, unsigned int channel)=0 |
Map Power channel. | |
virtual void | unmapPowerChannel (unsigned int MUR, unsigned int number)=0 |
Unmap Power channel. | |
virtual void | modifyDefaultPowerParam (std::string state, std::string name, std::string type, float value)=0 |
Set default value of any MoPS parameter. | |
virtual void | modifyHVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type, float value)=0 |
Set MoPS HV card parameter. | |
virtual void | modifyLVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type, float value)=0 |
Set MoPS LV card parameter. | |
virtual void | modifyPowerParam (unsigned int MUR, unsigned int number, std::string state, std::string name, std::string type, float value)=0 |
Set MoPS channel parameter referenced by MUR/number. | |
virtual void | modifyPowerParamCC (unsigned int crate, unsigned int channel, std::string state, std::string name, std::string type, float value)=0 |
Set MoPS channel parameter referenced by MoPS crate/channel. | |
virtual float | getDefaultPowerParam (std::string state, std::string name, std::string type)=0 |
Get default power of any MoPS parameter. | |
virtual float | getHVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type)=0 |
Get MoPS HV card parameter. | |
virtual float | getLVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type)=0 |
Get MoPS LV card parameter. | |
virtual float | getPowerParam (unsigned int MUR, unsigned int number, std::string state, std::string name, std::string type)=0 |
Get MoPS channel parameter referenced by MUR/number. | |
virtual float | getPowerParamCC (unsigned int crate, unsigned int channel, std::string state, std::string name, std::string type)=0 |
Get MoPS channel parameter referenced by MoPS crate/channel. | |
virtual std::list< std::string > | listDefaultPowerParams ()=0 |
List the defined parameters. | |
virtual std::list< std::string > | listDCSChannelParams ()=0 |
List the channel parameters for DCS. | |
virtual std::list< std::string > | listDCSCardParams ()=0 |
List the card parameters for DCS. | |
virtual std::list< std::string > | listDCSCrateParams ()=0 |
List the crate parameters for DCS. | |
virtual void | useISForChanges (bool valid=true)=0 |
Use IS in this implementation. | |
virtual void | useMRSForMessages (bool valid=true)=0 |
Use MRS in this implementation. | |
virtual void | loadConfiguration (const std::string &filename)=0 |
Load configuration from named file. | |
virtual std::string | getConfigurationFileName ()=0 |
For informational purposes only. | |
virtual void | saveConfiguration (const std::string filename="")=0 |
Save the current configuration. | |
virtual void | saveModuleConfiguration (const std::string modsn, const std::string filename)=0 |
Save the current configuration for a module. | |
virtual std::string | getModuleConfigurationString (const std::string modsn, const ABCDModule config)=0 |
Construct the XML for a module configuration and return as a string. | |
virtual void | writePowerSupplyConfiguration (std::string filename)=0 |
Dump power supply configuration to a file. |
This will be replaced by an interface to the DAQ confDB system.
The primary function of this class is the readout of configuration data from the database.
Translation functions:
Barrel barrel, row, number 3 to 6 0 to 55 -1 to -6 and 1 to 6
Internals: position on row given as -1 for -ve numbers and 1 for +ve numbers
Endcap disc quadrant number 0 to 17 0 to 3 0 to 32
Internals: position of MUR in quadrant number is left to right top to bottom 0000001222222 4444455555 1111133333
Definition at line 158 of file configuration.h.
|
Free resources.
Definition at line 163 of file configuration.h. |
|
Remove all configuration. Very dangerous!! Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Set a BOC configuration.
|
|
Set a BOC channel configuration.
|
|
Update or add the configuration of a module stored in memory Replace the configuration for the given module with the data stored in the given file (the serial number is read from the file).
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Update or add the configuration of a module stored in memory Replace the configuration for the given module with the data stored in the given configuration.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Configure a ROD. Replace the in memory configuration for the given ROD with the configuration provided. If no configuration then construct it Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Configure a TIM. Replace the in memory configuration for the given TIM with the configuration provided. If no configuration then construct it Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Get the BOC configuration of one of 48 channels.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Get the BOCs global configuration.
Implemented in ConfigurationXMLImpl. |
|
For informational purposes only.
Implemented in ConfigurationXMLImpl. |
|
Get default power of any MoPS parameter.
Implemented in ConfigurationXMLImpl. |
|
Return the default slave configuration Find the configuration associated with the specified slave type. Return a SlaveConfig structure. Implemented in ConfigurationXMLImpl. |
|
Get the BOC fibre mappings. An array of 48*3 chars (out, in0, in1) Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Return an unused MUR id.
Implemented in ConfigurationXMLImpl. |
|
Get MoPS HV card parameter.
Implemented in ConfigurationXMLImpl. |
|
Get MoPS LV card parameter.
Implemented in ConfigurationXMLImpl. |
|
Get mapping of MUR to ROD.
Implemented in ConfigurationXMLImpl. |
|
Get mapping of ROD to MUR.
Implemented in ConfigurationXMLImpl. |
|
Return the configuration for the module. Deprecated: Should take MUR argument Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Construct the XML for a module configuration and return as a string.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Return the error mask for this module, link = 0,1.
Implemented in ConfigurationXMLImpl. |
|
Return the group for this module.
Implemented in ConfigurationXMLImpl. |
|
Get MoPS channel parameter referenced by MUR/number.
Implemented in ConfigurationXMLImpl. |
|
Get MoPS channel parameter referenced by MoPS crate/channel.
Implemented in ConfigurationXMLImpl. |
|
Return the Rod configuration Find the configuration associated with the specified ROD. Return a RodConfig structure. Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Return the TIM configuration Find the configuration associated with the specified TIM. Return a TimConfig structure. Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Check if this should be a dummy crate.
Implemented in ConfigurationXMLImpl. |
|
Return a list of serial numbers of all modules that have configuration. This includes those that are not attached to a ROD or MUR Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List crate ids with reference to the given partition Lookup the crates defined in the specified partition and return a list of integer ID's.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List the card parameters for DCS.
Implemented in ConfigurationXMLImpl. |
|
List the channel parameters for DCS.
Implemented in ConfigurationXMLImpl. |
|
List the crate parameters for DCS.
Implemented in ConfigurationXMLImpl. |
|
List the defined parameters.
Implemented in ConfigurationXMLImpl. |
|
List the modules in the given MUR Return a list of serial numbers associated with the specified MUR. FIXME: Should be in numbered order Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List the MURs associated with a ROD Return integer id's of the MURs in the specified rod. FIXME: Should be in numbered order Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List partition ids Lookup the partitions defined in the configuration and return a list of integer ID's.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List the modules in the given MUR Return a list of serial numbers associated with the redundancy links of the specified MUR. FIXME: Should be in numbered order (array?) Implemented in ConfigurationXMLImpl, and OksImpl. |
|
List the rods present in a crate Lookup the RODs defined in the specified crate and return a list of integer ID's.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Return a list of serial numbers of modules that have configuration but are not attached to an MUR.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Load configuration from named file.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Map Barrel MUR.
Implemented in ConfigurationXMLImpl. |
|
Map Endcap MUR.
Implemented in ConfigurationXMLImpl. |
|
Map a module (by serial number) onto a position in an MUR.
Implemented in ConfigurationXMLImpl. |
|
Map Power channel.
Implemented in ConfigurationXMLImpl. |
|
Map an MUR to a ROD.
Implemented in ConfigurationXMLImpl. |
|
Set default value of any MoPS parameter.
Implemented in ConfigurationXMLImpl. |
|
Set MoPS HV card parameter.
Implemented in ConfigurationXMLImpl. |
|
Set MoPS LV card parameter.
Implemented in ConfigurationXMLImpl. |
|
Set MoPS channel parameter referenced by MUR/number.
Implemented in ConfigurationXMLImpl. |
|
Set MoPS channel parameter referenced by MoPS crate/channel.
Implemented in ConfigurationXMLImpl. |
|
Name a partition (for information, any use?).
Implemented in ConfigurationXMLImpl. |
|
Print module configuration to cout.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Save the current configuration. Write configuration to disc. If no filename is provided a unique filename based on the date and time is created. Filename eg Conf_dump_20021210142311.xml.gz (in current directory) Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Save the current configuration for a module. Write the configuration for the module modsn to disc. Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Set the default error mask for all modules.
Implemented in ConfigurationXMLImpl. |
|
Set fibre mappings for one channel. Any value over 48/96 leaves current value unchanged Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Set the error mask for this module, link = 0,1.
Implemented in ConfigurationXMLImpl. |
|
Set the group for this module.
Implemented in ConfigurationXMLImpl. |
|
Swap two MUR names around. This means in regards to everything about one MUR you can use the other name If either doesn't exist then just one MUR is renamed Implemented in ConfigurationXMLImpl. |
|
Translate to MUR / module(1-6) number from geographical barrel system.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate to MUR / module(1-6) number from geographical endcap system.
Implemented in ConfigurationXMLImpl. |
|
Translate from power supply channel address to MUR / module(1-6) number.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from redundant MUR / module(1-6) number to MUR/module via redundant connection.
Implemented in ConfigurationXMLImpl. |
|
Translate to MUR / module(1-6) number from p/k/r/c.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate to MUR / module(1-6) number from address of redundant module. This returns the MUR/module of the module connected using its redundant link to the p/k/r/c address
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate to MUR / module(1-6) number from serial number.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from MUR / module(1-6) number to geographical barrel system.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from MUR / module(1-6) number to geographical endcap system.
Implemented in ConfigurationXMLImpl. |
|
Translate from MUR / module(1-6) number to power supply channel address.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from MUR / module(1-6) number to MUR/module of redundant connection.
Implemented in ConfigurationXMLImpl. |
|
Translate from MUR / module(1-6) number to p/k/r/c.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from MUR / redundant module(1-6) number to p/k/r/c. This returns the channel to which the module referred to by MUR/module is connected in its redundant configuration
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Translate from MUR / module(1-6) number to serial number.
Implemented in ConfigurationXMLImpl, and OksImpl. |
|
Unmap MUR from Barrel.
Implemented in ConfigurationXMLImpl. |
|
Unmap Endcap MUR.
Implemented in ConfigurationXMLImpl. |
|
Unmap a module from a position in an MUR.
Implemented in ConfigurationXMLImpl. |
|
Unmap Power channel.
Implemented in ConfigurationXMLImpl. |
|
Unmap an MUR from a ROD.
Implemented in ConfigurationXMLImpl. |
|
Use IS in this implementation.
Implemented in ConfigurationXMLImpl. |
|
Use MRS in this implementation.
Implemented in ConfigurationXMLImpl. |
|
Dump power supply configuration to a file.
Implemented in ConfigurationXMLImpl, and OksImpl. |