CMS 3D CMS Logo

SiStripDigi.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiStripDigi_SiStripDigi_H
2 #define DataFormats_SiStripDigi_SiStripDigi_H
3 
4 #include <iosfwd>
5 #include <cstdint>
6 
12 class SiStripDigi {
13 public:
14  SiStripDigi(const uint16_t& strip, const uint16_t& adc) : strip_(strip), adc_(adc) { ; }
15 
16  SiStripDigi() : strip_(0), adc_(0) { ; }
17  ~SiStripDigi() = default;
18 
19  inline const uint16_t& strip() const;
20  inline const uint16_t& adc() const;
21  inline const uint16_t& channel() const;
22 
23  inline bool operator<(const SiStripDigi& other) const;
24 
25 private:
26  uint16_t strip_;
27  uint16_t adc_;
28 };
29 
30 std::ostream& operator<<(std::ostream& o, const SiStripDigi& digi);
31 
32 // inline methods
33 const uint16_t& SiStripDigi::strip() const { return strip_; }
34 const uint16_t& SiStripDigi::adc() const { return adc_; }
35 const uint16_t& SiStripDigi::channel() const { return strip(); }
36 bool SiStripDigi::operator<(const SiStripDigi& other) const { return strip() < other.strip(); }
37 
38 #endif // DataFormats_SiStripDigi_SiStripDigi_H
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
SiStripDigi::adc
const uint16_t & adc() const
Definition: SiStripDigi.h:34
trackingPlots.other
other
Definition: trackingPlots.py:1460
SiStripDigi::SiStripDigi
SiStripDigi()
Definition: SiStripDigi.h:16
SiStripDigi::channel
const uint16_t & channel() const
Definition: SiStripDigi.h:35
SiStripDigi::strip
const uint16_t & strip() const
Definition: SiStripDigi.h:33
SiStripDigi::SiStripDigi
SiStripDigi(const uint16_t &strip, const uint16_t &adc)
Definition: SiStripDigi.h:14
SiStripDigi::strip_
uint16_t strip_
Definition: SiStripDigi.h:26
SiStripDigi::adc_
uint16_t adc_
Definition: SiStripDigi.h:27
SiStripDigi::operator<
bool operator<(const SiStripDigi &other) const
Definition: SiStripDigi.h:36
SiStripDigi
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
SiStripDigi::~SiStripDigi
~SiStripDigi()=default
operator<<
std::ostream & operator<<(std::ostream &o, const SiStripDigi &digi)
Definition: SiStripDigi.cc:3