EventFilter
L1TRawToDigi
plugins
implementations_stage2
MuonPacker.h
Go to the documentation of this file.
1
#ifndef L1T_PACKER_STAGE2_MUONPACKER_H
2
#define L1T_PACKER_STAGE2_MUONPACKER_H
3
4
#include <map>
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
EventFilter/L1TRawToDigi/interface/Packer.h
"
7
8
#include "
L1Trigger/L1TMuon/interface/MuonRawDigiTranslator.h
"
9
10
namespace
l1t
{
11
namespace
stage2
{
12
class
MuonPacker
:
public
Packer
{
13
public
:
14
MuonPacker
(
unsigned
b1
) :
b1_
(
b1
) {}
15
Blocks
pack
(
const
edm::Event
&,
const
PackerTokens
*)
override
;
16
unsigned
b1_
;
17
inline
void
setFwVersion
(
unsigned
fwId) {
fwId_
= fwId; };
18
inline
void
setFed
(
unsigned
fedId
) {
fedId_
=
fedId
; };
19
20
private
:
21
typedef
std::map<unsigned int, std::vector<uint32_t>>
PayloadMap
;
22
23
void
packBx
(
PayloadMap
& payloadMap,
const
edm::Handle<MuonBxCollection>
&
muons
,
int
bx
);
24
25
unsigned
fwId_
{0};
26
unsigned
fedId_
{0};
27
};
28
29
class
GTMuonPacker
:
public
MuonPacker
{
30
public
:
31
GTMuonPacker
() :
MuonPacker
(0) {}
32
};
33
class
GMTMuonPacker
:
public
MuonPacker
{
34
public
:
35
GMTMuonPacker
() :
MuonPacker
(1) {}
36
};
37
}
// namespace stage2
38
}
// namespace l1t
39
40
#endif
l1t::Blocks
std::vector< Block > Blocks
Definition:
Block.h:99
PDWG_BPHSkim_cff.muons
muons
Definition:
PDWG_BPHSkim_cff.py:47
l1t::stage2::GMTMuonPacker::GMTMuonPacker
GMTMuonPacker()
Definition:
MuonPacker.h:35
MuonRawDigiTranslator.h
l1t::stage2::MuonPacker::setFed
void setFed(unsigned fedId)
Definition:
MuonPacker.h:18
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
l1t::stage2::MuonPacker::setFwVersion
void setFwVersion(unsigned fwId)
Definition:
MuonPacker.h:17
l1t::stage2::GMTMuonPacker
Definition:
MuonPacker.h:33
l1t::stage2::MuonPacker::fedId_
unsigned fedId_
Definition:
MuonPacker.h:26
edm::Handle
Definition:
AssociativeIterator.h:50
l1t::stage2::MuonPacker::fwId_
unsigned fwId_
Definition:
MuonPacker.h:25
b1
static constexpr float b1
Definition:
L1EGammaCrystalsEmulatorProducer.cc:83
l1t::stage2::GTMuonPacker::GTMuonPacker
GTMuonPacker()
Definition:
MuonPacker.h:31
l1t::stage2::MuonPacker::b1_
unsigned b1_
Definition:
MuonPacker.h:16
Event.h
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::stage2::MuonPacker::MuonPacker
MuonPacker(unsigned b1)
Definition:
MuonPacker.h:14
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:88
l1t::stage2::GTMuonPacker
Definition:
MuonPacker.h:29
l1t::PackerTokens
Definition:
PackerTokens.h:10
SiStripSourceConfigTier0_cff.stage2
stage2
Definition:
SiStripSourceConfigTier0_cff.py:71
Packer.h
l1t::stage2::MuonPacker
Definition:
MuonPacker.h:12
edm::Event
Definition:
Event.h:73
l1t::stage2::MuonPacker::packBx
void packBx(PayloadMap &payloadMap, const edm::Handle< MuonBxCollection > &muons, int bx)
Definition:
MuonPacker.cc:26
l1t::stage2::MuonPacker::pack
Blocks pack(const edm::Event &, const PackerTokens *) override
Definition:
MuonPacker.cc:8
l1t::Packer
Definition:
Packer.h:14
l1t::stage2::MuonPacker::PayloadMap
std::map< unsigned int, std::vector< uint32_t > > PayloadMap
Definition:
MuonPacker.h:18
Generated for CMSSW Reference Manual by
1.8.16