13 useGEMs_(conf.getParameter<
bool>(
"useGEMs")) {
32 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits->size();
37 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
43 LogTrace(
"GEMHitAssociator") <<
"... size = " << GEMsimhits.size();
46 for (edm::PSimHitContainer::const_iterator hitItr = GEMsimhits.begin(); hitItr != GEMsimhits.end(); ++hitItr) {
47 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
58 std::vector<SimHitIdpr>
matched;
70 for (
int i = fstrip;
i < (fstrip + cls); ++
i) {
72 int ch =
static_cast<int>(itlink->getStrip());
76 SimHitIdpr currentId(itlink->getTrackId(), itlink->getEventId());
84 <<
"*** WARNING in GEMHitAssociator: GEM layer " << gemDetId <<
" has no DigiSimLinks !" << std::endl;
87 edm::LogWarning(
"GEMHitAssociator") <<
"*** WARNING in GEMHitAssociator::associateRecHit, null " GEMHitAssociator(const edm::Event &e, const Config &config)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::InputTag GEMdigisimlinkTag
iterator find(det_id_type id)
void initEvent(const edm::Event &)
std::map< unsigned int, edm::PSimHitContainer > _SimHitMap
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< edm::DetSetVector< GEMDigiSimLink > > GEMdigisimlinkToken_
std::pair< uint32_t, EncodedEventId > SimHitIdpr
edm::InputTag GEMsimhitsXFTag
iterator end()
Return the off-the-end iterator.
edm::EDGetTokenT< edm::PSimHitContainer > GEMsimhitsToken_
edm::EDGetTokenT< CrossingFrame< PSimHit > > GEMsimhitsXFToken_
GEMDetId gemId() const
Return the gemId.
std::vector< SimHitIdpr > associateRecHit(const GEMRecHit *gemrechit) const
const DigiSimLinks * theDigiSimLinks
int firstClusterStrip() const
std::vector< PSimHit > PSimHitContainer
edm::InputTag GEMsimhitsTag
Log< level::Warning, false > LogWarning
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
Config(const edm::ParameterSet &, edm::ConsumesCollector ic)