22 "GenericClusterImporter");
30 for(
auto clus = cbegin; clus != cend; ++clus ) {
33 switch( clus->layer() ) {
62 <<
"Layer given, " << clus->layer() <<
" is not a valid PFLayer!";
65 elems.emplace_back(cptr);
Abstract base class for a PFBlock element (track, cluster...)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
GenericClusterImporter(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList
edm::EDGetTokenT< reco::PFClusterCollection > _src
void importToBlock(const edm::Event &, ElementList &) const override