22 return std::unique_ptr<PackerTokens>(
new GMTTokens(
cfg, cc));
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 >= 0x7000000) {
51 if (
fw >= 0x6010000) {
52 gmt_in_packer->setUseEmtfDisplacementInfo();
54 if (
fw >= 0x6000000) {
55 gmt_in_packer->setIsKbmtf();
59 gmt_out_packer->
setFed(fed);
60 gmt_out_packer->setFwVersion(
fw);
103 if (
fw >= 0x7000000) {
106 if (
fw >= 0x6010000) {
107 gmt_in_unp->setUseEmtfDisplacementInfo();
109 if (
fw >= 0x6000000) {
110 gmt_in_unp->setIsKbmtf();
113 for (
int iLink = 72; iLink < 144; iLink += 2) {
114 res[iLink] = gmt_in_unp;
122 for (
int oLink = 49; oLink < 65; oLink += 2)
123 res[oLink] = gmt_imd_unp;
126 std::array<std::shared_ptr<l1t::stage2::MuonUnpacker>, 6> gmt_out_unps;
128 for (
auto gmt_out_unp : gmt_out_unps) {
132 gmt_out_unp->setFedNumber(fed);
133 gmt_out_unp->setMuonCopy(
i);
135 int oLinkMin =
i * 8 + 1;
136 for (
int oLink = oLinkMin; oLink < oLinkMin + 8; oLink += 2)
137 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)
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 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)
std::map< std::pair< int, int >, Packers > PackerMap
std::shared_ptr< Unpacker > make(const std::string &) const