test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
17  public:
18 
19  SiStripRawDigi( const uint16_t& adc ) : adc_(adc) {;}
20 
21  SiStripRawDigi() : adc_(0) {;}
23 
24  inline const uint16_t& adc() const;
25 
27  inline bool operator< ( const SiStripRawDigi& other ) const;
28 
29  private:
30 
31  uint16_t adc_;
32 
33 };
34 
35 #include<iostream>
36 inline std::ostream & operator<<(std::ostream & o, const SiStripRawDigi& digi) {
37  return o << " " << digi.adc();
38 }
39 
40 // inline methods
41 const uint16_t& SiStripRawDigi::adc() const { return adc_; }
42 bool SiStripRawDigi::operator< ( const SiStripRawDigi& other ) const { return ( this->adc() < other.adc() ); }
43 
44 #endif // DataFormats_SiStripDigi_SiStripRawDigi_H
45 
const uint16_t & adc() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
bool operator<(const SiStripRawDigi &other) const
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
SiStripRawDigi(const uint16_t &adc)