CMS 3D CMS Logo

SiTrivialDigitalConverter.h
Go to the documentation of this file.
1 #ifndef Tracker_SiTrivialDigitalConverter_H
2 #define Tracker_SiTrivialDigitalConverter_H
3 
9 public:
10  SiTrivialDigitalConverter(float in, bool PreMix);
11 
12  DigitalVecType convert(const std::vector<float>&, const SiStripGain*, unsigned int detid) override;
13  DigitalRawVecType convertRaw(const std::vector<float>&, const SiStripGain*, unsigned int detid) override;
14 
15 private:
16  int convert(float in) { return truncate(in / electronperADC); }
17  int convertRaw(float in) { return truncateRaw(in / electronperADC); }
18  int truncate(float in_adc) const;
19  int truncateRaw(float in_adc) const;
20 
21  const float electronperADC;
24  bool PreMixing_;
25 };
26 
27 #endif
std::vector< SiStripDigi > DigitalVecType
int truncateRaw(float in_adc) const
SiTrivialDigitalConverter(float in, bool PreMix)
DigitalVecType convert(const std::vector< float > &, const SiStripGain *, unsigned int detid) override
DigitalRawVecType convertRaw(const std::vector< float > &, const SiStripGain *, unsigned int detid) override
std::vector< SiStripRawDigi > DigitalRawVecType
SiDigitalConverter::DigitalRawVecType _tempRaw
int truncate(float in_adc) const
SiDigitalConverter::DigitalVecType _temp