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
EventFilter
CSCRawToDigi
interface
CSCDCCTrailer.h
Go to the documentation of this file.
1
// Authors Rick W and Alex T 9/24/94
2
//
3
#ifndef EventFilter_CSCRawToDigi_CSCDCCTrailer_h
4
#define EventFilter_CSCRawToDigi_CSCDCCTrailer_h
5
6
#include <iostream>
7
#include <cstdint>
8
#include <cstring>
// bzero
9
#include "
DataFormats/CSCDigi/interface/CSCDCCStatusDigi.h
"
10
14
struct
CSCDCCTrailer
{
15
CSCDCCTrailer
() {
16
bzero(
this
,
sizeInWords
() * 2);
17
dcc_trail1
= 0xEF;
18
EOE_1
= 0XA;
19
XXXX_1
= 0X0;
//@@ Actually a reserved bit. We should not test on it.
20
}
21
22
CSCDCCTrailer
(
const
CSCDCCStatusDigi
& digi) { memcpy(
this
, digi.
trailer
(),
sizeInWords
() * 2); }
23
24
void
setFromBuffer
(uint16_t
const
*
buf
) { memcpy(
this
,
buf
,
sizeInWords
() * 2); }
25
28
unsigned
fifo_status
: 8;
29
unsigned
ddu_data_status2
: 24;
30
unsigned
ddu_data_status1
: 16;
31
unsigned
readout_time
: 8;
32
unsigned
dcc_trail1
: 8;
33
36
unsigned
dollardollar
: 1;
37
unsigned
Tx
: 3;
38
unsigned
TTS
: 4;
39
unsigned
Evt_stat
: 4;
40
unsigned
XXXX_2
: 4;
41
unsigned
CRC
: 16;
42
unsigned
Evt_lgth
: 24;
43
unsigned
XXXX_1
: 4;
44
unsigned
EOE_1
: 4;
45
46
static
unsigned
sizeInWords
() {
return
8; }
47
//@@ The XXXX_1 is a reserved bit in CMS format - we really should not be testing it
48
bool
check
()
const
{
return
(
dcc_trail1
== 0xEF) && (
EOE_1
== 0XA) && (
XXXX_1
== 0
X0
); }
49
unsigned
short
*
data
() {
return
(
unsigned
short
*)
this
; }
50
};
51
#endif
CSCDCCTrailer::ddu_data_status1
unsigned ddu_data_status1
Definition:
CSCDCCTrailer.h:30
CSCDCCTrailer::ddu_data_status2
unsigned ddu_data_status2
Definition:
CSCDCCTrailer.h:29
CSCDCCTrailer::sizeInWords
static unsigned sizeInWords()
Definition:
CSCDCCTrailer.h:46
CSCDCCTrailer::Evt_stat
unsigned Evt_stat
Definition:
CSCDCCTrailer.h:39
CSCDCCTrailer::fifo_status
unsigned fifo_status
Definition:
CSCDCCTrailer.h:28
CSCDCCTrailer::Evt_lgth
unsigned Evt_lgth
Definition:
CSCDCCTrailer.h:42
CSCDCCTrailer::XXXX_1
unsigned XXXX_1
Definition:
CSCDCCTrailer.h:43
CSCDCCTrailer
Definition:
CSCDCCTrailer.h:14
CSCDCCTrailer::setFromBuffer
void setFromBuffer(uint16_t const *buf)
Definition:
CSCDCCTrailer.h:24
CSCDCCTrailer::CRC
unsigned CRC
Definition:
CSCDCCTrailer.h:41
CSCDCCStatusDigi.h
CSCDCCTrailer::TTS
unsigned TTS
Definition:
CSCDCCTrailer.h:38
CSCDCCTrailer::Tx
unsigned Tx
Definition:
CSCDCCTrailer.h:37
CSCDCCTrailer::CSCDCCTrailer
CSCDCCTrailer(const CSCDCCStatusDigi &digi)
Definition:
CSCDCCTrailer.h:22
CSCDCCTrailer::EOE_1
unsigned EOE_1
Definition:
CSCDCCTrailer.h:44
CSCDCCTrailer::data
unsigned short * data()
Definition:
CSCDCCTrailer.h:49
CSCDCCStatusDigi
Definition:
CSCDCCStatusDigi.h:15
CSCDCCTrailer::readout_time
unsigned readout_time
Definition:
CSCDCCTrailer.h:31
CSCDCCTrailer::dcc_trail1
unsigned dcc_trail1
Definition:
CSCDCCTrailer.h:32
CSCDCCStatusDigi::trailer
const uint16_t * trailer() const
Definition:
CSCDCCStatusDigi.h:26
MonitorAlCaEcalPi0_cfi.X0
X0
Definition:
MonitorAlCaEcalPi0_cfi.py:77
CSCDCCTrailer::check
bool check() const
Definition:
CSCDCCTrailer.h:48
visDQMUpload.buf
buf
Definition:
visDQMUpload.py:154
CSCDCCTrailer::dollardollar
unsigned dollardollar
Definition:
CSCDCCTrailer.h:36
CSCDCCTrailer::CSCDCCTrailer
CSCDCCTrailer()
Definition:
CSCDCCTrailer.h:15
CSCDCCTrailer::XXXX_2
unsigned XXXX_2
Definition:
CSCDCCTrailer.h:40
Generated for CMSSW Reference Manual by
1.8.16