test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
FEDInterface
interface
FED1024.h
Go to the documentation of this file.
1
#ifndef EVF_FEDINTERFACE_FED1024_H
2
#define EVF_FEDINTERFACE_FED1024_H
3
4
5
#include <stddef.h>
6
#include "
EventFilter/FEDInterface/interface/fed_header.h
"
7
#include "
EventFilter/FEDInterface/interface/FEDConstants.h
"
8
9
namespace
evf{
10
namespace
evtn{
11
12
union
sizes
{
13
uint64_t
sizeword
;
14
struct
{
15
const
unsigned
char
headerSize
;
16
const
unsigned
char
summarySize
;
17
const
unsigned
char
L1AhistSize
;
18
const
unsigned
char
BSTSize
;
19
const
unsigned
char
reserved0
;
20
const
unsigned
char
reserved1
;
21
const
unsigned
char
reserved2
;
22
const
unsigned
char
BGOSize
;
23
}
size
;
24
};
25
26
class
TCDSFEDHeader
{
27
public
:
28
29
union
tcdsfedheader
{
30
uint64_t
word
;
31
struct
{
32
uint32_t
sourceid
;
33
uint32_t
eventid
;
34
}
header
;
35
};
36
TCDSFEDHeader
(
const
unsigned
char
*
p
) :
37
fh
((
tcdsfedheader
*)(p))
38
{
39
40
}
41
const
tcdsfedheader
&
getData
(){
return
*
fh
;}
42
private
:
43
tcdsfedheader
*
fh
;
44
};
45
46
class
TCDSHeader
{
47
public
:
48
49
union
tcdsheader
{
50
uint64_t
words
[11];
51
struct
{
52
uint64_t
macAddress
;
53
uint32_t
sw
;
54
uint32_t
fw
;
55
uint32_t
reserved0
;
56
uint32_t
format
;
57
uint32_t
runNumber
;
58
uint32_t
reserved1
;
59
uint32_t
activePartitions2
;
60
uint32_t
reserved2
;
61
uint32_t
activePartitions0
;
62
uint32_t
activePartitions1
;
63
uint32_t
nibble
;
64
uint32_t
lumiSection
;
65
uint16_t
nibblesPerLumiSection
;
66
uint16_t
triggerTypeFlags
;
67
uint16_t
reserved5
;
68
uint16_t
inputs
;
69
uint16_t
bcid
;
70
uint16_t
orbitLow
;
71
uint32_t
orbitHigh
;
72
uint64_t
triggerCount
;
73
uint64_t
eventNumber
;
74
}
header
;
75
};
76
77
TCDSHeader
(
const
unsigned
char
*
p
) :
78
s
((
sizes
*)p),
79
h
((
tcdsheader
*)(p+sizeof(
uint64_t
)))
80
{
81
82
}
83
const
sizes
&
getSizes
(){
return
*
s
;}
84
const
tcdsheader
&
getData
(){
return
*
h
;}
85
private
:
86
sizes
*
s
;
87
tcdsheader
*
h
;
88
};
89
class
TCDSL1AHistory
{
90
public
:
91
struct
l1a
{
92
uint16_t
bxid
;
93
uint16_t
dummy0
;
94
uint16_t
dummy1
;
95
unsigned
char
dummy2
;
96
unsigned
char
ind0
;
97
uint32_t
orbitlow
;
98
uint16_t
orbithigh
;
99
unsigned
char
eventtype
;
100
unsigned
char
ind1
;
101
};
102
union
l1h
{
103
uint64_t
words
[32];
104
l1a
hist
[32];
105
};
106
TCDSL1AHistory
(
const
unsigned
char
*
p
) :
hist
((
l1h
*)p){
107
}
108
const
l1h
&
history
(){
return
*
hist
;}
109
private
:
110
l1h
*
hist
;
111
};
112
113
class
TCDSBST
{
114
public
:
115
struct
bst
{
116
uint32_t
gpstimelow
;
117
uint32_t
gpstimehigh
;
118
uint32_t
low0
;
119
uint32_t
high0
;
120
uint32_t
low1
;
121
uint32_t
high1
;
122
uint32_t
low2
;
123
uint32_t
high2
;
124
uint32_t
low3
;
125
uint32_t
high3
;
126
uint32_t
low4
;
127
uint32_t
high4
;
128
uint32_t
low5
;
129
uint32_t
status
;
130
};
131
TCDSBST
(
const
unsigned
char
*
p
) :
b
((
bst
*)p){
132
}
133
const
bst
&
getBST
(){
return
*
b
;}
134
private
:
135
bst
*
b
;
136
};
137
138
class
TCDSRecord
{
139
public
:
140
TCDSRecord
(
const
unsigned
char
*
p
) :
141
fh
(p),
142
h
(p+sizeof(
fedh_t
)),
143
l1h
(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.headerSize+1)*8),
144
b
(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.headerSize+1)*8+
145
(
h
.getSizes().
size
.L1AhistSize)*8)
146
{
147
148
}
149
TCDSFEDHeader
&
getFEDHeader
(){
return
fh
;}
150
TCDSHeader
&
getHeader
(){
return
h
;}
151
TCDSL1AHistory
&
getHistory
(){
return
l1h
;}
152
TCDSBST
&
getBST
(){
return
b
;}
153
private
:
154
TCDSFEDHeader
fh
;
155
TCDSHeader
h
;
156
TCDSL1AHistory
l1h
;
157
TCDSBST
b
;
158
};
159
160
161
}
162
}
163
#endif
evf::evtn::TCDSHeader::tcdsheader::reserved1
uint32_t reserved1
Definition:
FED1024.h:58
evf::evtn::sizes::reserved2
const unsigned char reserved2
Definition:
FED1024.h:21
evf::evtn::TCDSHeader::getSizes
const sizes & getSizes()
Definition:
FED1024.h:83
evf::evtn::TCDSRecord::fh
TCDSFEDHeader fh
Definition:
FED1024.h:154
evf::evtn::sizes::reserved1
const unsigned char reserved1
Definition:
FED1024.h:20
evf::evtn::TCDSRecord::getBST
TCDSBST & getBST()
Definition:
FED1024.h:152
evf::evtn::sizes::L1AhistSize
const unsigned char L1AhistSize
Definition:
FED1024.h:17
evf::evtn::TCDSBST::bst::high4
uint32_t high4
Definition:
FED1024.h:127
evf::evtn::TCDSBST
Definition:
FED1024.h:113
evf::evtn::TCDSBST::bst::low4
uint32_t low4
Definition:
FED1024.h:126
evf::evtn::TCDSHeader::tcdsheader::orbitLow
uint16_t orbitLow
Definition:
FED1024.h:70
evf::evtn::TCDSBST::b
bst * b
Definition:
FED1024.h:135
evf::evtn::TCDSL1AHistory::l1a::eventtype
unsigned char eventtype
Definition:
FED1024.h:99
fed_header.h
evf::evtn::TCDSRecord::getHeader
TCDSHeader & getHeader()
Definition:
FED1024.h:150
evf::evtn::TCDSHeader::tcdsheader::triggerCount
uint64_t triggerCount
Definition:
FED1024.h:72
evf::evtn::TCDSL1AHistory::TCDSL1AHistory
TCDSL1AHistory(const unsigned char *p)
Definition:
FED1024.h:106
evf::evtn::TCDSL1AHistory::l1a::ind0
unsigned char ind0
Definition:
FED1024.h:96
evf::evtn::TCDSRecord::b
TCDSBST b
Definition:
FED1024.h:157
evf::evtn::TCDSFEDHeader::fh
tcdsfedheader * fh
Definition:
FED1024.h:43
evf::evtn::TCDSHeader::s
sizes * s
Definition:
FED1024.h:86
evf::evtn::TCDSL1AHistory::hist
l1h * hist
Definition:
FED1024.h:110
evf::evtn::sizes::BSTSize
const unsigned char BSTSize
Definition:
FED1024.h:18
evf::evtn::TCDSHeader::tcdsheader::bcid
uint16_t bcid
Definition:
FED1024.h:69
evf::evtn::TCDSFEDHeader
Definition:
FED1024.h:26
evf::evtn::TCDSHeader::TCDSHeader
TCDSHeader(const unsigned char *p)
Definition:
FED1024.h:77
evf::evtn::sizes::BGOSize
const unsigned char BGOSize
Definition:
FED1024.h:22
evf::evtn::TCDSL1AHistory
Definition:
FED1024.h:89
evf::evtn::TCDSFEDHeader::tcdsfedheader::eventid
uint32_t eventid
Definition:
FED1024.h:33
evf::evtn::TCDSHeader::tcdsheader::words
uint64_t words[11]
Definition:
FED1024.h:50
evf::evtn::TCDSFEDHeader::tcdsfedheader
Definition:
FED1024.h:29
evf::evtn::TCDSRecord::l1h
TCDSL1AHistory l1h
Definition:
FED1024.h:156
evf::evtn::TCDSHeader::tcdsheader::fw
uint32_t fw
Definition:
FED1024.h:54
evf::evtn::TCDSL1AHistory::l1a::bxid
uint16_t bxid
Definition:
FED1024.h:92
evf::evtn::TCDSHeader::tcdsheader::inputs
uint16_t inputs
Definition:
FED1024.h:68
evf::evtn::TCDSBST::bst::low5
uint32_t low5
Definition:
FED1024.h:128
evf::evtn::TCDSHeader::tcdsheader::lumiSection
uint32_t lumiSection
Definition:
FED1024.h:64
evf::evtn::TCDSL1AHistory::l1a::dummy1
uint16_t dummy1
Definition:
FED1024.h:94
evf::evtn::TCDSBST::bst::high3
uint32_t high3
Definition:
FED1024.h:125
evf::evtn::TCDSRecord::getFEDHeader
TCDSFEDHeader & getFEDHeader()
Definition:
FED1024.h:149
evf::evtn::TCDSHeader::tcdsheader::nibblesPerLumiSection
uint16_t nibblesPerLumiSection
Definition:
FED1024.h:65
evf::evtn::TCDSBST::bst::gpstimelow
uint32_t gpstimelow
Definition:
FED1024.h:116
evf::evtn::TCDSL1AHistory::l1h::words
uint64_t words[32]
Definition:
FED1024.h:103
evf::evtn::TCDSHeader::tcdsheader::triggerTypeFlags
uint16_t triggerTypeFlags
Definition:
FED1024.h:66
evf::evtn::TCDSBST::bst::gpstimehigh
uint32_t gpstimehigh
Definition:
FED1024.h:117
evf::evtn::TCDSBST::bst::status
uint32_t status
Definition:
FED1024.h:129
evf::evtn::TCDSBST::bst::high1
uint32_t high1
Definition:
FED1024.h:121
evf::evtn::TCDSHeader::getData
const tcdsheader & getData()
Definition:
FED1024.h:84
evf::evtn::TCDSL1AHistory::l1a::orbithigh
uint16_t orbithigh
Definition:
FED1024.h:98
evf::evtn::TCDSL1AHistory::l1a::dummy2
unsigned char dummy2
Definition:
FED1024.h:95
evf::evtn::TCDSBST::bst::low0
uint32_t low0
Definition:
FED1024.h:118
evf::evtn::TCDSBST::bst::low3
uint32_t low3
Definition:
FED1024.h:124
evf::evtn::TCDSRecord
Definition:
FED1024.h:138
evf::evtn::TCDSHeader::tcdsheader::sw
uint32_t sw
Definition:
FED1024.h:53
evf::evtn::TCDSHeader::tcdsheader::eventNumber
uint64_t eventNumber
Definition:
FED1024.h:73
evf::evtn::TCDSHeader::tcdsheader::orbitHigh
uint32_t orbitHigh
Definition:
FED1024.h:71
evf::evtn::TCDSHeader::tcdsheader::macAddress
uint64_t macAddress
Definition:
FED1024.h:52
evf::evtn::TCDSHeader::tcdsheader::activePartitions1
uint32_t activePartitions1
Definition:
FED1024.h:62
evf::evtn::TCDSFEDHeader::TCDSFEDHeader
TCDSFEDHeader(const unsigned char *p)
Definition:
FED1024.h:36
evf::evtn::TCDSHeader
Definition:
FED1024.h:46
evf::evtn::TCDSRecord::TCDSRecord
TCDSRecord(const unsigned char *p)
Definition:
FED1024.h:140
evf::evtn::TCDSFEDHeader::tcdsfedheader::sourceid
uint32_t sourceid
Definition:
FED1024.h:32
evf::evtn::TCDSL1AHistory::history
const l1h & history()
Definition:
FED1024.h:108
evf::evtn::TCDSL1AHistory::l1a
Definition:
FED1024.h:91
evf::evtn::TCDSBST::bst::low1
uint32_t low1
Definition:
FED1024.h:120
evf::evtn::TCDSHeader::tcdsheader::activePartitions0
uint32_t activePartitions0
Definition:
FED1024.h:61
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
evf::evtn::TCDSL1AHistory::l1a::dummy0
uint16_t dummy0
Definition:
FED1024.h:93
evf::evtn::sizes
Definition:
FED1024.h:12
evf::evtn::TCDSHeader::tcdsheader::format
uint32_t format
Definition:
FED1024.h:56
fedh_struct
Definition:
fed_header.h:31
evf::evtn::TCDSHeader::tcdsheader::reserved2
uint32_t reserved2
Definition:
FED1024.h:60
evf::evtn::TCDSL1AHistory::l1a::ind1
unsigned char ind1
Definition:
FED1024.h:100
evf::evtn::TCDSHeader::tcdsheader::activePartitions2
uint32_t activePartitions2
Definition:
FED1024.h:59
evf::evtn::TCDSFEDHeader::getData
const tcdsfedheader & getData()
Definition:
FED1024.h:41
evf::evtn::TCDSL1AHistory::l1h::hist
l1a hist[32]
Definition:
FED1024.h:104
evf::evtn::TCDSRecord::h
TCDSHeader h
Definition:
FED1024.h:155
evf::evtn::TCDSBST::getBST
const bst & getBST()
Definition:
FED1024.h:133
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
evf::evtn::TCDSBST::bst::high2
uint32_t high2
Definition:
FED1024.h:123
evf::evtn::TCDSRecord::getHistory
TCDSL1AHistory & getHistory()
Definition:
FED1024.h:151
evf::evtn::TCDSL1AHistory::l1h
Definition:
FED1024.h:102
evf::evtn::sizes::headerSize
const unsigned char headerSize
Definition:
FED1024.h:15
FEDConstants.h
evf::evtn::TCDSBST::bst::low2
uint32_t low2
Definition:
FED1024.h:122
evf::evtn::sizes::summarySize
const unsigned char summarySize
Definition:
FED1024.h:16
evf::evtn::TCDSHeader::tcdsheader::runNumber
uint32_t runNumber
Definition:
FED1024.h:57
evf::evtn::sizes::sizeword
uint64_t sizeword
Definition:
FED1024.h:13
evf::evtn::sizes::reserved0
const unsigned char reserved0
Definition:
FED1024.h:19
evf::evtn::TCDSHeader::tcdsheader::nibble
uint32_t nibble
Definition:
FED1024.h:63
evf::evtn::TCDSBST::bst::high0
uint32_t high0
Definition:
FED1024.h:119
evf::evtn::TCDSHeader::tcdsheader
Definition:
FED1024.h:49
evf::evtn::TCDSHeader::tcdsheader::header
struct evf::evtn::TCDSHeader::tcdsheader::@323 header
evf::evtn::TCDSL1AHistory::l1a::orbitlow
uint32_t orbitlow
Definition:
FED1024.h:97
evf::evtn::TCDSBST::TCDSBST
TCDSBST(const unsigned char *p)
Definition:
FED1024.h:131
evf::evtn::TCDSBST::bst
Definition:
FED1024.h:115
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
evf::evtn::TCDSHeader::tcdsheader::reserved0
uint32_t reserved0
Definition:
FED1024.h:55
evf::evtn::TCDSHeader::tcdsheader::reserved5
uint16_t reserved5
Definition:
FED1024.h:67
evf::evtn::TCDSHeader::h
tcdsheader * h
Definition:
FED1024.h:87
evf::evtn::TCDSFEDHeader::tcdsfedheader::word
uint64_t word
Definition:
FED1024.h:30
evf::evtn::sizes::size
struct evf::evtn::sizes::@321 size
evf::evtn::TCDSFEDHeader::tcdsfedheader::header
struct evf::evtn::TCDSFEDHeader::tcdsfedheader::@322 header
Generated for CMSSW Reference Manual by
1.8.5