#include <ModuleConfiguration.h>
Inheritance diagram for SctData::ModuleConfiguration:
Public Member Functions | |||
ModuleConfiguration () throw () | |||
Simple constructor and destructor. | |||
virtual | ~ModuleConfiguration () throw () | ||
ModuleConfiguration (const ModuleConfiguration &config) throw () | |||
Copy constructor. | |||
ModuleConfiguration & | operator= (const ModuleConfiguration &config) throw () | ||
Assignment operator. | |||
virtual std::string | getClassName () const throw () | ||
Get the class name for this object. | |||
ChipConfiguration & | getChipConfiguration (const unsigned int chip) throw () | ||
const ChipConfiguration & | getChipConfiguration (const unsigned int chip) const throw () | ||
bool | isPresent () const throw () | ||
presence means module configurations are present in the ROD and therefore sent triggers and read out by the histogramming code | |||
bool | isActive () const throw () | ||
active means a module "takes part in a scan" ie has its configuration modified by the histogramming engine | |||
void | setActive (bool active) throw () | ||
set the activity @} | |||
bool | usingPrimaryClock () const throw () | ||
void | setUsingPrimaryClock (bool usePrimaryClock) throw () | ||
char | getGroupId () const throw () | ||
Group ID This is used to indicate which slave DSP will receive the module's data (if group based distribution is set), and also to allow different module groups to be triggered independently (for cross-talk studies). | |||
void | setGroupId (const char) throw () | ||
Mutator @}. | |||
bool | channelIsMasked (const unsigned int ichannel) const throw () | ||
check if a channel is masked.
| |||
void | maskChannel (const unsigned int ichannel) throw () | ||
mask a particular channel.
| |||
Private Attributes | |||
ABCDModule | configuration | ||
The underlying data representation. | |||
vector< shared_ptr< ChipConfiguration > > | chipConfigs | ||
ChipConfigurations for each chip. | |||
Friends | |||
class | ModuleConfigurationIOHelper |
Just a placeholder for now, but will probably be an interface to ABCDModule. It is worth noting that this class and its components define access to the data in terms of the physical setting e.g. DAC settings. If a user wants to think of a variable in terms of a higher level quantity, such as charge, mV etc then he should use an appropriate strategy for performing the conversion. This is motivated by the realisation that typically DAC step sizes are only approximate so expressing the setting in terms of e.g. mV is just as meaningless as expressing it in terms of DAC steps. However, we have decided to stick with functions in terms of nominal values for now.
Definition at line 29 of file ModuleConfiguration.h.
|
Simple constructor and destructor.
Definition at line 10 of file ModuleConfiguration.cpp. |
|
Definition at line 20 of file ModuleConfiguration.cpp. |
|
Copy constructor.
Definition at line 23 of file ModuleConfiguration.cpp. |
|
check if a channel is masked.
Definition at line 37 of file ModuleConfiguration.cpp. |
|
Definition at line 50 of file ModuleConfiguration.cpp. |
|
Definition at line 46 of file ModuleConfiguration.cpp. |
|
Get the class name for this object. This is used to identify the precise type.
Implements Sct::Streamable. Definition at line 42 of file ModuleConfiguration.cpp. |
|
Group ID This is used to indicate which slave DSP will receive the module's data (if group based distribution is set), and also to allow different module groups to be triggered independently (for cross-talk studies). valid range: [0,3] Accessor Definition at line 125 of file ModuleConfiguration.h. |
|
active means a module "takes part in a scan" ie has its configuration modified by the histogramming engine check activity
Definition at line 109 of file ModuleConfiguration.h. |
|
presence means module configurations are present in the ROD and therefore sent triggers and read out by the histogramming code
Definition at line 105 of file ModuleConfiguration.h. References ABCDModule::present. |
|
mask a particular channel.
|
|
Assignment operator.
Definition at line 32 of file ModuleConfiguration.cpp. |
|
set the activity @}
Definition at line 113 of file ModuleConfiguration.h. |
|
Mutator @}.
Definition at line 129 of file ModuleConfiguration.h. |
|
Definition at line 121 of file ModuleConfiguration.h. |
|
Definition at line 117 of file ModuleConfiguration.h. |
|
Definition at line 94 of file ModuleConfiguration.h. |
|
ChipConfigurations for each chip.
Definition at line 93 of file ModuleConfiguration.h. |
|
The underlying data representation.
Definition at line 92 of file ModuleConfiguration.h. |