16 for (
size_t i = 0;
i < analogSignal.size();
i++) {
17 if (analogSignal[
i] <= 0)
25 }
else if (gainHandle.
isValid()) {
27 for (
size_t i = 0;
i < analogSignal.size();
i++) {
28 if (analogSignal[
i] <= 0)
36 for (
size_t i = 0;
i < analogSignal.size();
i++) {
37 if (analogSignal[
i] <= 0)
55 for (
size_t i = 0;
i < analogSignal.size();
i++) {
56 if (analogSignal[
i] <= 0) {
65 for (
size_t i = 0;
i < analogSignal.size();
i++) {
66 if (analogSignal[
i] <= 0) {
80 int adc =
int(in_adc + 0.5);
104 int adc =
int(in_adc + 0.5);
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
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
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