Public Member Functions | |
ConfigIPC (sctConf::Configuration_ptr handle) | |
std::list< unsigned int > | listPartitions () |
List partition ids Lookup the partitions defined in the configuration and return a list of integer ID's. | |
std::list< unsigned int > | listCratesInPartition (unsigned int partition) |
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. | |
std::list< unsigned int > | listRodsInCrate (unsigned int partition, unsigned int crate) |
List the rods present in a crate Lookup the RODs defined in the specified crate and return a list of integer ID's. | |
std::list< unsigned int > | listMURSInRod (unsigned int partition, unsigned int crate, unsigned int rod) |
List the MURs associated with a ROD Return integer id's of the MURs in the specified rod. | |
std::list< std::string > | listModulesInMUR (unsigned int partition, unsigned int MUR) |
List the modules in the given MUR Return a list of serial numbers associated with the specified MUR. | |
std::list< std::string > | listRModulesInMUR (unsigned int partition, unsigned int MUR) |
List the modules in the given MUR Return a list of serial numbers associated with the redundancy links of the specified MUR. | |
std::list< std::string > | listAllModules () |
Return a list of serial numbers of all modules that have configuration. | |
std::list< std::string > | listUnusedModules () |
Return a list of serial numbers of modules that have configuration but are not attached to an MUR. | |
bool | isDummyCrate (unsigned int partition, unsigned int crate) |
Check if this should be a dummy crate. | |
ABCDModule | getModuleConfig (const std::string module) |
Return the configuration for the module. | |
short | getModuleGroup (const std::string module) |
Return the group for this module. | |
void | setModuleGroup (const std::string module, short group) |
Set the group for this module. | |
unsigned int | getModuleErrorMask (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int link) |
Return the error mask for this module, link = 0,1. | |
void | setModuleErrorMask (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int link, unsigned int mask) |
Set the error mask for this module, link = 0,1. | |
void | setDefaultModuleErrorMask (unsigned int mask) |
Set the default error mask for all modules. | |
RodConfig | getRodConfig (unsigned int partition, unsigned int crate, unsigned int rod) |
Return the Rod configuration Find the configuration associated with the specified ROD. | |
SlaveConfig | getDefaultSlaveConfig (char type) |
Return the default slave configuration Find the configuration associated with the specified slave type. | |
BOCChannelConfig | getBOCConfig (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel) |
Get the BOC configuration of one of 48 channels. | |
BOCGlobalConfig | getBOCGlobalConfig (unsigned int partition, unsigned int crate, unsigned int rod) |
Get the BOCs global configuration. | |
TimConfig | getTimConfig (unsigned int partition, unsigned int crate) |
Return the TIM configuration Find the configuration associated with the specified TIM. | |
unsigned char * | getFibreMappings (unsigned int partition, unsigned int crate, unsigned int rod) |
Get the BOC fibre mappings. | |
void | setFibreMapping (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int tx, unsigned int rx0, unsigned int rx1) |
Set fibre mappings for one channel. | |
std::string | printModuleConfig (const ABCDModule &conf) |
Print module configuration to cout. | |
MURType | getMURType (unsigned int MUR) |
unsigned int | getFreeMurId () |
Return an unused MUR id. | |
void | translateToROD (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &channel) |
Translate from MUR / module(1-6) number to p/k/r/c. | |
void | translateToRROD (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &channel) |
Translate from MUR / redundant module(1-6) number to p/k/r/c. | |
void | translateToSN (unsigned int MUR, unsigned int module, std::string &sn) |
Translate from MUR / module(1-6) number to serial number. | |
void | translateToRMUR (unsigned int, unsigned int, unsigned int &, unsigned int &) |
Translate from MUR / module(1-6) number to MUR/module of redundant connection. | |
void | translateToBarrel (unsigned int MUR, unsigned int module, unsigned int &barrel, unsigned int &row, int &number) |
Translate from MUR / module(1-6) number to geographical barrel system. | |
void | translateToEndcap (unsigned int MUR, unsigned int module, int &disk, unsigned int &ring, unsigned int &number) |
Translate from MUR / module(1-6) number to geographical endcap system. | |
void | translateToPowerSupply (unsigned int MUR, unsigned int module, unsigned int &partition, unsigned int &crate, unsigned int &channel) |
Translate from MUR / module(1-6) number to power supply channel address. | |
void | translateFromROD (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int &MUR, unsigned int &module) |
Translate to MUR / module(1-6) number from p/k/r/c. | |
void | translateFromRROD (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int &MUR, unsigned int &module) |
Translate to MUR / module(1-6) number from address of redundant module. | |
void | translateFromSN (const std::string sn, unsigned int &MUR, unsigned int &module) |
Translate to MUR / module(1-6) number from serial number. | |
void | translateFromRMUR (unsigned int RMUR, unsigned int rmodule, unsigned int &MUR, unsigned int &module) |
Translate from redundant MUR / module(1-6) number to MUR/module via redundant connection. | |
void | translateFromBarrel (unsigned int barrel, unsigned int row, int number, unsigned int &MUR, unsigned int &module) |
Translate to MUR / module(1-6) number from geographical barrel system. | |
void | translateFromEndcap (int disk, unsigned int ring, unsigned int number, unsigned int &MUR, unsigned int &module) |
Translate to MUR / module(1-6) number from geographical endcap system. | |
void | translateFromPowerSupply (unsigned int partition, unsigned int crate, unsigned int channel, unsigned int &MUR, unsigned int &module) |
Translate from power supply channel address to MUR / module(1-6) number. | |
void | configureModuleFromStructure (const std::string module, const ABCDModule conf) |
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. | |
void | configureModuleFromFile (const std::string filename) |
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). | |
void | configureROD (unsigned int partition, unsigned int crate, unsigned int rod, RodConfig conf) |
Configure a ROD. | |
void | configureTIM (unsigned int partition, unsigned int crate, TimConfig conf) |
Configure a TIM. | |
void | configureBOC (unsigned int partition, unsigned int crate, unsigned int rod, const BOCGlobalConfig &conf) |
Set a BOC configuration. | |
void | clearAll () |
Remove all configuration. | |
void | namePartition (unsigned int partition, const std::string name) |
Name a partition (for information, any use?). | |
void | configureBOCChannel (unsigned int MUR, unsigned int position, const BOCChannelConfig &conf) |
Set a BOC channel configuration. | |
void | mapModuleMUR (unsigned int MUR, unsigned int order, unsigned int RMUR, unsigned int rorder, std::string number) |
Map a module (by serial number) onto a position in an MUR. | |
void | unmapModuleMUR (unsigned int MUR, unsigned int order) |
Unmap a module from a position in an MUR. | |
void | mapRODMUR (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int order, unsigned int number) |
Map an MUR to a ROD. | |
void | unmapRODMUR (unsigned int MUR) |
Unmap an MUR from a ROD. | |
void | mapBarrelMUR (unsigned int MUR, unsigned int barrel, unsigned int row, int position) |
Map Barrel MUR. | |
void | unmapBarrelMUR (unsigned int MUR) |
Unmap MUR from Barrel. | |
void | getMapMURROD (unsigned int number, unsigned int &partition, unsigned int &crate, unsigned int &rod, unsigned int &order) |
Get mapping of MUR to ROD. | |
void | getMapRODMUR (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int order, unsigned int &number) |
Get mapping of ROD to MUR. | |
void | getMapMURPhysical (unsigned int, SctConfiguration::MURType &, int &, int &, int &) |
void | swapMURNames (unsigned int MUR1, unsigned int MUR2) |
Swap two MUR names around. | |
void | mapEndcapMUR (unsigned int MUR, int disk, unsigned int quadrant, unsigned int position) |
Map Endcap MUR. | |
void | unmapEndcapMUR (unsigned int MUR) |
Unmap Endcap MUR. | |
void | mapPowerChannel (unsigned int MUR, unsigned int number, unsigned int partition, unsigned int crate, unsigned int channel) |
Map Power channel. | |
void | unmapPowerChannel (unsigned int MUR, unsigned int order) |
Unmap Power channel. | |
void | modifyDefaultPowerParam (std::string state, std::string name, std::string type, float value) |
Set default value of any MoPS parameter. | |
void | modifyHVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type, float value) |
Set MoPS HV card parameter. | |
void | modifyLVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type, float value) |
Set MoPS LV card parameter. | |
void | modifyPowerParam (unsigned int MUR, unsigned int number, std::string state, std::string name, std::string type, float value) |
Set MoPS channel parameter referenced by MUR/number. | |
void | modifyPowerParamCC (unsigned int crate, unsigned int channel, std::string state, std::string name, std::string type, float value) |
Set MoPS channel parameter referenced by MoPS crate/channel. | |
float | getDefaultPowerParam (std::string state, std::string name, std::string type) |
Get default power of any MoPS parameter. | |
float | getHVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type) |
Get MoPS HV card parameter. | |
float | getLVCardParam (unsigned int crate, unsigned int card, std::string name, std::string type) |
Get MoPS LV card parameter. | |
float | getPowerParam (unsigned int MUR, unsigned int number, std::string state, std::string name, std::string type) |
Get MoPS channel parameter referenced by MUR/number. | |
float | getPowerParamCC (unsigned int crate, unsigned int channel, std::string state, std::string name, std::string type) |
Get MoPS channel parameter referenced by MoPS crate/channel. | |
std::list< std::string > | listDefaultPowerParams () |
List the defined parameters. | |
std::list< std::string > | listDCSChannelParams () |
List the channel parameters for DCS. | |
std::list< std::string > | listDCSCardParams () |
List the card parameters for DCS. | |
std::list< std::string > | listDCSCrateParams () |
List the crate parameters for DCS. | |
void | useMRSForMessages (const bool valid) |
Use MRS in this implementation. | |
void | useISForChanges (const bool valid) |
Use IS in this implementation. | |
void | loadConfiguration (const std::string &filename) |
Load configuration from named file. | |
std::string | getConfigurationFileName () |
For informational purposes only. | |
void | saveConfiguration (const std::string filename="") |
Save the current configuration. | |
void | saveModuleConfiguration (const std::string modsn, const std::string filename) |
Save the current configuration for a module. | |
std::string | getModuleConfigurationString (const std::string modsn, const ABCDModule config) |
Construct the XML for a module configuration and return as a string. | |
void | writePowerSupplyConfiguration (std::string filename) |
Dump power supply configuration to a file. | |
Protected Member Functions | |
ConfigurationException | convertException (sctConf::ConfigurationException &e) |
Protected Attributes | |
sctConf::Configuration_var | handle |
Private Member Functions | |
ConfigIPC (const ConfigIPC &) | |
ConfigIPC & | operator= (const ConfigIPC &) |
Definition at line 11 of file configipc.h.
|
Remove all configuration. Very dangerous!! Implements SctConfiguration::Configuration. |
|
Set a BOC configuration.
Implements SctConfiguration::Configuration. |
|
Set a BOC channel configuration.
Implements SctConfiguration::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).
Implements SctConfiguration::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 configuration.
Implements SctConfiguration::Configuration. |
|
Configure a ROD. Replace the in memory configuration for the given ROD with the configuration provided. If no configuration then construct it Implements SctConfiguration::Configuration. |
|
Configure a TIM. Replace the in memory configuration for the given TIM with the configuration provided. If no configuration then construct it Implements SctConfiguration::Configuration. |
|
Get the BOC configuration of one of 48 channels.
Implements SctConfiguration::Configuration. |
|
Get the BOCs global configuration.
Implements SctConfiguration::Configuration. |
|
For informational purposes only.
Implements SctConfiguration::Configuration. |
|
Get default power of any MoPS parameter.
Implements SctConfiguration::Configuration. |
|
Return the default slave configuration Find the configuration associated with the specified slave type. Return a SlaveConfig structure. Implements SctConfiguration::Configuration. |
|
Get the BOC fibre mappings. An array of 48*3 chars (out, in0, in1) Implements SctConfiguration::Configuration. |
|
Return an unused MUR id.
Implements SctConfiguration::Configuration. |
|
Get MoPS HV card parameter.
Implements SctConfiguration::Configuration. |
|
Get MoPS LV card parameter.
Implements SctConfiguration::Configuration. |
|
Get mapping of MUR to ROD.
Implements SctConfiguration::Configuration. |
|
Get mapping of ROD to MUR.
Implements SctConfiguration::Configuration. |
|
Return the configuration for the module. Deprecated: Should take MUR argument Implements SctConfiguration::Configuration. Referenced by TrimRangeCompare::compareChannel(). |
|
Construct the XML for a module configuration and return as a string.
Implements SctConfiguration::Configuration. |
|
Return the error mask for this module, link = 0,1.
Implements SctConfiguration::Configuration. |
|
Return the group for this module.
Implements SctConfiguration::Configuration. |
|
Get MoPS channel parameter referenced by MUR/number.
Implements SctConfiguration::Configuration. |
|
Get MoPS channel parameter referenced by MoPS crate/channel.
Implements SctConfiguration::Configuration. |
|
Return the Rod configuration Find the configuration associated with the specified ROD. Return a RodConfig structure. Implements SctConfiguration::Configuration. |
|
Return the TIM configuration Find the configuration associated with the specified TIM. Return a TimConfig structure. Implements SctConfiguration::Configuration. |
|
Check if this should be a dummy crate.
Implements SctConfiguration::Configuration. |
|
Return a list of serial numbers of all modules that have configuration. This includes those that are not attached to a ROD or MUR Implements SctConfiguration::Configuration. |
|
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.
Implements SctConfiguration::Configuration. |
|
List the card parameters for DCS.
Implements SctConfiguration::Configuration. |
|
List the channel parameters for DCS.
Implements SctConfiguration::Configuration. |
|
List the crate parameters for DCS.
Implements SctConfiguration::Configuration. |
|
List the defined parameters.
Implements SctConfiguration::Configuration. |
|
List the modules in the given MUR Return a list of serial numbers associated with the specified MUR. FIXME: Should be in numbered order Implements SctConfiguration::Configuration. |
|
List the MURs associated with a ROD Return integer id's of the MURs in the specified rod. FIXME: Should be in numbered order Implements SctConfiguration::Configuration. |
|
List partition ids Lookup the partitions defined in the configuration and return a list of integer ID's.
Implements SctConfiguration::Configuration. |
|
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?) Implements SctConfiguration::Configuration. |
|
List the rods present in a crate Lookup the RODs defined in the specified crate and return a list of integer ID's.
Implements SctConfiguration::Configuration. |
|
Return a list of serial numbers of modules that have configuration but are not attached to an MUR.
Implements SctConfiguration::Configuration. |
|
Load configuration from named file.
Implements SctConfiguration::Configuration. Referenced by SctCalibrationController::RunControl::loadAction(). |
|
Map Barrel MUR.
Implements SctConfiguration::Configuration. |
|
Map Endcap MUR.
Implements SctConfiguration::Configuration. |
|
Map a module (by serial number) onto a position in an MUR.
Implements SctConfiguration::Configuration. |
|
Map Power channel.
Implements SctConfiguration::Configuration. |
|
Map an MUR to a ROD.
Implements SctConfiguration::Configuration. |
|
Set default value of any MoPS parameter.
Implements SctConfiguration::Configuration. |
|
Set MoPS HV card parameter.
Implements SctConfiguration::Configuration. |
|
Set MoPS LV card parameter.
Implements SctConfiguration::Configuration. |
|
Set MoPS channel parameter referenced by MUR/number.
Implements SctConfiguration::Configuration. |
|
Set MoPS channel parameter referenced by MoPS crate/channel.
Implements SctConfiguration::Configuration. |
|
Name a partition (for information, any use?).
Implements SctConfiguration::Configuration. |
|
Print module configuration to cout.
Implements SctConfiguration::Configuration. |
|
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) Implements SctConfiguration::Configuration. |
|
Save the current configuration for a module. Write the configuration for the module modsn to disc. Implements SctConfiguration::Configuration. |
|
Set the default error mask for all modules.
Implements SctConfiguration::Configuration. |
|
Set fibre mappings for one channel. Any value over 48/96 leaves current value unchanged Implements SctConfiguration::Configuration. |
|
Set the error mask for this module, link = 0,1.
Implements SctConfiguration::Configuration. |
|
Set the group for this module.
Implements SctConfiguration::Configuration. |
|
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 Implements SctConfiguration::Configuration. |
|
Translate to MUR / module(1-6) number from geographical barrel system.
Implements SctConfiguration::Configuration. |
|
Translate to MUR / module(1-6) number from geographical endcap system.
Implements SctConfiguration::Configuration. |
|
Translate from power supply channel address to MUR / module(1-6) number.
Implements SctConfiguration::Configuration. |
|
Translate from redundant MUR / module(1-6) number to MUR/module via redundant connection.
Implements SctConfiguration::Configuration. |
|
Translate to MUR / module(1-6) number from p/k/r/c.
Implements SctConfiguration::Configuration. |
|
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
Implements SctConfiguration::Configuration. |
|
Translate to MUR / module(1-6) number from serial number.
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to geographical barrel system.
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to geographical endcap system.
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to power supply channel address.
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to MUR/module of redundant connection.
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to p/k/r/c.
Implements SctConfiguration::Configuration. |
|
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
Implements SctConfiguration::Configuration. |
|
Translate from MUR / module(1-6) number to serial number.
Implements SctConfiguration::Configuration. |
|
Unmap MUR from Barrel.
Implements SctConfiguration::Configuration. |
|
Unmap Endcap MUR.
Implements SctConfiguration::Configuration. |
|
Unmap a module from a position in an MUR.
Implements SctConfiguration::Configuration. |
|
Unmap Power channel.
Implements SctConfiguration::Configuration. |
|
Unmap an MUR from a ROD.
Implements SctConfiguration::Configuration. |
|
Use IS in this implementation.
Implements SctConfiguration::Configuration. |
|
Use MRS in this implementation.
Implements SctConfiguration::Configuration. |
|
Dump power supply configuration to a file.
Implements SctConfiguration::Configuration. |