TBDataFormats
EcalTBObjects
interface
EcalTBTDCSample.h
Go to the documentation of this file.
1
#ifndef DIGIECAL_ECALTBTDCSAMPLE_H
2
#define DIGIECAL_ECALTBTDCSAMPLE_H 1
3
4
#include <ostream>
5
#include <cstdint>
6
14
class
EcalTBTDCSample
{
15
public
:
16
EcalTBTDCSample
() {
theSample
= 0; }
17
EcalTBTDCSample
(uint32_t
data
) {
theSample
=
data
; }
18
EcalTBTDCSample
(
unsigned
int
tdcChan,
unsigned
int
tdcVal);
19
21
uint32_t
raw
()
const
{
return
theSample
; }
23
unsigned
int
tdcValue
()
const
{
return
theSample
& 0xFFFFFF; }
25
unsigned
int
tdcChannel
()
const
{
return
(
theSample
>> 24) & 0xFF; }
27
uint32_t
operator()
() {
return
theSample
; }
28
29
private
:
30
uint32_t
theSample
;
31
};
32
33
std::ostream&
operator<<
(std::ostream&,
const
EcalTBTDCSample
&);
34
35
#endif
operator<<
std::ostream & operator<<(std::ostream &, const EcalTBTDCSample &)
Definition:
EcalTBTDCSample.cc:7
EcalTBTDCSample::operator()
uint32_t operator()()
for streaming
Definition:
EcalTBTDCSample.h:27
EcalTBTDCSample::tdcValue
unsigned int tdcValue() const
get the ADC sample (24 bits)
Definition:
EcalTBTDCSample.h:23
EcalTBTDCSample
Definition:
EcalTBTDCSample.h:14
EcalTBTDCSample::EcalTBTDCSample
EcalTBTDCSample(uint32_t data)
Definition:
EcalTBTDCSample.h:17
EcalTBTDCSample::tdcChannel
unsigned int tdcChannel() const
get the gainId (8 bits)
Definition:
EcalTBTDCSample.h:25
EcalTBTDCSample::raw
uint32_t raw() const
get the raw word
Definition:
EcalTBTDCSample.h:21
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
EcalTBTDCSample::theSample
uint32_t theSample
Definition:
EcalTBTDCSample.h:30
EcalTBTDCSample::EcalTBTDCSample
EcalTBTDCSample()
Definition:
EcalTBTDCSample.h:16
Generated for CMSSW Reference Manual by
1.8.16