CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
int truncate(float in_adc) const
SiDigitalConverter::DigitalRawVecType _tempRaw
SiDigitalConverter::DigitalVecType _temp