Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
GEMDigi
src
GEMAMC.cc
Go to the documentation of this file.
1
#include <cstdint>
2
#include "
DataFormats/GEMDigi/interface/GEMAMC.h
"
3
#include <iostream>
4
5
void
GEMAMC::setAMCheader1
(uint32_t dataLength, uint16_t bxID, uint32_t l1AID, uint8_t AMCnum) {
6
AMCheader1
u{0};
7
u.
dataLength
=
dataLength
;
8
u.bxID = bxID;
9
u.l1AID = l1AID;
10
u.AMCnum = AMCnum;
11
amch1_
= u.word;
12
13
AMCTrailer
ut{0};
14
ut.
dataLength
=
dataLength
;
15
ut.l1AID = l1AID;
16
amct_
= ut.word;
17
}
18
19
void
GEMAMC::setAMCheader2
(uint16_t boardID, uint16_t orbitNum, uint8_t
runType
) {
20
AMCheader2
u{0};
21
u.
boardID
= boardID;
22
u.orbitNum = orbitNum;
23
u.runType =
runType
;
24
amch2_
= u.word;
25
}
26
27
void
GEMAMC::setGEMeventHeader
(uint8_t davCnt, uint32_t davList) {
28
EventHeader
u{0};
29
u.
davCnt
=
davCnt
;
30
u.davList =
davList
;
31
eh_
= u.word;
32
33
EventTrailer
ut{0};
34
ut.
BCL
= 1;
35
ut.DR = 1;
36
ut.CL = 1;
37
ut.ML = 1;
38
et_
= ut.word;
39
}
GEMAMC::setAMCheader1
void setAMCheader1(uint64_t word)
Definition:
GEMAMC.h:72
GEMAMC::amch2_
uint64_t amch2_
Definition:
GEMAMC.h:128
GEMAMC::EventHeader
Definition:
GEMAMC.h:39
GEMAMC::setAMCheader2
void setAMCheader2(uint64_t word)
Definition:
GEMAMC.h:76
GEMAMC::EventTrailer::BCL
uint64_t BCL
Definition:
GEMAMC.h:55
GEMAMC::AMCheader2
Definition:
GEMAMC.h:18
GEMAMC::amct_
uint64_t amct_
Definition:
GEMAMC.h:129
GEMAMC::AMCTrailer::dataLength
uint64_t dataLength
Definition:
GEMAMC.h:33
GEMAMC::AMCTrailer
Definition:
GEMAMC.h:30
runPedHist.runType
tuple runType
Definition:
runPedHist.py:37
GEMAMC::AMCheader1::dataLength
uint64_t dataLength
Definition:
GEMAMC.h:11
GEMAMC::et_
uint64_t et_
Definition:
GEMAMC.h:131
GEMAMC::amch1_
uint64_t amch1_
Definition:
GEMAMC.h:127
GEMAMC::davList
uint32_t davList() const
Definition:
GEMAMC.h:109
GEMAMC::runType
uint8_t runType() const
Definition:
GEMAMC.h:100
GEMAMC::eh_
uint64_t eh_
Definition:
GEMAMC.h:130
GEMAMC::dataLength
uint32_t dataLength() const
Definition:
GEMAMC.h:90
GEMAMC::EventTrailer
Definition:
GEMAMC.h:52
GEMAMC::EventHeader::davCnt
uint64_t davCnt
Definition:
GEMAMC.h:47
GEMAMC::setGEMeventHeader
void setGEMeventHeader(uint64_t word)
Definition:
GEMAMC.h:83
GEMAMC::davCnt
uint8_t davCnt() const
Definition:
GEMAMC.h:107
GEMAMC::AMCheader2::boardID
uint64_t boardID
Definition:
GEMAMC.h:21
GEMAMC::AMCheader1
Definition:
GEMAMC.h:8
GEMAMC.h
Generated for CMSSW Reference Manual by
1.8.5