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;
30 int adc =
convert( (gainHandle->getStripGain(
i, detGainRange))*(analogSignal[
i]) );
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++) {
54 int adc =
convertRaw( (gainHandle->getStripGain(
i, detGainRange))*(analogSignal[
i]));
58 for (
size_t i=0;
i<analogSignal.size();
i++) {
70 int adc = int(in_adc+0.5);
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;
90 int adc = int(in_adc+0.5);
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
DigitalVecType convert(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid)
int truncateRaw(float in_adc) const
SiTrivialDigitalConverter(float in, bool PreMix)
DigitalRawVecType convertRaw(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid)
std::vector< SiStripRawDigi > DigitalRawVecType
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...
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiDigitalConverter::DigitalVecType _temp