Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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