22 "GenericClusterImporter");
29 auto cbegin = clusters->cbegin();
30 auto cend = clusters->cend();
31 for(
auto clus = cbegin; clus != cend; ++clus ) {
34 switch( clus->layer() ) {
60 <<
"Layer given, " << clus->layer() <<
" is not a valid PFLayer!";
63 elems.emplace_back(cptr);
Abstract base class for a PFBlock element (track, cluster...)
void importToBlock(const edm::Event &, ElementList &) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) 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