Go to the documentation of this file.
10 useGEMs_(conf.getParameter<
bool>(
"useGEMs")),
28 useGEMs_(conf.getParameter<
bool>(
"useGEMs")),
42 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits->size();
47 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
54 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits->size();
57 for (edm::PSimHitContainer::const_iterator hitItr = GEMsimhits->begin(); hitItr != GEMsimhits->end(); ++hitItr) {
58 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
71 std::vector<SimHitIdpr>
matched;
83 for (
int i = fstrip;
i < (fstrip + cls); ++
i) {
85 int ch = static_cast<int>(itlink->channel());
89 SimHitIdpr currentId(itlink->SimTrackId(), itlink->eventId());
97 <<
"*** WARNING in GEMHitAssociator: GEM layer " << gemDetId <<
" has no DigiSimLinks !" << std::endl;
100 edm::LogWarning(
"GEMHitAssociator") <<
"*** WARNING in GEMHitAssociator::associateRecHit, null "
T const * product() const
iterator end()
Return the off-the-end iterator.
std::map< unsigned int, edm::PSimHitContainer > _SimHitMap
edm::EDGetTokenT< edm::PSimHitContainer > GEMsimhitsToken_
void initEvent(const edm::Event &, const edm::EventSetup &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< CrossingFrame< PSimHit > > GEMsimhitsXFToken_
GEMHitAssociator(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
std::pair< uint32_t, EncodedEventId > SimHitIdpr
edm::InputTag GEMsimhitsTag
std::vector< SimHitIdpr > associateRecHit(const GEMRecHit *gemrechit) const
collection_type::const_iterator const_iterator
edm::EDGetTokenT< edm::DetSetVector< StripDigiSimLink > > GEMdigisimlinkToken_
int firstClusterStrip() const
iterator find(det_id_type id)
edm::InputTag GEMsimhitsXFTag
GEMDetId gemId() const
Return the gemId.
edm::InputTag GEMdigisimlinkTag
const DigiSimLinks * theDigiSimLinks
std::vector< PSimHit > PSimHitContainer
collection_type::const_iterator const_iterator