6 : ADCperElectron(1.
f /
in), PreMixing_(PreMix) {
17 for (
size_t i = 0;
i < analogSignal.size();
i++) {
18 if (analogSignal[
i] <= 0)
28 for (
size_t i = 0;
i < analogSignal.size();
i++) {
29 if (analogSignal[
i] <= 0)
32 int adc =
convert((
gain->getStripGain(
i, detGainRange)) * (analogSignal[
i]));
37 for (
size_t i = 0;
i < analogSignal.size();
i++) {
38 if (analogSignal[
i] <= 0)
50 const std::vector<float>& analogSignal,
const SiStripGain*
gain,
unsigned int detid) {
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) {
std::vector< SiStripDigi > DigitalVecType
int truncateRaw(float in_adc) const
DigitalRawVecType const & convertRaw(const std::vector< float > &, const SiStripGain *, unsigned int detid) override
SiTrivialDigitalConverter(float in, bool PreMix)
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...
int truncate(float in_adc) const
DigitalVecType const & convert(const std::vector< float > &, const SiStripGain *, unsigned int detid) override
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiDigitalConverter::DigitalVecType _temp
uint16_t *__restrict__ uint16_t const *__restrict__ adc