1 #ifndef __PFClusterCollectionMerger__
2 #define __PFClusterCollectionMerger__
19 const std::vector<edm::InputTag>&
inputs = conf.
getParameter<std::vector<edm::InputTag> >(
"inputs");
20 for (
const auto&
input : inputs) {
21 _inputs.push_back(consumes<reco::PFClusterCollection>(
input));
23 produces<reco::PFClusterCollection>();
27 auto output = std::make_unique<reco::PFClusterCollection>();
31 output->insert(
output->end(), handle->begin(), handle->end());
37 std::vector<edm::EDGetTokenT<reco::PFClusterCollection> >
_inputs;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static std::string const input
void produce(edm::StreamID, edm::Event &e, const edm::EventSetup &es) const override
PFClusterCollectionMerger(const edm::ParameterSet &conf)
T getParameter(std::string const &) const
std::vector< edm::EDGetTokenT< reco::PFClusterCollection > > _inputs