17 std::unique_ptr<PackerTokens>
20 return std::unique_ptr<PackerTokens>(
new GMTTokens(cfg, cc));
29 desc.
addOptional<
edm::InputTag>(
"ImdInputLabelBMTF")->setComment(
"uGMT intermediate muon from BMTF after first sorting stage");
30 desc.
addOptional<
edm::InputTag>(
"ImdInputLabelEMTFNeg")->setComment(
"uGMT intermediate muon from neg. EMTF side after first sorting stage");
31 desc.
addOptional<
edm::InputTag>(
"ImdInputLabelEMTFPos")->setComment(
"uGMT intermediate muon from pos. EMTF side after first sorting stage");
32 desc.
addOptional<
edm::InputTag>(
"ImdInputLabelOMTFNeg")->setComment(
"uGMT intermediate muon from neg. OMTF side after first sorting stage");
33 desc.
addOptional<
edm::InputTag>(
"ImdInputLabelOMTFPos")->setComment(
"uGMT intermediate muon from pos. OMTF side after first sorting stage");
58 for (
int i=1;
i<6; ++
i) {
68 std::unique_ptr<UnpackerCollections>
71 return std::unique_ptr<UnpackerCollections>(
new GMTCollections(e));
81 for (
int iLink = 72; iLink < 144; iLink += 2)
82 res[iLink] = gmt_in_unp;
86 for (
int oLink = 49; oLink < 63; oLink += 2)
87 res[oLink] = gmt_imd_unp;
90 std::array<std::shared_ptr<l1t::stage2::MuonUnpacker>, 6> gmt_out_unps;
92 for (
auto gmt_out_unp:gmt_out_unps) {
95 gmt_out_unp->setFedNumber(fed);
96 gmt_out_unp->setMuonCopy(i);
99 for (
int oLink = oLinkMin; oLink < oLinkMin+8; oLink += 2)
100 res[oLink] = gmt_out_unp;
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
virtual std::unique_ptr< UnpackerCollections > getCollections(edm::Event &e) override
void setAlgoVersion(const unsigned int version)
std::shared_ptr< Packer > make(const std::string &) const
virtual void registerProducts(edm::stream::EDProducerBase &prod) override
static const PackerFactory * get()
std::map< int, std::shared_ptr< Unpacker > > UnpackerMap
virtual void fillDescription(edm::ParameterSetDescription &desc) override
virtual PackerMap getPackers(int fed, unsigned int fw) override
std::shared_ptr< Unpacker > make(const std::string &) const
virtual UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override
#define DEFINE_L1T_PACKING_SETUP(type)
virtual std::unique_ptr< PackerTokens > registerConsumes(const edm::ParameterSet &cfg, edm::ConsumesCollector &cc) override
static const UnpackerFactory * get()
std::map< std::pair< int, int >, Packers > PackerMap