CMS 3D CMS Logo

AMCdata.cc
Go to the documentation of this file.
1 #include <cstdint>
3 
4 using namespace gem;
5 
6 void AMCdata::setAMCheader1(uint32_t dataLength, uint16_t bxID, uint32_t l1AID, uint8_t AMCnum)
7 {
8  AMCheader1 u;
10  u.bxID = bxID;
11  u.l1AID = l1AID;
12  u.AMCnum = AMCnum;
13  amch1_ = u.word;
14 }
15 
16 void AMCdata::setAMCheader2(uint16_t boardID, uint16_t orbitNum, uint8_t runType)
17 {
18  AMCheader2 u;
19  u.boardID = boardID;
20  u.orbitNum = orbitNum;
21  u.runType = runType;
22  amch2_ = u.word;
23 }
24 
25 void AMCdata::setGEMeventHeader(uint8_t davCnt, uint32_t davList)
26 {
27  EventHeader u;
28  u.davCnt = davCnt;
29  u.davList = davList;
30  eh_ = u.word;
31 }
uint64_t bxID
Definition: AMCdata.h:12
uint16_t orbitNum() const
Definition: AMCdata.h:86
uint32_t dataLength() const
Definition: AMCdata.h:80
uint64_t word
Definition: AMCdata.h:19
uint64_t davList
Definition: AMCdata.h:44
uint64_t amch2_
Definition: AMCdata.h:109
Definition: AMC13Event.h:6
uint8_t runType() const
Definition: AMCdata.h:90
void setAMCheader1(uint64_t word)
Definition: AMCdata.h:62
void setGEMeventHeader(uint64_t word)
Definition: AMCdata.h:73
uint64_t eh_
Definition: AMCdata.h:111
uint64_t amch1_
Definition: AMCdata.h:108
uint64_t dataLength
Definition: AMCdata.h:11
uint32_t davList() const
Definition: AMCdata.h:96
uint64_t runType
Definition: AMCdata.h:26
uint64_t orbitNum
Definition: AMCdata.h:22
uint8_t davCnt() const
Definition: AMCdata.h:94
uint64_t davCnt
Definition: AMCdata.h:42
uint64_t word
Definition: AMCdata.h:9
uint64_t boardID
Definition: AMCdata.h:21
uint64_t l1AID
Definition: AMCdata.h:13
void setAMCheader2(uint64_t word)
Definition: AMCdata.h:66
uint64_t word
Definition: AMCdata.h:39
uint64_t AMCnum
Definition: AMCdata.h:14