src
DataFormats
SiStripDigi
interface
SiStripRawDigi.h
Go to the documentation of this file.
1
#ifndef DataFormats_SiStripDigi_SiStripRawDigi_H
2
#define DataFormats_SiStripDigi_SiStripRawDigi_H
3
4
#include <cstdint>
5
#include "
DataFormats/Common/interface/traits.h
"
6
16
class
SiStripRawDigi
:
public
edm::DoNotSortUponInsertion
{
17
public
:
18
explicit
SiStripRawDigi
(uint16_t
adc
) :
adc_
(
adc
) {}
19
20
SiStripRawDigi
() :
adc_
(0) {}
21
~SiStripRawDigi
() =
default
;
22
23
inline
uint16_t
adc
()
const
{
return
adc_
; }
24
26
inline
bool
operator<
(
const
SiStripRawDigi
&
other
)
const
;
27
28
private
:
29
uint16_t
adc_
;
30
};
31
32
#include <iostream>
33
inline
std::ostream&
operator<<
(std::ostream&
o
,
const
SiStripRawDigi
& digi) {
return
o
<<
" "
<< digi.
adc
(); }
34
35
// inline methods
36
bool
SiStripRawDigi::operator<
(
const
SiStripRawDigi
&
other
)
const
{
return
(
adc
() <
other
.adc()); }
37
38
#endif // DataFormats_SiStripDigi_SiStripRawDigi_H
operator<<
std::ostream & operator<<(std::ostream &o, const SiStripRawDigi &digi)
Definition:
SiStripRawDigi.h:33
SiStripRawDigi::~SiStripRawDigi
~SiStripRawDigi()=default
edm::DoNotSortUponInsertion
Definition:
traits.h:81
SiStripRawDigi::adc
uint16_t adc() const
Definition:
SiStripRawDigi.h:23
traits.h
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
SiStripRawDigi::SiStripRawDigi
SiStripRawDigi()
Definition:
SiStripRawDigi.h:20
trackingPlots.other
other
Definition:
trackingPlots.py:1467
SiStripRawDigi::SiStripRawDigi
SiStripRawDigi(uint16_t adc)
Definition:
SiStripRawDigi.h:18
SiStripRawDigi::operator<
bool operator<(const SiStripRawDigi &other) const
Definition:
SiStripRawDigi.h:36
SiStripRawDigi::adc_
uint16_t adc_
Definition:
SiStripRawDigi.h:29
SiStripRawDigi
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
Definition:
SiStripRawDigi.h:16
Generated for CMSSW Reference Manual by
1.8.14