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>&, edm::ESHandle<SiStripGain>&, unsigned int detid) override;
13  DigitalRawVecType convertRaw(const std::vector<float>&, edm::ESHandle<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
SiTrivialDigitalConverter::SiTrivialDigitalConverter
SiTrivialDigitalConverter(float in, bool PreMix)
Definition: SiTrivialDigitalConverter.cc:5
SiTrivialDigitalConverter::electronperADC
const float electronperADC
Definition: SiTrivialDigitalConverter.h:21
SiTrivialDigitalConverter::convertRaw
DigitalRawVecType convertRaw(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid) override
Definition: SiTrivialDigitalConverter.cc:48
SiDigitalConverter.h
SiTrivialDigitalConverter::_temp
SiDigitalConverter::DigitalVecType _temp
Definition: SiTrivialDigitalConverter.h:22
edm::ESHandle< SiStripGain >
SiTrivialDigitalConverter::convertRaw
int convertRaw(float in)
Definition: SiTrivialDigitalConverter.h:17
SiDigitalConverter::DigitalVecType
std::vector< SiStripDigi > DigitalVecType
Definition: SiDigitalConverter.h:14
SiTrivialDigitalConverter::convert
int convert(float in)
Definition: SiTrivialDigitalConverter.h:16
SiDigitalConverter
Definition: SiDigitalConverter.h:12
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SiTrivialDigitalConverter::truncateRaw
int truncateRaw(float in_adc) const
Definition: SiTrivialDigitalConverter.cc:102
SiTrivialDigitalConverter::convert
DigitalVecType convert(const std::vector< float > &, edm::ESHandle< SiStripGain > &, unsigned int detid) override
Definition: SiTrivialDigitalConverter.cc:10
SiTrivialDigitalConverter::truncate
int truncate(float in_adc) const
Definition: SiTrivialDigitalConverter.cc:78
SiTrivialDigitalConverter
Definition: SiTrivialDigitalConverter.h:8
SiTrivialDigitalConverter::PreMixing_
bool PreMixing_
Definition: SiTrivialDigitalConverter.h:24
SiDigitalConverter::DigitalRawVecType
std::vector< SiStripRawDigi > DigitalRawVecType
Definition: SiDigitalConverter.h:15
SiTrivialDigitalConverter::_tempRaw
SiDigitalConverter::DigitalRawVecType _tempRaw
Definition: SiTrivialDigitalConverter.h:23