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 
11  SiTrivialDigitalConverter(float in, bool PreMix);
12 
13  DigitalVecType convert(const std::vector<float>&, edm::ESHandle<SiStripGain>& ,unsigned int detid) override;
14  DigitalRawVecType convertRaw(const std::vector<float>&, edm::ESHandle<SiStripGain>& ,unsigned int detid) override;
15 
16  private:
17 
18  int convert(float in){return truncate(in/electronperADC);}
19  int convertRaw(float in){return truncateRaw(in/electronperADC);}
20  int truncate(float in_adc) const;
21  int truncateRaw(float in_adc) const;
22 
23  const float electronperADC;
26  bool PreMixing_;
27 
28 };
29 
30 #endif
std::vector< SiStripDigi > DigitalVecType
int truncateRaw(float in_adc) const
SiTrivialDigitalConverter(float in, bool PreMix)
std::vector< SiStripRawDigi > DigitalRawVecType
int truncate(float in_adc) const
SiDigitalConverter::DigitalRawVecType _tempRaw
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
SiDigitalConverter::DigitalVecType _temp