00001 #ifndef Tracker_SiTrivialDigitalConverter_H 00002 #define Tracker_SiTrivialDigitalConverter_H 00003 00004 #include "SimTracker/SiStripDigitizer/interface/SiDigitalConverter.h" 00008 class SiTrivialDigitalConverter: public SiDigitalConverter{ 00009 public: 00010 00011 SiTrivialDigitalConverter(float in); 00012 00013 DigitalVecType convert(const std::vector<double>&, edm::ESHandle<SiStripGain>& ,unsigned int detid); 00014 DigitalRawVecType convertRaw(const std::vector<double>&, edm::ESHandle<SiStripGain>& ,unsigned int detid); 00015 00016 private: 00017 00018 int convert(float in){return truncate(in/electronperADC);} 00019 int convertRaw(float in){return truncateRaw(in/electronperADC);} 00020 int truncate(float in_adc); 00021 int truncateRaw(float in_adc); 00022 00023 float electronperADC; 00024 SiDigitalConverter::DigitalVecType _temp; 00025 SiDigitalConverter::DigitalRawVecType _tempRaw; 00026 00027 }; 00028 00029 #endif