22 produces<DetIdCollection>();
24 caloTopoToken_ = esConsumes<CaloTopology, CaloTopologyRecord, edm::Transition::BeginRun>();
41 if (!
muon->isEnergyValid())
43 if (
muon->calEnergy().ecal_id.rawId() == 0)
47 const std::vector<DetId>& ids = topology->
getWindow(
muon->calEnergy().ecal_id, 5, 5);
48 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id)
const CaloTopology * caloTopology_
T getParameter(std::string const &) const
InterestingEcalDetIdProducer(const edm::ParameterSet &)
~InterestingEcalDetIdProducer() override
void produce(edm::Event &, const edm::EventSetup &) override
interestingDetIdCollection
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopoToken_
edm::InputTag inputCollection_
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
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
void beginRun(const edm::Run &, const edm::EventSetup &) override