31 for (
const auto& producer_tag : conf.
getParameter<std::vector<edm::InputTag>>(
"pfProducers")) {
33 prod->consumes<
T>(
edm::InputTag(producer_tag.label(), producer_tag.instance(), producer_tag.process())));
41 auto out = std::make_unique<T>();
52 out->insert(
out->end(),
in->begin(),
in->end());
56 for (
int bx =
in->getFirstBX();
bx <=
in->getLastBX();
bx++) {
57 for (
auto egee_itr =
in->begin(
bx); egee_itr !=
in->end(
bx); egee_itr++) {
58 out->push_back(
bx, *egee_itr);
67 std::vector<InstanceMerger<l1t::TkElectronCollection>>
tkEleMerger;
68 std::vector<InstanceMerger<l1t::TkEmCollection>>
tkEmMerger;
69 std::vector<InstanceMerger<BXVector<l1t::EGamma>>>
tkEGMerger;
73 for (
const auto&
config : conf.
getParameter<std::vector<edm::ParameterSet>>(
"tkEgs")) {
76 for (
const auto&
config : conf.
getParameter<std::vector<edm::ParameterSet>>(
"tkElectrons")) {
79 for (
const auto&
config : conf.
getParameter<std::vector<edm::ParameterSet>>(
"tkEms")) {
98 psetDesc.
add<std::vector<edm::InputTag>>(
"pfProducers");
100 desc.addVPSet(
"tkElectrons", psetDesc);
101 desc.addVPSet(
"tkEms", psetDesc);
102 desc.addVPSet(
"tkEgs", psetDesc);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
std::vector< InstanceMerger< BXVector< l1t::EGamma > > > tkEGMerger
void populate(std::unique_ptr< BXVector< l1t::EGamma >> &out, const edm::Handle< BXVector< l1t::EGamma >> &in) const
InstanceMerger(L1TEGMultiMerger *prod, const edm::ParameterSet &conf)
std::vector< InstanceMerger< l1t::TkEmCollection > > tkEmMerger
void produce(edm::Event &iEvent) const
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
std::vector< InstanceMerger< l1t::TkElectronCollection > > tkEleMerger
L1TEGMultiMerger(const edm::ParameterSet &)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
void populate(std::unique_ptr< TT > &out, const edm::Handle< TT > &in) const
std::vector< edm::EDGetTokenT< T > > tokens_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::string instanceLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~L1TEGMultiMerger() override