l1t::HGC3DClusterGenMatchSelector::HGC3DClusterGenMatchSelector |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 26 of file HGC3DClusterGenMatchSelector.cc.
30 produces<l1t::HGCalMulticlusterBxCollection>();
edm::EDGetToken genParticleSrc_
edm::EDGetTokenT< l1t::HGCalMulticlusterBxCollection > src_
T getParameter(std::string const &) const
l1t::HGC3DClusterGenMatchSelector::~HGC3DClusterGenMatchSelector |
( |
| ) |
|
|
inlineoverride |
Definition at line 33 of file HGC3DClusterGenMatchSelector.cc.
References makePileupJSON::bx, HLT_FULL_cff::deltaR, genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByToken(), eostools::move(), submitPVResolutionJobs::out, and edm::Event::put().
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);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken genParticleSrc_
edm::EDGetTokenT< l1t::HGCalMulticlusterBxCollection > src_
double l1t::HGC3DClusterGenMatchSelector::dR_ |
|
private |