#include <InterestingEcalDetIdProducer.h>
InterestingEcalDetIdProducer::InterestingEcalDetIdProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
InterestingEcalDetIdProducer::~InterestingEcalDetIdProducer |
( |
| ) |
|
|
override |
Definition at line 42 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(), metsig::muon, extraflags_cff::muons, muonToken_, edm::Event::put(), and ecaldqm::topology().
50 for(reco::MuonCollection::const_iterator
muon = muons->begin();
muon != muons->end(); ++
muon){
51 if (!
muon->isEnergyValid() )
continue;
52 if (
muon->calEnergy().ecal_id.rawId()==0 )
continue;
54 const std::vector<DetId>&
ids = topology->
getWindow(
muon->calEnergy().ecal_id, 5, 5);
55 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 |