29 dR_(iConfig.getParameter<double>(
"dR")) {
30 produces<l1t::HGCalMulticlusterBxCollection>();
34 auto out = std::make_unique<l1t::HGCalMulticlusterBxCollection>();
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;
45 for (
const auto &particle : *genParticles) {
46 if (particle.status() != 1)
48 if (
deltaR(multicluster, particle) <
dR_) {
49 out->push_back(bx, multicluster);
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
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)
edm::EDGetToken genParticleSrc_
void produce(edm::Event &, const edm::EventSetup &) override
~HGC3DClusterGenMatchSelector() override
HGC3DClusterGenMatchSelector(const edm::ParameterSet &)
edm::EDGetTokenT< l1t::HGCalMulticlusterBxCollection > src_