#include <ModuleConfiguration.h>
Inheritance diagram for SctData::ModuleConfiguration:
Public Member Functions | |
ModuleConfiguration () throw () | |
Simple constructor - creates an empty ABCDModule. | |
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 @}. | |
const ABCDModule & | getABCDModule () const |
Get const access to the underlying ABCDModule. | |
ABCDModule & | getABCDModule () |
Get full access to the underlying ABCDModule. | |
bool | channelIsMasked (const unsigned int ichannel) const throw () |
check if a channel is masked. ichannel in the range 0 to 1535. | |
void | maskChannel (const unsigned int ichannel) throw () |
mask a particular channel. ichannel in the range 0 to 1535 | |
Private Attributes | |
ABCDModule | configuration |
The underlying data representation. | |
vector< shared_ptr< ChipConfiguration > > | chipConfigs |
ChipConfigurations for each chip. |
An interface around 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 - creates an empty ABCDModule.
Definition at line 11 of file ModuleConfiguration.cpp. |
|
Copy constructor.
Definition at line 24 of file ModuleConfiguration.cpp. |
|
check if a channel is masked. ichannel in the range 0 to 1535.
Definition at line 38 of file ModuleConfiguration.cpp. Referenced by SctAnalysis::NPtGainAlgorithm::analyze(). |
|
Get full access to the underlying ABCDModule.
Definition at line 59 of file ModuleConfiguration.cpp. References configuration. |
|
Get const access to the underlying ABCDModule.
Definition at line 55 of file ModuleConfiguration.cpp. References configuration. Referenced by SctCalibrationController::ConfigUpdater::maskChannels(), SctData::IO::ModuleConfigurationStreamer_v2::read(), SctData::IO::ModuleConfigurationStreamer_v1::read(), SctData::IO::ModuleConfigurationStreamer_v2::write(), and SctData::IO::ModuleConfigurationStreamer_v1::write(). |
|
Get the class name for this object. This is used to identify the precise type.
Implements Sct::Streamable. Definition at line 43 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 129 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 113 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 109 of file ModuleConfiguration.h. |
|
mask a particular channel. ichannel in the range 0 to 1535
|
|
Assignment operator.
Definition at line 33 of file ModuleConfiguration.cpp. |
|
set the activity @}
Definition at line 117 of file ModuleConfiguration.h. |
|
Mutator @}.
Definition at line 133 of file ModuleConfiguration.h. |
|
ChipConfigurations for each chip.
Definition at line 103 of file ModuleConfiguration.h. |
|
The underlying data representation.
Definition at line 102 of file ModuleConfiguration.h. Referenced by getABCDModule(). |