CMS 3D CMS Logo

AMCdata.cc
Go to the documentation of this file.
1 #include <cstdint>
3 #include <iostream>
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};
9  u.bxID = bxID;
10  u.l1AID = l1AID;
11  u.AMCnum = AMCnum;
12  amch1_ = u.word;
13 
14  AMCTrailer ut{0};
16  ut.l1AID = 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::setAMCheader2
void setAMCheader2(uint64_t word)
Definition: AMCdata.h:78
gem::AMCdata::dataLength
uint32_t dataLength() const
Definition: AMCdata.h:92
gem::AMCheader2
Definition: AMCdata.h:18
gem::AMCdata::et_
uint64_t et_
Definition: AMCdata.h:133
gem::EventHeader::davCnt
uint64_t davCnt
Definition: AMCdata.h:47
gem::AMCdata::amct_
uint64_t amct_
Definition: AMCdata.h:131
gem::EventTrailer
Definition: AMCdata.h:52
gem::AMCdata::davList
uint32_t davList() const
Definition: AMCdata.h:111
gem::EventHeader
Definition: AMCdata.h:39
gem::AMCTrailer::dataLength
uint64_t dataLength
Definition: AMCdata.h:33
gem::AMCdata::runType
uint8_t runType() const
Definition: AMCdata.h:102
gem::AMCdata::eh_
uint64_t eh_
Definition: AMCdata.h:132
gem::AMCdata::amch2_
uint64_t amch2_
Definition: AMCdata.h:130
gem::AMCdata::setAMCheader1
void setAMCheader1(uint64_t word)
Definition: AMCdata.h:74
gem::AMCdata::setGEMeventHeader
void setGEMeventHeader(uint64_t word)
Definition: AMCdata.h:85
gem::AMCdata::davCnt
uint8_t davCnt() const
Definition: AMCdata.h:109
AMCdata.h
gem::EventTrailer::BCL
uint64_t BCL
Definition: AMCdata.h:55
gem::AMCdata::amch1_
uint64_t amch1_
Definition: AMCdata.h:129
gem
Definition: AMC13Event.h:6
gem::AMCheader1::dataLength
uint64_t dataLength
Definition: AMCdata.h:11
gem::AMCheader2::boardID
uint64_t boardID
Definition: AMCdata.h:21
gem::AMCheader1
Definition: AMCdata.h:8
EcalCondDBWriter_cfi.runType
runType
Definition: EcalCondDBWriter_cfi.py:64
gem::AMCTrailer
Definition: AMCdata.h:30