Main Page
Namespaces
Classes
Package Documentation
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
union
tcdsbst
{
116
uint64_t
words[8];
117
struct
{
118
uint32_t
gpstimelow
;
119
uint32_t
gpstimehigh
;
120
uint32_t
bireserved8_11
;
121
uint32_t
bireserved12_15
;
122
uint16_t
bstMaster_bireserved16
;
123
uint16_t
turnCountLow
;
124
uint16_t
turnCountHigh
;
125
uint16_t
lhcFillLow
;
126
uint16_t
lhcFillHigh
;
127
uint16_t
beamMode
;
128
uint16_t
particleTypes
;
129
uint16_t
beamMomentum
;
130
uint32_t
intensityBeam1
;
131
uint32_t
intensityBeam2
;
132
uint32_t
bireserved40_43
;
133
uint32_t
bireserved44_47
;
134
uint32_t
bireserved48_51
;
135
uint32_t
bireserved52_55
;
136
uint32_t
bireserved56_59
;
137
uint32_t
bireserved60_63
;
138
} bst;
139
};
140
TCDSBST
(
const
unsigned
char
*
p
) :
b
((
tcdsbst
*)p){
141
}
142
const
tcdsbst
&
getBST
(){
return
*
b
;}
143
private
:
144
tcdsbst
*
b
;
145
};
146
147
class
TCDSRecord
{
148
public
:
149
TCDSRecord
(
const
unsigned
char
*
p
) :
150
fh(p),
151
h
(p+sizeof(
fedh_t
)),
152
l1h(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.
headerSize
+1)*8),
153
b
(p+sizeof(
fedh_t
)+(
h
.getSizes().
size
.
headerSize
+1)*8+
154
(
h
.getSizes().
size
.
L1AhistSize
)*8)
155
{
156
157
}
158
TCDSFEDHeader
&
getFEDHeader
(){
return
fh;}
159
TCDSHeader
&
getHeader
(){
return
h
;}
160
TCDSL1AHistory
&
getHistory
(){
return
l1h;}
161
TCDSBST
&
getBST
(){
return
b
;}
162
private
:
163
TCDSFEDHeader
fh
;
164
TCDSHeader
h
;
165
TCDSL1AHistory
l1h
;
166
TCDSBST
b
;
167
};
168
169
170
}
171
}
172
#endif
evf::evtn::TCDSHeader::tcdsheader::reserved1
uint32_t reserved1
Definition:
FED1024.h:58
evf::evtn::TCDSBST::tcdsbst::bstMaster_bireserved16
uint16_t bstMaster_bireserved16
Definition:
FED1024.h:122
evf
Definition:
DQMFileSaver.h:11
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:163
evf::evtn::sizes::reserved1
const unsigned char reserved1
Definition:
FED1024.h:20
evf::evtn::TCDSRecord::getBST
TCDSBST & getBST()
Definition:
FED1024.h:161
evf::evtn::sizes::L1AhistSize
const unsigned char L1AhistSize
Definition:
FED1024.h:17
evf::evtn::TCDSBST
Definition:
FED1024.h:113
evf::evtn::TCDSHeader::tcdsheader::orbitLow
uint16_t orbitLow
Definition:
FED1024.h:70
evf::evtn::TCDSL1AHistory::l1a::eventtype
unsigned char eventtype
Definition:
FED1024.h:99
evf::evtn::TCDSBST::tcdsbst::bireserved60_63
uint32_t bireserved60_63
Definition:
FED1024.h:137
fed_header.h
evf::evtn::TCDSRecord::getHeader
TCDSHeader & getHeader()
Definition:
FED1024.h:159
evf::evtn::TCDSBST::tcdsbst::bireserved56_59
uint32_t bireserved56_59
Definition:
FED1024.h:136
evf::evtn::TCDSBST::tcdsbst::lhcFillLow
uint16_t lhcFillLow
Definition:
FED1024.h:125
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
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
evf::evtn::TCDSL1AHistory::l1a::ind0
unsigned char ind0
Definition:
FED1024.h:96
evf::evtn::TCDSRecord::b
TCDSBST b
Definition:
FED1024.h:166
evf::evtn::TCDSFEDHeader::fh
tcdsfedheader * fh
Definition:
FED1024.h:43
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
evf::evtn::TCDSHeader::s
sizes * s
Definition:
FED1024.h:86
evf::evtn::TCDSL1AHistory::hist
l1h * hist
Definition:
FED1024.h:110
evf::evtn::TCDSBST::tcdsbst::bireserved40_43
uint32_t bireserved40_43
Definition:
FED1024.h:132
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
h
Definition:
CSCDQM_HistoNames.h:23
evf::evtn::TCDSBST::tcdsbst::intensityBeam2
uint32_t intensityBeam2
Definition:
FED1024.h:131
evf::evtn::sizes::BGOSize
const unsigned char BGOSize
Definition:
FED1024.h:22
evf::evtn::TCDSL1AHistory
Definition:
FED1024.h:89
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
evf::evtn::TCDSFEDHeader::tcdsfedheader::eventid
uint32_t eventid
Definition:
FED1024.h:33
evf::evtn::TCDSFEDHeader::tcdsfedheader
Definition:
FED1024.h:29
evf::evtn::TCDSRecord::l1h
TCDSL1AHistory l1h
Definition:
FED1024.h:165
evf::evtn::TCDSBST::b
tcdsbst * b
Definition:
FED1024.h:144
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::tcdsbst::turnCountHigh
uint16_t turnCountHigh
Definition:
FED1024.h:124
evf::evtn::TCDSHeader::tcdsheader::lumiSection
uint32_t lumiSection
Definition:
FED1024.h:64
evf::evtn::TCDSL1AHistory::l1a::dummy1
uint16_t dummy1
Definition:
FED1024.h:94
RecoTauValidation_cfi.header
header
Definition:
RecoTauValidation_cfi.py:296
evf::evtn::TCDSRecord::getFEDHeader
TCDSFEDHeader & getFEDHeader()
Definition:
FED1024.h:158
evf::evtn::TCDSHeader::tcdsheader::nibblesPerLumiSection
uint16_t nibblesPerLumiSection
Definition:
FED1024.h:65
evf::evtn::TCDSHeader::tcdsheader::triggerTypeFlags
uint16_t triggerTypeFlags
Definition:
FED1024.h:66
evf::evtn::TCDSBST::tcdsbst::lhcFillHigh
uint16_t lhcFillHigh
Definition:
FED1024.h:126
evf::evtn::TCDSBST::tcdsbst::bireserved44_47
uint32_t bireserved44_47
Definition:
FED1024.h:133
evf::evtn::TCDSHeader::getData
const tcdsheader & getData()
Definition:
FED1024.h:84
evf::evtn::TCDSBST::tcdsbst::gpstimelow
uint32_t gpstimelow
Definition:
FED1024.h:118
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::TCDSRecord
Definition:
FED1024.h:147
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::TCDSBST::tcdsbst
Definition:
FED1024.h:115
evf::evtn::TCDSHeader::tcdsheader::activePartitions1
uint32_t activePartitions1
Definition:
FED1024.h:62
evf::evtn::TCDSBST::tcdsbst::gpstimehigh
uint32_t gpstimehigh
Definition:
FED1024.h:119
evf::evtn::TCDSFEDHeader::TCDSFEDHeader
TCDSFEDHeader(const unsigned char *p)
Definition:
FED1024.h:36
evf::evtn::TCDSHeader
Definition:
FED1024.h:46
evf::evtn::TCDSBST::tcdsbst::bireserved8_11
uint32_t bireserved8_11
Definition:
FED1024.h:120
evf::evtn::TCDSRecord::TCDSRecord
TCDSRecord(const unsigned char *p)
Definition:
FED1024.h:149
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::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
evf::evtn::TCDSBST::tcdsbst::bireserved12_15
uint32_t bireserved12_15
Definition:
FED1024.h:121
evf::evtn::TCDSBST::tcdsbst::particleTypes
uint16_t particleTypes
Definition:
FED1024.h:128
fedh_struct
Definition:
fed_header.h:31
evf::evtn::TCDSHeader::tcdsheader::reserved2
uint32_t reserved2
Definition:
FED1024.h:60
b
double b
Definition:
hdecay.h:120
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::TCDSRecord::h
TCDSHeader h
Definition:
FED1024.h:164
evf::evtn::TCDSRecord::getHistory
TCDSL1AHistory & getHistory()
Definition:
FED1024.h:160
evf::evtn::TCDSBST::tcdsbst::bireserved52_55
uint32_t bireserved52_55
Definition:
FED1024.h:135
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::tcdsbst::turnCountLow
uint16_t turnCountLow
Definition:
FED1024.h:123
evf::evtn::sizes::summarySize
const unsigned char summarySize
Definition:
FED1024.h:16
evf::evtn::sizes::size
struct evf::evtn::sizes::@334 size
evf::evtn::TCDSBST::tcdsbst::beamMomentum
uint16_t beamMomentum
Definition:
FED1024.h:129
evf::evtn::TCDSBST::tcdsbst::intensityBeam1
uint32_t intensityBeam1
Definition:
FED1024.h:130
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::TCDSBST::tcdsbst::beamMode
uint16_t beamMode
Definition:
FED1024.h:127
evf::evtn::sizes::reserved0
const unsigned char reserved0
Definition:
FED1024.h:19
evf::evtn::TCDSHeader::tcdsheader::nibble
uint32_t nibble
Definition:
FED1024.h:63
create_public_lumi_plots.hist
hist
Definition:
create_public_lumi_plots.py:34
evf::evtn::TCDSBST::tcdsbst::bireserved48_51
uint32_t bireserved48_51
Definition:
FED1024.h:134
evf::evtn::TCDSHeader::tcdsheader
Definition:
FED1024.h:49
evf::evtn::TCDSL1AHistory::l1a::orbitlow
uint32_t orbitlow
Definition:
FED1024.h:97
evf::evtn::TCDSBST::TCDSBST
TCDSBST(const unsigned char *p)
Definition:
FED1024.h:140
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::TCDSBST::getBST
const tcdsbst & getBST()
Definition:
FED1024.h:142
evf::evtn::TCDSHeader::h
tcdsheader * h
Definition:
FED1024.h:87
evf::evtn::TCDSFEDHeader::tcdsfedheader::word
uint64_t word
Definition:
FED1024.h:30
Generated for CMSSW Reference Manual by
1.8.11