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
DigitalVecType convert(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid)
int truncateRaw(float in_adc) const
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...
SiTrivialDigitalConverter(float in)
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiDigitalConverter::DigitalVecType _temp