30 ->setComment(
"uGMT intermediate muon from BMTF after first sorting stage");
32 ->setComment(
"uGMT intermediate muon from neg. EMTF side after first sorting stage");
34 ->setComment(
"uGMT intermediate muon from pos. EMTF side after first sorting stage");
36 ->setComment(
"uGMT intermediate muon from neg. OMTF side after first sorting stage");
38 ->setComment(
"uGMT intermediate muon from pos. OMTF side after first sorting stage");
48 if (
fw >= 0x8000000) {
51 if (
fw >= 0x7000000) {
52 gmt_in_packer->setUseEmtfNominalTightShowers();
54 if (
fw >= 0x6010000) {
55 gmt_in_packer->setUseEmtfDisplacementInfo();
57 if (
fw >= 0x6000000) {
58 gmt_in_packer->setIsKbmtf();
62 gmt_out_packer->
setFed(fed);
63 gmt_out_packer->setFwVersion(
fw);
106 if (
fw >= 0x8000000) {
109 if (
fw >= 0x7000000) {
110 gmt_in_unp->setUseEmtfNominalTightShowers();
112 if (
fw >= 0x6010000) {
113 gmt_in_unp->setUseEmtfDisplacementInfo();
115 if (
fw >= 0x6000000) {
116 gmt_in_unp->setIsKbmtf();
119 for (
int iLink = 72; iLink < 144; iLink += 2) {
120 res[iLink] = gmt_in_unp;
128 for (
int oLink = 49; oLink < 65; oLink += 2)
129 res[oLink] = gmt_imd_unp;
132 std::array<std::shared_ptr<l1t::stage2::MuonUnpacker>, 6> gmt_out_unps;
134 for (
auto gmt_out_unp : gmt_out_unps) {
138 gmt_out_unp->setFedNumber(fed);
139 gmt_out_unp->setMuonCopy(
i);
141 int oLinkMin =
i * 8 + 1;
142 for (
int oLink = oLinkMin; oLink < oLinkMin + 8; oLink += 2)
143 res[oLink] = gmt_out_unp;
std::shared_ptr< Packer > make(const std::string &) const
std::unique_ptr< UnpackerCollections > getCollections(edm::Event &e) override
void setFed(unsigned fedId)
uint32_t cc[maxCellsPerHit]
std::string to_string(const V &value)
static constexpr size_t NUM_OUTPUT_COPIES
static const PackerFactory * get()
std::map< int, std::shared_ptr< Unpacker > > UnpackerMap
void setUseEmtfLooseShowers()
void fillDescription(edm::ParameterSetDescription &desc) override
PackerMap getPackers(int fed, unsigned int fw) override
void registerProducts(edm::ProducesCollector) override
UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override
#define DEFINE_L1T_PACKING_SETUP(type)
std::unique_ptr< PackerTokens > registerConsumes(const edm::ParameterSet &cfg, edm::ConsumesCollector &cc) override
static const UnpackerFactory * get()
void setAlgoVersion(const unsigned int version)
void setUseEmtfLooseShowers()
std::map< std::pair< int, int >, Packers > PackerMap
std::shared_ptr< Unpacker > make(const std::string &) const