CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiStripRawDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiStripDigi_SiStripRawDigi_H
2 #define DataFormats_SiStripDigi_SiStripRawDigi_H
3 
5 
16 public:
17  explicit SiStripRawDigi(uint16_t adc) : adc_(adc) {}
18 
19  SiStripRawDigi() : adc_(0) {}
20  ~SiStripRawDigi() = default;
21 
22  inline uint16_t adc() const { return adc_; }
23 
25  inline bool operator<(const SiStripRawDigi& other) const;
26 
27 private:
28  uint16_t adc_;
29 };
30 
31 #include <iostream>
32 inline std::ostream& operator<<(std::ostream& o, const SiStripRawDigi& digi) { return o << " " << digi.adc(); }
33 
34 // inline methods
35 bool SiStripRawDigi::operator<(const SiStripRawDigi& other) const { return (adc() < other.adc()); }
36 
37 #endif // DataFormats_SiStripDigi_SiStripRawDigi_H
~SiStripRawDigi()=default
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
bool operator<(const SiStripRawDigi &other) const
uint16_t adc() const
SiStripRawDigi(uint16_t adc)
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...