12 return std::string(
"$Rev: 1649 $");
17 return std::string(
"GenericADCElectronicsParameters");
34 obj()->setIntVal( 0, readoutGroupID );
39 obj()->setIntVal( 1, polarity );
44 obj()->setIntVal( 2, maxADCValue );
49 obj()->setFloatVal( 0, frequency );
54 obj()->setIntVal( 3, (
int)onoff);
59 obj()->setIntVal( 4, (
int)onoff);
65 return getIntVal( 0 );
70 return getIntVal( 1 );
75 return getIntVal( 2 );
80 return getFloatVal( 0 );
85 return (
bool)getIntVal( 3 );
90 return (
bool)getIntVal( 4 );
98 std::streamsize PrecisionBefore = os.precision();
99 std::streamsize WidthBefore = os.width();
100 os.precision(3); os.setf(std::ios_base::fixed);
102 os <<
" Read-out Frequency:" <<
getFrequency() <<
" [MHz]"<< std::endl;
104 os.unsetf( std::ios_base::fixed );
105 os.precision( PrecisionBefore );
106 os.width( WidthBefore );
116 GenericADCElectronicsParameters::key_type GenericADCElectronicsParameters::conditions_key()
const {
GenericADCElectronicsParameters(int readoutGroupID, int polarity, int maxADCvalue, float frequency, bool isPedestalSubtracted, bool isZeroSupressed)
Convenient constructor setting all values.
int getMaxADCValue() const
static std::string getRevision()
bool isPedestalSubtracted() const
void setPolarity(int polarity)
virtual ~GenericADCElectronicsParameters()
Important for memory handling.
void setZeroSupressed(bool onoff)
Class that combines information on parameters and settings if the read-out electronics for storage...
std::ostream & operator<<(std::ostream &os, const ADCChannelMapping &acm)
int getReadoutGroup() const
void print(std::ostream &os=std::cout) const
float getFrequency() const
void setReadoutGroup(int readoutGroupID)
void setPedestalSubtracted(bool onoff)
static std::string getDefaultColName()
void setFrequency(float frequency)
void setMaxADCValue(int maxADCValue)
bool isZeroSupressed() const