27 src_(cfg.getParameter<
std::vector<
edm::InputTag> >(
"src")) {
28 produces<reco::PFTauRefVector>();
33 auto out = std::make_unique<reco::PFTauRefVector>();
34 for(
auto const& inputSrc :
src_) {
38 reco::tau::castView<reco::PFTauRefVector>(
src);
40 for(
auto const&
tau : inputRefs) {
46 std::vector<edm::InputTag>
src_;
54 desc.
add<std::vector<edm::InputTag>>(
"src");
56 descriptions.
add(
"pfTauViewRefMerger", desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
PFTauViewRefMerger(const edm::ParameterSet &cfg)
std::vector< edm::InputTag > src_
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &evt, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)