#include <InterestingEcalDetIdProducer.h>
InterestingEcalDetIdProducer::InterestingEcalDetIdProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
InterestingEcalDetIdProducer::~InterestingEcalDetIdProducer |
( |
| ) |
|
|
override |
Definition at line 36 of file InterestingEcalDetIdProducer.cc.
References caloTopology_, DetId::Ecal, spr::find(), edm::Event::getByToken(), CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), triggerObjects_cff::id, photons_cff::ids, interestingDetIdCollectionProducer_cfi::interestingDetIdCollection, eostools::move(), HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, muonToken_, edm::Event::put(), and ecaldqm::topology().
42 for (reco::MuonCollection::const_iterator
muon = muons->begin();
muon != muons->end(); ++
muon) {
43 if (!
muon->isEnergyValid())
45 if (
muon->calEnergy().ecal_id.rawId() == 0)
49 const std::vector<DetId>&
ids = topology->
getWindow(
muon->calEnergy().ecal_id, 5, 5);
50 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id)
const CaloTopology * caloTopology_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CaloTopology const * topology(0)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
interestingDetIdCollection
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< reco::MuonCollection > muonToken_
virtual std::vector< DetId > getWindow(const DetId &id, const int &northSouthSize, const int &eastWestSize) const
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
const CaloTopology* InterestingEcalDetIdProducer::caloTopology_ |
|
private |