ThresholdVariable.h

00001 #ifndef THRESHOLDVARIABLE_H
00002 #define THRESHOLDVARIABLE_H
00003 
00004 #include "ConfigurationVariable.h"
00005 #include "ModuleConfiguration.h"
00006 
00007 namespace SctData {
00008     
00010 class ThresholdVariable : public ConfigurationVariable {
00011 public:
00012     virtual double getChipActualPoint(const ModuleConfiguration& config, unsigned int chip) const throw();
00013     virtual void setChipActualPoint(double actualPt, ModuleConfiguration& config, unsigned int chip) const throw(); 
00014 protected:
00015     ThresholdVariable(unsigned int typeRep, std::string strategyDescription);
00016 };
00017 
00018 
00019 inline ThresholdVariable::ThresholdVariable(unsigned int typeRep, std::string strategyDescription) : ConfigurationVariable(typeRep, "Threshold", strategyDescription) {}
00020 
00021 inline double ThresholdVariable::getChipActualPoint(const ModuleConfiguration& config, unsigned int chip) const throw() {
00022     return config.getChipConfiguration(chip).getThreshold();
00023 }
00024 
00026 inline void ThresholdVariable::setChipActualPoint(double actualPt, ModuleConfiguration& config, unsigned int chip) const throw() {
00027     config.getChipConfiguration(chip).setThreshold((unsigned char) actualPt);
00028 }
00029 
00030 
00031 }
00032 
00033 #endif //#ifndef THRESHOLDVARIABLE_H

Generated on Mon Feb 6 14:01:35 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6