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");
46 if (fw >= 0x6010000) {
49 if (fw >= 0x6000000) {
50 gmt_in_packer->setIsKbmtf();
54 gmt_out_packer->
setFed(fed);
55 gmt_out_packer->setFwVersion(fw);
71 for (
int i = 1;
i < 6; ++
i) {
82 return std::unique_ptr<UnpackerCollections>(
new GMTCollections(e));
92 if (fw >= 0x6010000) {
95 if (fw >= 0x6000000) {
96 gmt_in_unp->setIsKbmtf();
99 for (
int iLink = 72; iLink < 144; iLink += 2) {
100 res[iLink] = gmt_in_unp;
108 for (
int oLink = 49; oLink < 65; oLink += 2)
109 res[oLink] = gmt_imd_unp;
112 std::array<std::shared_ptr<l1t::stage2::MuonUnpacker>, 6> gmt_out_unps;
114 for (
auto gmt_out_unp : gmt_out_unps) {
118 gmt_out_unp->setFedNumber(fed);
119 gmt_out_unp->setMuonCopy(i);
121 int oLinkMin = i * 8 + 1;
122 for (
int oLink = oLinkMin; oLink < oLinkMin + 8; oLink += 2)
123 res[oLink] = gmt_out_unp;
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
std::unique_ptr< UnpackerCollections > getCollections(edm::Event &e) override
void setFed(unsigned fedId)
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
std::shared_ptr< Packer > make(const std::string &) const
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
std::shared_ptr< Unpacker > make(const std::string &) const
UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override
void setUseEmtfDisplacementInfo()
#define DEFINE_L1T_PACKING_SETUP(type)
void setUseEmtfDisplacementInfo()
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