18 for (
size_t i=0;
i<analogSignal.size();
i++) {
19 if (analogSignal[
i]<=0)
continue;
21 int adc =
convert( (gainHandle->getStripGain(
i, detGainRange))*(analogSignal[
i]) );
25 for (
size_t i=0;
i<analogSignal.size();
i++) {
26 if (analogSignal[
i]<=0)
continue;
42 for (
size_t i=0;
i<analogSignal.size();
i++) {
45 int adc =
convertRaw( (gainHandle->getStripGain(
i, detGainRange))*(analogSignal[
i]));
49 for (
size_t i=0;
i<analogSignal.size();
i++) {
61 int adc = int(in_adc+0.5);
66 if (adc > 1022 )
return 255;
67 if (adc > 253)
return 254;
69 if (adc < 0)
return 0;
75 int adc = int(in_adc+0.5);
76 if (adc > 1023 )
return 1023;
78 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)
DigitalVecType convert(const std::vector< double > &, edm::ESHandle< SiStripGain > &, unsigned int detid)
int truncate(float in_adc)
std::vector< SiStripRawDigi > DigitalRawVecType
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...
SiTrivialDigitalConverter(float in)
DigitalRawVecType convertRaw(const std::vector< double > &, edm::ESHandle< SiStripGain > &, unsigned int detid)
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiDigitalConverter::DigitalVecType _temp