29 dR_(iConfig.getParameter<double>(
"dR")) {
30 produces<l1t::HGCalMulticlusterBxCollection>();
34 auto out = std::make_unique<l1t::HGCalMulticlusterBxCollection>();
37 iEvent.getByToken(src_, multiclusters);
42 for (
int bx = multiclusters->getFirstBX();
bx <= multiclusters->getLastBX(); ++
bx) {
43 for (
auto it = multiclusters->begin(
bx), ed = multiclusters->end(
bx); it != ed; ++it) {
44 const auto &multicluster = *it;
46 if (particle.status() != 1)
48 if (
deltaR(multicluster, particle) < dR_) {
49 out->push_back(
bx, multicluster);
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
edm::EDGetToken genParticleSrc_
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
~HGC3DClusterGenMatchSelector() override
HGC3DClusterGenMatchSelector(const edm::ParameterSet &)
edm::EDGetTokenT< l1t::HGCalMulticlusterBxCollection > src_