14 const int defaultBits = 10;
15 const int largestBits = 30;
27 std::cout <<
" ***DigiConverterFP420: constructor" << std::endl;
28 std::cout <<
"with known electronperADC = " <<
electronperADC <<
"the adcBits = " <<
adcBits <<
" theMaxADC= " <<
theMaxADC <<
"for known defaultBits= " << defaultBits <<
" largestBits= " << largestBits << std::endl;
37 for ( signal_map_type::const_iterator
i=analogSignal.begin();
i!=analogSignal.end();
i++) {
44 std::cout <<
" ***DigiConverterFP420: convert: after truncation " << std::endl;
45 std::cout <<
"adc = " << adc <<
" (*i).first = " << (*i).first << std::endl;
47 if ( adc > 0) _temp.insert( _temp.end(),
58 int adc = int(in_adc);
60 std::cout <<
" ***DigiConverterFP420: truncate" << std::endl;
61 std::cout <<
"if adc = " << adc <<
"bigger theMaxADC = " <<
theMaxADC <<
" adc=theMaxADC !!!" << std::endl;
int adc(sample_type sample)
get the ADC sample (12 bits)
int truncate(float in_adc)
std::map< int, int, std::less< int > > DigitalMapType
DigiConverterFP420(float in, int)
DigitalMapType convert(const signal_map_type &)
Container::value_type value_type
PileUpFP420::signal_map_type signal_map_type