#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 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 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 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 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 void | printModuleConfig (const ABCDModule &conf)=0 |
Print module configuration to cout. | |
virtual MURType | getMURType (unsigned int MUR)=0 |
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 | 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, unsigned 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 | 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 (unsigned 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 | clearAll ()=0 |
Remove all configuration. | |
virtual void | namePartition (int partition, const std::string name)=0 |
Name a partition (for information, any use?). | |
virtual void | configureBOCChannel (int MUR, int position, const BOCChannelConfig &conf)=0 |
Set a BOC configuration. | |
virtual void | mapModuleMUR (int MUR, int order, int RMUR, int rorder, std::string number)=0 |
Map a module (by serial number) onto a position in an MUR. | |
virtual void | mapRODMUR (int partition, int crate, int rod, int order, int number)=0 |
Map an MUR. | |
virtual void | mapBarrelMUR (int MUR, int barrel, int row, int position)=0 |
Map Barrel MUR. | |
virtual void | swapMURNames (int MUR1, int MUR2)=0 |
Swap two MUR names around. | |
virtual void | mapEndcapMUR (int MUR, int disk, int quadrant, int position)=0 |
Map Endcap MUR. | |
virtual void | mapPowerChannel (int MUR, int number, unsigned int partition, unsigned int crate, unsigned int channel)=0 |
Map Power channel. | |
virtual void | modifyPowerParam (int MUR, int number, std::string name, float value)=0 |
Set power supply parameter. | |
virtual void | modifyDefaultPowerParam (std::string name, float value)=0 |
Set default power supply parameter. | |
virtual float | getPowerParam (int MUR, int number, std::string name)=0 |
Get power supply parameter. | |
virtual void | loadConfiguration (const std::string &filename)=0 |
Load configuration from named file. | |
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 130 of file configuration.h.
|
Free resources.
Definition at line 135 of file configuration.h. |
|
Remove all configuration. Very dangerous!! |
|
Set a BOC 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).
|
|
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.
|
|
Configure a ROD. Replace the in memory configuration for the given ROD with the configuration provided. If no configuration then construct it |
|
Configure a TIM. Replace the in memory configuration for the given TIM with the configuration provided. If no configuration then construct it |
|
Get the BOC configuration of one of 48 channels. Input channels are paired as one. |
|
Get the BOC fibre mappings. An array of 48*3 chars (out, in0, in1) |
|
Return the configuration for the module. Deprecated: Should take MUR argument |
|
Construct the XML for a module configuration and return as a string.
|
|
Get power supply parameter.
|
|
Return the Rod configuration Find the configuration associated with the specified ROD. Return a RodConfig structure. |
|
Return the TIM configuration Find the configuration associated with the specified TIM. Return a TimConfig structure. |
|
Return a list of serial numbers of all modules that have configuration. This includes those that are not attached to a ROD or MUR |
|
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.
|
|
List the modules in the given MUR Return a list of serial numbers associated with the specified MUR. FIXME: Should be in numbered order |
|
List the MURs associated with a ROD Return integer id's of the MURs in the specified rod. FIXME: Should be in numbered order |
|
List partition ids Lookup the partitions defined in the configuration and return a list of integer ID's.
|
|
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?) |
|
List the rods present in a crate Lookup the RODs defined in the specified crate and return a list of integer ID's.
|
|
Return a list of serial numbers of modules that have configuration but are not attached to an MUR.
|
|
Load configuration from named file.
|
|
Map Barrel MUR.
|
|
Map Endcap MUR.
|
|
Map a module (by serial number) onto a position in an MUR.
|
|
Map Power channel.
|
|
Map an MUR.
|
|
Set default power supply parameter.
|
|
Set power supply parameter.
|
|
Name a partition (for information, any use?).
|
|
Print module configuration to cout.
|
|
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) |
|
Save the current configuration for a module. Write the configuration for the module modsn to disc. |
|
Set fibre mappings for one channel. Any value over 48/96 leaves current value unchanged |
|
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 |
|
Translate to MUR / module(1-6) number from geographical barrel system.
|
|
Translate to MUR / module(1-6) number from geographical endcap system.
|
|
Translate from power supply channel address to MUR / module(1-6) number.
|
|
Translate to MUR / module(1-6) number from p/k/r/c.
|
|
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 |
|
Translate to MUR / module(1-6) number from serial number.
|
|
Translate from MUR / module(1-6) number to geographical barrel system.
|
|
Translate from MUR / module(1-6) number to geographical endcap system.
|
|
Translate from MUR / module(1-6) number to power supply channel address.
|
|
Translate from MUR / module(1-6) number to p/k/r/c.
|
|
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 |
|
Translate from MUR / module(1-6) number to serial number.
|
|
Dump power supply configuration to a file.
|