Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
TCDSHeader
{
27
public
:
28
29
union
tcdsheader
{
30
uint64_t
words
[11];
31
struct
{
32
uint64_t
macAddress
;
33
uint32_t
sw
;
34
uint32_t
fw
;
35
uint32_t
reserved0
;
36
uint32_t
format
;
37
uint32_t
runNumber
;
38
uint32_t
reserved1
;
39
uint32_t
activePartitions2
;
40
uint32_t
reserved2
;
41
uint32_t
activePartitions0
;
42
uint32_t
activePartitions1
;
43
uint32_t
nibble
;
44
uint32_t
lumiSection
;
45
uint16_t
reserved3
;
46
uint16_t
reserved4
;
47
uint16_t
reserved5
;
48
uint16_t
inputs
;
49
uint16_t
bcid
;
50
uint16_t
orbitLow
;
51
uint32_t
orbitHigh
;
52
uint64_t
triggerCount
;
53
uint64_t
eventNumber
;
54
}
header
;
55
};
56
57
TCDSHeader
(
const
unsigned
char
*
p
) :
58
s
((
sizes
*)p),
59
h
((
tcdsheader
*)(p+sizeof(
uint64_t
)))
60
{
61
62
}
63
const
sizes
&
getSizes
(){
return
*
s
;}
64
const
tcdsheader
&
getData
(){
return
*
h
;}
65
private
:
66
sizes
*
s
;
67
tcdsheader
*
h
;
68
};
69
class
TCDSL1AHistory
{
70
public
:
71
struct
l1a
{
72
uint16_t
bxid
;
73
uint16_t
dummy0
;
74
uint16_t
dummy1
;
75
unsigned
char
ind0
;
76
uint32_t
orbitlow
;
77
uint16_t
orbithigh
;
78
unsigned
char
eventtype
;
79
unsigned
char
ind1
;
80
};
81
union
l1h
{
82
uint64_t
words
[32];
83
l1a
hist
[32];
84
};
85
TCDSL1AHistory
(
const
unsigned
char
*
p
) :
hist
((
l1h
*)p){
86
}
87
const
l1h
&
history
(){
return
*
hist
;}
88
private
:
89
l1h
*
hist
;
90
};
91
92
class
TCDSBST
{
93
public
:
94
struct
bst
{
95
uint32_t
gpstimelow
;
96
uint32_t
gpstimehigh
;
97
uint32_t
low0
;
98
uint32_t
high0
;
99
uint32_t
low1
;
100
uint32_t
high1
;
101
uint32_t
low2
;
102
uint32_t
high2
;
103
uint32_t
low3
;
104
uint32_t
high3
;
105
uint32_t
low4
;
106
uint32_t
high4
;
107
uint32_t
low5
;
108
uint32_t
status
;
109
};
110
TCDSBST
(
const
unsigned
char
*
p
) :
b
((
bst
*)p){
111
}
112
const
bst
&
getBST
(){
return
*
b
;}
113
private
:
114
bst
*
b
;
115
};
116
117
class
TCDSRecord
{
118
public
:
119
TCDSRecord
(
const
unsigned
char
*
p
) :
120
h
(p+sizeof(
fedh_t
)),
121
l1h
(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.headerSize+1)*8),
122
b
(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.headerSize+1)*8+
123
(
h
.getSizes().
size
.L1AhistSize)*8)
124
{
125
126
}
127
TCDSHeader
&
getHeader
(){
return
h
;}
128
TCDSL1AHistory
&
getHistory
(){
return
l1h
;}
129
TCDSBST
&
getBST
(){
return
b
;}
130
private
:
131
TCDSHeader
h
;
132
TCDSL1AHistory
l1h
;
133
TCDSBST
b
;
134
};
135
136
137
}
138
}
139
#endif
evf::evtn::TCDSHeader::tcdsheader::reserved1
uint32_t reserved1
Definition:
FED1024.h:38
evf::evtn::sizes::reserved2
const unsigned char reserved2
Definition:
FED1024.h:21
evf::evtn::TCDSHeader::getSizes
const sizes & getSizes()
Definition:
FED1024.h:63
evf::evtn::sizes::reserved1
const unsigned char reserved1
Definition:
FED1024.h:20
evf::evtn::TCDSRecord::getBST
TCDSBST & getBST()
Definition:
FED1024.h:129
evf::evtn::sizes::L1AhistSize
const unsigned char L1AhistSize
Definition:
FED1024.h:17
evf::evtn::TCDSBST::bst::high4
uint32_t high4
Definition:
FED1024.h:106
evf::evtn::TCDSBST
Definition:
FED1024.h:92
evf::evtn::TCDSBST::bst::low4
uint32_t low4
Definition:
FED1024.h:105
evf::evtn::TCDSHeader::tcdsheader::orbitLow
uint16_t orbitLow
Definition:
FED1024.h:50
evf::evtn::TCDSBST::b
bst * b
Definition:
FED1024.h:114
evf::evtn::TCDSL1AHistory::l1a::eventtype
unsigned char eventtype
Definition:
FED1024.h:78
fed_header.h
evf::evtn::TCDSRecord::getHeader
TCDSHeader & getHeader()
Definition:
FED1024.h:127
evf::evtn::TCDSHeader::tcdsheader::triggerCount
uint64_t triggerCount
Definition:
FED1024.h:52
evf::evtn::TCDSL1AHistory::TCDSL1AHistory
TCDSL1AHistory(const unsigned char *p)
Definition:
FED1024.h:85
evf::evtn::TCDSL1AHistory::l1a::ind0
unsigned char ind0
Definition:
FED1024.h:75
evf::evtn::TCDSRecord::b
TCDSBST b
Definition:
FED1024.h:133
evf::evtn::TCDSHeader::s
sizes * s
Definition:
FED1024.h:66
evf::evtn::TCDSL1AHistory::hist
l1h * hist
Definition:
FED1024.h:89
evf::evtn::sizes::BSTSize
const unsigned char BSTSize
Definition:
FED1024.h:18
evf::evtn::TCDSHeader::tcdsheader::bcid
uint16_t bcid
Definition:
FED1024.h:49
evf::evtn::TCDSHeader::TCDSHeader
TCDSHeader(const unsigned char *p)
Definition:
FED1024.h:57
evf::evtn::sizes::BGOSize
const unsigned char BGOSize
Definition:
FED1024.h:22
evf::evtn::TCDSL1AHistory
Definition:
FED1024.h:69
evf::evtn::TCDSHeader::tcdsheader::words
uint64_t words[11]
Definition:
FED1024.h:30
evf::evtn::TCDSRecord::l1h
TCDSL1AHistory l1h
Definition:
FED1024.h:132
evf::evtn::sizes::size
struct evf::evtn::sizes::@295 size
evf::evtn::TCDSHeader::tcdsheader::fw
uint32_t fw
Definition:
FED1024.h:34
evf::evtn::TCDSL1AHistory::l1a::bxid
uint16_t bxid
Definition:
FED1024.h:72
evf::evtn::TCDSHeader::tcdsheader::inputs
uint16_t inputs
Definition:
FED1024.h:48
evf::evtn::TCDSBST::bst::low5
uint32_t low5
Definition:
FED1024.h:107
evf::evtn::TCDSHeader::tcdsheader::lumiSection
uint32_t lumiSection
Definition:
FED1024.h:44
evf::evtn::TCDSL1AHistory::l1a::dummy1
uint16_t dummy1
Definition:
FED1024.h:74
evf::evtn::TCDSBST::bst::high3
uint32_t high3
Definition:
FED1024.h:104
evf::evtn::TCDSBST::bst::gpstimelow
uint32_t gpstimelow
Definition:
FED1024.h:95
evf::evtn::TCDSL1AHistory::l1h::words
uint64_t words[32]
Definition:
FED1024.h:82
evf::evtn::TCDSBST::bst::gpstimehigh
uint32_t gpstimehigh
Definition:
FED1024.h:96
evf::evtn::TCDSHeader::tcdsheader::reserved4
uint16_t reserved4
Definition:
FED1024.h:46
evf::evtn::TCDSBST::bst::status
uint32_t status
Definition:
FED1024.h:108
evf::evtn::TCDSBST::bst::high1
uint32_t high1
Definition:
FED1024.h:100
evf::evtn::TCDSHeader::getData
const tcdsheader & getData()
Definition:
FED1024.h:64
evf::evtn::TCDSL1AHistory::l1a::orbithigh
uint16_t orbithigh
Definition:
FED1024.h:77
evf::evtn::TCDSBST::bst::low0
uint32_t low0
Definition:
FED1024.h:97
evf::evtn::TCDSBST::bst::low3
uint32_t low3
Definition:
FED1024.h:103
evf::evtn::TCDSRecord
Definition:
FED1024.h:117
evf::evtn::TCDSHeader::tcdsheader::reserved3
uint16_t reserved3
Definition:
FED1024.h:45
evf::evtn::TCDSHeader::tcdsheader::sw
uint32_t sw
Definition:
FED1024.h:33
evf::evtn::TCDSHeader::tcdsheader::eventNumber
uint64_t eventNumber
Definition:
FED1024.h:53
evf::evtn::TCDSHeader::tcdsheader::orbitHigh
uint32_t orbitHigh
Definition:
FED1024.h:51
evf::evtn::TCDSHeader::tcdsheader::macAddress
uint64_t macAddress
Definition:
FED1024.h:32
evf::evtn::TCDSHeader::tcdsheader::activePartitions1
uint32_t activePartitions1
Definition:
FED1024.h:42
evf::evtn::TCDSHeader
Definition:
FED1024.h:26
evf::evtn::TCDSRecord::TCDSRecord
TCDSRecord(const unsigned char *p)
Definition:
FED1024.h:119
evf::evtn::TCDSL1AHistory::history
const l1h & history()
Definition:
FED1024.h:87
evf::evtn::TCDSL1AHistory::l1a
Definition:
FED1024.h:71
evf::evtn::TCDSBST::bst::low1
uint32_t low1
Definition:
FED1024.h:99
evf::evtn::TCDSHeader::tcdsheader::activePartitions0
uint32_t activePartitions0
Definition:
FED1024.h:41
evf::evtn::TCDSHeader::tcdsheader::header
struct evf::evtn::TCDSHeader::tcdsheader::@296 header
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
evf::evtn::TCDSL1AHistory::l1a::dummy0
uint16_t dummy0
Definition:
FED1024.h:73
evf::evtn::sizes
Definition:
FED1024.h:12
evf::evtn::TCDSHeader::tcdsheader::format
uint32_t format
Definition:
FED1024.h:36
fedh_struct
Definition:
fed_header.h:31
evf::evtn::TCDSHeader::tcdsheader::reserved2
uint32_t reserved2
Definition:
FED1024.h:40
evf::evtn::TCDSL1AHistory::l1a::ind1
unsigned char ind1
Definition:
FED1024.h:79
evf::evtn::TCDSHeader::tcdsheader::activePartitions2
uint32_t activePartitions2
Definition:
FED1024.h:39
evf::evtn::TCDSL1AHistory::l1h::hist
l1a hist[32]
Definition:
FED1024.h:83
evf::evtn::TCDSRecord::h
TCDSHeader h
Definition:
FED1024.h:131
evf::evtn::TCDSBST::getBST
const bst & getBST()
Definition:
FED1024.h:112
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
evf::evtn::TCDSBST::bst::high2
uint32_t high2
Definition:
FED1024.h:102
evf::evtn::TCDSRecord::getHistory
TCDSL1AHistory & getHistory()
Definition:
FED1024.h:128
evf::evtn::TCDSL1AHistory::l1h
Definition:
FED1024.h:81
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:101
evf::evtn::sizes::summarySize
const unsigned char summarySize
Definition:
FED1024.h:16
evf::evtn::TCDSHeader::tcdsheader::runNumber
uint32_t runNumber
Definition:
FED1024.h:37
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:43
evf::evtn::TCDSBST::bst::high0
uint32_t high0
Definition:
FED1024.h:98
evf::evtn::TCDSHeader::tcdsheader
Definition:
FED1024.h:29
evf::evtn::TCDSL1AHistory::l1a::orbitlow
uint32_t orbitlow
Definition:
FED1024.h:76
evf::evtn::TCDSBST::TCDSBST
TCDSBST(const unsigned char *p)
Definition:
FED1024.h:110
evf::evtn::TCDSBST::bst
Definition:
FED1024.h:94
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
evf::evtn::TCDSHeader::tcdsheader::reserved0
uint32_t reserved0
Definition:
FED1024.h:35
evf::evtn::TCDSHeader::tcdsheader::reserved5
uint16_t reserved5
Definition:
FED1024.h:47
evf::evtn::TCDSHeader::h
tcdsheader * h
Definition:
FED1024.h:67
Generated for CMSSW Reference Manual by
1.8.5