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 const& convert(const std::vector<float>&, const SiStripGain*, unsigned int detid) override;
13  DigitalRawVecType const& convertRaw(const std::vector<float>&, const SiStripGain*, unsigned int detid) override;
14 
15 private:
16  int convert(float in) const { return truncate(in * ADCperElectron); }
17  int convertRaw(float in) const { return truncateRaw(in * ADCperElectron); }
18  int truncate(float in_adc) const;
19  int truncateRaw(float in_adc) const;
20 
21  const float ADCperElectron;
24  bool PreMixing_;
25 };
26 
27 #endif
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
SiDigitalConverter::DigitalRawVecType _tempRaw
int truncate(float in_adc) const
DigitalVecType const & convert(const std::vector< float > &, const SiStripGain *, unsigned int detid) override
SiDigitalConverter::DigitalVecType _temp