l1t::HGC3DClusterGenMatchSelector::HGC3DClusterGenMatchSelector |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 26 of file HGC3DClusterGenMatchSelector.cc.
30 produces<l1t::HGCalMulticlusterBxCollection>();
T getParameter(std::string const &) const
edm::EDGetToken genParticleSrc_
edm::EDGetTokenT< l1t::HGCalMulticlusterBxCollection > src_
l1t::HGC3DClusterGenMatchSelector::~HGC3DClusterGenMatchSelector |
( |
| ) |
|
|
inlineoverride |
Definition at line 33 of file HGC3DClusterGenMatchSelector.cc.
References DEFINE_FWK_MODULE, boostedElectronIsolation_cff::deltaR, dR_, GenHFHadronMatcher_cfi::genParticles, genParticleSrc_, edm::Event::getByToken(), eostools::move(), MillePedeFileConverter_cfg::out, edm::Event::put(), and src_.
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 |