|
|
Go to the documentation of this file.
42 LogTrace(
"RPCHitAssociator") <<
"... size = " << RPCsimhits->size();
47 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
54 LogTrace(
"RPCHitAssociator") <<
"... size = " << RPCsimhits->size();
57 for (edm::PSimHitContainer::const_iterator hitItr = RPCsimhits->begin(); hitItr != RPCsimhits->end(); ++hitItr) {
58 _SimHitMap[hitItr->detUnitId()].push_back(*hitItr);
70 std::vector<SimHitIdpr>
matched;
73 const RPCRecHit *rpcrechit = dynamic_cast<const RPCRecHit *>(hitp);
81 for (
int i = fstrip;
i < fstrip + cls; ++
i) {
85 LogTrace(
"RPCHitAssociator") <<
"*** WARNING in RPCHitAssociator::associateRecHit, RPCRecHit " << *rpcrechit
86 <<
", strip " <<
i <<
" has no associated RPCDigiSimLink !" << endl;
88 for (std::set<RPCDigiSimLink>::iterator itlink =
links.begin(); itlink !=
links.end(); ++itlink) {
89 SimHitIdpr currentId(itlink->getTrackId(), itlink->getEventId());
96 LogTrace(
"RPCHitAssociator") <<
"*** WARNING in RPCHitAssociator::associateRecHit, null "
103 std::set<RPCDigiSimLink>
links;
110 uint32_t detid = digi_iter->getDetUnitId();
111 int str = digi_iter->getStrip();
112 int bunchx = digi_iter->getBx();
114 if (detid == rpcDetId &&
str ==
strip && bunchx ==
bx) {
115 links.insert(*digi_iter);
T const * product() const
iterator end()
Return the off-the-end iterator.
edm::Handle< edm::DetSetVector< RPCDigiSimLink > > _thelinkDigis
void initEvent(const edm::Event &, const edm::EventSetup &)
iterator begin()
Return an iterator to the first DetSet.
edm::EDGetTokenT< edm::PSimHitContainer > RPCsimhitsToken_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
RPCHitAssociator(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
edm::EDGetTokenT< edm::DetSetVector< RPCDigiSimLink > > RPCdigisimlinkToken_
std::pair< uint32_t, EncodedEventId > SimHitIdpr
edm::InputTag RPCsimhitsXFTag
collection_type::const_iterator const_iterator
std::vector< SimHitIdpr > associateRecHit(const TrackingRecHit &hit) const
std::set< RPCDigiSimLink > findRPCDigiSimLink(uint32_t rpcDetId, int strip, int bx) const
edm::InputTag RPCdigisimlinkTag
constexpr uint32_t rawId() const
get the raw id
std::map< unsigned int, edm::PSimHitContainer > _SimHitMap
std::vector< PSimHit > PSimHitContainer
edm::InputTag RPCsimhitsTag
RPCDetId rpcId() const
Return the rpcId.
int firstClusterStrip() const
edm::EDGetTokenT< CrossingFrame< PSimHit > > RPCsimhitsXFToken_
collection_type::const_iterator const_iterator