Main Page
Namespaces
Classes
Package Documentation
EventFilter
GEMRawToDigi
src
AMCdata.cc
Go to the documentation of this file.
1
#include <cstdint>
2
#include "
EventFilter/GEMRawToDigi/interface/AMCdata.h
"
3
4
using namespace
gem
;
5
6
void
AMCdata::setAMCheader1
(uint32_t dataLength, uint16_t bxID, uint32_t l1AID, uint8_t AMCnum) {
7
AMCheader1
u{0};
8
u.
dataLength
=
dataLength
;
9
u.bxID = bxID;
10
u.l1AID = l1AID;
11
u.AMCnum = AMCnum;
12
amch1_
= u.word;
13
14
AMCTrailer
ut{0};
15
ut.
dataLength
=
dataLength
;
16
ut.l1AIDT = l1AID;
17
amct_
= ut.word;
18
}
19
20
void
AMCdata::setAMCheader2
(uint16_t boardID, uint16_t
orbitNum
, uint8_t
runType
) {
21
AMCheader2
u{0};
22
u.
boardID
= boardID;
23
u.orbitNum =
orbitNum
;
24
u.runType =
runType
;
25
amch2_
= u.word;
26
}
27
28
void
AMCdata::setGEMeventHeader
(uint8_t
davCnt
, uint32_t
davList
) {
29
EventHeader
u{0};
30
u.
davCnt
=
davCnt
;
31
u.davList =
davList
;
32
eh_
= u.word;
33
34
EventTrailer
ut{0};
35
ut.
BCL
= 1;
36
ut.DR = 1;
37
ut.CL = 1;
38
ut.ML = 1;
39
et_
= ut.word;
40
}
gem::AMCdata::orbitNum
uint16_t orbitNum() const
Definition:
AMCdata.h:95
gem::AMCheader1
Definition:
AMCdata.h:8
gem::AMCdata::dataLength
uint32_t dataLength() const
Definition:
AMCdata.h:89
gem::AMCdata::amch2_
uint64_t amch2_
Definition:
AMCdata.h:122
gem::AMCTrailer::dataLength
uint64_t dataLength
Definition:
AMCdata.h:33
gem
Definition:
AMC13Event.h:6
gem::AMCdata::et_
uint64_t et_
Definition:
AMCdata.h:125
gem::AMCdata::amct_
uint64_t amct_
Definition:
AMCdata.h:123
gem::AMCheader2
Definition:
AMCdata.h:18
gem::AMCdata::runType
uint8_t runType() const
Definition:
AMCdata.h:99
gem::AMCdata::setAMCheader1
void setAMCheader1(uint64_t word)
Definition:
AMCdata.h:71
gem::AMCdata::setGEMeventHeader
void setGEMeventHeader(uint64_t word)
Definition:
AMCdata.h:82
gem::AMCTrailer
Definition:
AMCdata.h:30
gem::AMCdata::eh_
uint64_t eh_
Definition:
AMCdata.h:124
gem::AMCdata::amch1_
uint64_t amch1_
Definition:
AMCdata.h:121
gem::AMCheader1::dataLength
uint64_t dataLength
Definition:
AMCdata.h:11
gem::AMCdata::davList
uint32_t davList() const
Definition:
AMCdata.h:105
gem::EventHeader
Definition:
AMCdata.h:38
gem::AMCdata::davCnt
uint8_t davCnt() const
Definition:
AMCdata.h:103
gem::EventHeader::davCnt
uint64_t davCnt
Definition:
AMCdata.h:46
gem::EventTrailer::BCL
uint64_t BCL
Definition:
AMCdata.h:54
gem::AMCheader2::boardID
uint64_t boardID
Definition:
AMCdata.h:21
gem::AMCdata::setAMCheader2
void setAMCheader2(uint64_t word)
Definition:
AMCdata.h:75
AMCdata.h
gem::EventTrailer
Definition:
AMCdata.h:51
Generated for CMSSW Reference Manual by
1.8.11