12 template <reco::PFBlockElement::Type T>
27 template <reco::PFBlockElement::Type T>
31 auto assoc =
e.getHandle(_assoc);
39 for (
auto clus = bclus; clus != eclus; ++clus) {
42 for (
auto scelem = elems.begin(); scelem != sc_end; ++scelem) {
58 ecals.emplace_back(newelem);
60 elems.reserve(elems.size() + ecals.size());
61 for (
auto&
ecal : ecals) {
62 elems.emplace_back(
ecal.release());
static bool overlap(const reco::CaloCluster &sc1, const reco::CaloCluster &sc, float minfrac=0.01, bool debug=false)
edm::EDGetTokenT< edm::ValueMap< reco::CaloClusterPtr > > _assoc
uint32_t cc[maxCellsPerHit]
const SuperClusterRef & superClusterRef() const
edm::Ptr< CaloCluster > CaloClusterPtr
bool fromPFSuperCluster() const
edm::EDGetTokenT< reco::PFClusterCollection > _src
SpecialClusterImporter< reco::PFBlockElement::HGCAL > HGCalClusterImporter
Container::value_type value_type
void importToBlock(const edm::Event &, ElementList &) const override
SpecialClusterImporter< reco::PFBlockElement::ECAL > ECALClusterImporter
std::vector< l1t::PFCluster > PFClusterCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< std::unique_ptr< reco::PFBlockElement > > ElementList
SpecialClusterImporter(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
void setSuperClusterRef(const SuperClusterRef &ref)