TBDataFormats
EcalTBObjects
src
EcalTBTDCSample.cc
Go to the documentation of this file.
1
#include "
TBDataFormats/EcalTBObjects/interface/EcalTBTDCSample.h
"
2
3
EcalTBTDCSample::EcalTBTDCSample
(
unsigned
int
tdcChan,
unsigned
int
tdcVal) {
4
theSample
= (tdcVal & 0xFFFFFF) | ((tdcChan & 0xFF) << 24);
5
}
6
7
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalTBTDCSample
& samp) {
8
s
<<
"TDC Channel="
<< samp.
tdcChannel
() <<
", Value="
<< samp.
tdcValue
();
9
return
s
;
10
}
operator<<
std::ostream & operator<<(std::ostream &s, const EcalTBTDCSample &samp)
Definition:
EcalTBTDCSample.cc:7
EcalTBTDCSample::tdcValue
unsigned int tdcValue() const
get the ADC sample (24 bits)
Definition:
EcalTBTDCSample.h:23
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EcalTBTDCSample::EcalTBTDCSample
EcalTBTDCSample()
Definition:
EcalTBTDCSample.h:16
EcalTBTDCSample::tdcChannel
unsigned int tdcChannel() const
get the gainId (8 bits)
Definition:
EcalTBTDCSample.h:25
EcalTBTDCSample::theSample
uint32_t theSample
Definition:
EcalTBTDCSample.h:30
EcalTBTDCSample
Definition:
EcalTBTDCSample.h:14
EcalTBTDCSample.h
Generated for CMSSW Reference Manual by
1.8.14