6 electronperADC(in), PreMixing_(PreMix) {
17 for (
size_t i=0;
i<analogSignal.size();
i++) {
18 if (analogSignal[
i]<=0)
continue;
27 for (
size_t i=0;
i<analogSignal.size();
i++) {
28 if (analogSignal[
i]<=0)
continue;
34 for (
size_t i=0;
i<analogSignal.size();
i++) {
35 if (analogSignal[
i]<=0)
continue;
51 for (
size_t i=0;
i<analogSignal.size();
i++) {
58 for (
size_t i=0;
i<analogSignal.size();
i++) {
76 if (adc > 2047 )
return 1023;
77 if (adc > 1022 )
return 1022;
80 if (adc > 1022 )
return 255;
81 if (adc > 253)
return 254;
84 if (adc < 0)
return 0;
91 if (adc > 1023 )
return 1023;
93 if (adc < 0)
return 0;
int adc(sample_type sample)
get the ADC sample (12 bits)
std::vector< SiStripDigi > DigitalVecType
int truncateRaw(float in_adc) const
SiTrivialDigitalConverter(float in, bool PreMix)
std::vector< SiStripRawDigi > DigitalRawVecType
static float getStripGain(const uint16_t &strip, const SiStripApvGain::Range &range)
int truncate(float in_adc) const
std::pair< ContainerIterator, ContainerIterator > Range
SiDigitalConverter::DigitalRawVecType _tempRaw
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
DigitalVecType convert(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid) override
DigitalRawVecType convertRaw(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid) override
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiDigitalConverter::DigitalVecType _temp
const SiStripApvGain::Range getRange(uint32_t detID) const