Go to the documentation of this file.
11 useGEMs_(conf.getParameter<
bool>(
"useGEMs")),
29 useGEMs_(conf.getParameter<
bool>(
"useGEMs")),
43 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits->size();
48 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
55 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits->size();
58 for (edm::PSimHitContainer::const_iterator hitItr = GEMsimhits->begin(); hitItr != GEMsimhits->end(); ++hitItr) {
59 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
72 std::vector<SimHitIdpr>
matched;
84 for (
int i = fstrip;
i < (fstrip + cls); ++
i) {
86 int ch = static_cast<int>(itlink->getStrip());
90 SimHitIdpr currentId(itlink->getTrackId(), itlink->getEventId());
98 <<
"*** WARNING in GEMHitAssociator: GEM layer " << gemDetId <<
" has no DigiSimLinks !" << std::endl;
101 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)
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< CrossingFrame< PSimHit > > GEMsimhitsXFToken_
edm::EDGetTokenT< edm::DetSetVector< GEMDigiSimLink > > GEMdigisimlinkToken_
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
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