DataFormats
EcalDigi
src
EcalMGPASample.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDigi/interface/EcalMGPASample.h
"
2
#include <iostream>
3
4
EcalMGPASample::EcalMGPASample
(
int
adc
,
int
gainId
) {
theSample
= (
adc
& 0xFFF) | ((
gainId
& 0x3) << 12); }
5
6
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalMGPASample
& samp) {
7
s
<<
"ADC="
<< samp.
adc
() <<
", gainId="
<< samp.
gainId
();
8
return
s
;
9
}
EcalMGPASample::EcalMGPASample
EcalMGPASample()
Definition:
EcalMGPASample.h:24
ecalLiteDTU::gainId
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
Definition:
EcalLiteDTUSample.h:14
EcalMGPASample::theSample
uint16_t theSample
Definition:
EcalMGPASample.h:39
operator<<
std::ostream & operator<<(std::ostream &s, const EcalMGPASample &samp)
Definition:
EcalMGPASample.cc:6
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition:
gpuClusterChargeCut.h:20
EcalMGPASample::gainId
int gainId() const
get the gainId (2 bits)
Definition:
EcalMGPASample.h:33
EcalMGPASample::adc
int adc() const
get the ADC sample (12 bits)
Definition:
EcalMGPASample.h:31
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalMGPASample.h
EcalMGPASample
Definition:
EcalMGPASample.h:22
Generated for CMSSW Reference Manual by
1.8.16