EventFilter
L1TRawToDigi
plugins
implementations_stage2
MuonUnpacker.h
Go to the documentation of this file.
1
#ifndef L1T_PACKER_STAGE2_MUONUNPACKER_H
2
#define L1T_PACKER_STAGE2_MUONUNPACKER_H
3
4
#include "
EventFilter/L1TRawToDigi/interface/Unpacker.h
"
5
#include "
EventFilter/L1TRawToDigi/interface/Block.h
"
6
#include "
L1TObjectCollections.h
"
7
8
namespace
l1t
{
9
namespace
stage2
{
10
class
MuonUnpacker
:
public
Unpacker
{
11
public
:
12
MuonUnpacker
();
13
~MuonUnpacker
()
override
{};
14
15
bool
unpack
(
const
Block
&
block
,
UnpackerCollections
* coll)
override
;
16
17
inline
int
getFedNumber
() {
return
fed_
; };
18
inline
unsigned
int
getMuonCopy
() {
return
muonCopy_
; };
19
20
inline
void
setFedNumber
(
const
int
fed) {
fed_
= fed; };
21
inline
void
setMuonCopy
(
const
unsigned
int
copy
) {
muonCopy_
=
copy
; };
22
23
private
:
24
static
constexpr
unsigned
nWords_
= 6;
// every link transmits 6 words (3 muons) per bx
25
static
constexpr
unsigned
bxzs_enable_shift_
= 1;
26
27
MuonBxCollection
*
res_
;
28
int
fed_
;
29
unsigned
int
muonCopy_
;
30
31
void
unpackBx
(
int
bx
,
const
std::vector<uint32_t>&
payload
,
unsigned
int
startIdx = 0);
32
};
33
}
// namespace stage2
34
}
// namespace l1t
35
36
#endif
l1t::stage2::MuonUnpacker::setFedNumber
void setFedNumber(const int fed)
Definition:
MuonUnpacker.h:20
Block.h
l1t::stage2::MuonUnpacker::nWords_
static constexpr unsigned nWords_
Definition:
MuonUnpacker.h:24
l1t::stage2::MuonUnpacker::bxzs_enable_shift_
static constexpr unsigned bxzs_enable_shift_
Definition:
MuonUnpacker.h:25
filterCSVwithJSON.copy
copy
Definition:
filterCSVwithJSON.py:36
l1t::stage2::MuonUnpacker::MuonUnpacker
MuonUnpacker()
Definition:
MuonUnpacker.cc:11
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
l1t::stage2::MuonUnpacker
Definition:
MuonUnpacker.h:10
l1t::stage2::MuonUnpacker::res_
MuonBxCollection * res_
Definition:
MuonUnpacker.h:27
BXVector
Definition:
BXVector.h:15
l1t::stage2::MuonUnpacker::unpack
bool unpack(const Block &block, UnpackerCollections *coll) override
Definition:
MuonUnpacker.cc:13
l1t::stage2::MuonUnpacker::muonCopy_
unsigned int muonCopy_
Definition:
MuonUnpacker.h:29
jets_cff.payload
payload
Definition:
jets_cff.py:32
l1t::stage2::MuonUnpacker::setMuonCopy
void setMuonCopy(const unsigned int copy)
Definition:
MuonUnpacker.h:21
l1t::Unpacker
Definition:
Unpacker.h:11
l1t::stage2::MuonUnpacker::getFedNumber
int getFedNumber()
Definition:
MuonUnpacker.h:17
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::stage2::MuonUnpacker::unpackBx
void unpackBx(int bx, const std::vector< uint32_t > &payload, unsigned int startIdx=0)
Definition:
MuonUnpacker.cc:56
l1t::stage2::MuonUnpacker::fed_
int fed_
Definition:
MuonUnpacker.h:28
groupFilesInBlocks.block
block
Definition:
groupFilesInBlocks.py:150
SiStripSourceConfigTier0_cff.stage2
stage2
Definition:
SiStripSourceConfigTier0_cff.py:71
Unpacker.h
l1t::stage2::MuonUnpacker::~MuonUnpacker
~MuonUnpacker() override
Definition:
MuonUnpacker.h:13
l1t::UnpackerCollections
Definition:
UnpackerCollections.h:9
L1TObjectCollections.h
l1t::Block
Definition:
Block.h:70
l1t::stage2::MuonUnpacker::getMuonCopy
unsigned int getMuonCopy()
Definition:
MuonUnpacker.h:18
Generated for CMSSW Reference Manual by
1.8.16