#include <RPCHitAssociator.h>
Public Types | |
typedef edm::DetSetVector < RPCDigiSimLink > | RPCDigiSimLinks |
typedef std::pair< uint32_t, EncodedEventId > | SimHitIdpr |
Public Member Functions | |
std::vector< SimHitIdpr > | associateRecHit (const TrackingRecHit &hit) |
std::set< RPCDigiSimLink > | findRPCDigiSimLink (uint32_t rpcDetId, int strip, int bx) |
void | initEvent (const edm::Event &, const edm::EventSetup &) |
RPCHitAssociator (const edm::ParameterSet &, edm::ConsumesCollector &&ic) | |
RPCHitAssociator (const edm::Event &e, const edm::EventSetup &eventSetup, const edm::ParameterSet &conf) | |
~RPCHitAssociator () | |
Private Attributes | |
std::map< unsigned int, edm::PSimHitContainer > | _SimHitMap |
edm::Handle< edm::DetSetVector < RPCDigiSimLink > > | _thelinkDigis |
bool | crossingframe |
edm::InputTag | RPCdigisimlinkTag |
edm::EDGetTokenT < edm::DetSetVector < RPCDigiSimLink > > | RPCdigisimlinkToken_ |
edm::InputTag | RPCsimhitsTag |
edm::EDGetTokenT < edm::PSimHitContainer > | RPCsimhitsToken_ |
edm::InputTag | RPCsimhitsXFTag |
edm::EDGetTokenT < CrossingFrame< PSimHit > > | RPCsimhitsXFToken_ |
Definition at line 32 of file RPCHitAssociator.h.
Definition at line 35 of file RPCHitAssociator.h.
typedef std::pair<uint32_t, EncodedEventId> RPCHitAssociator::SimHitIdpr |
Definition at line 36 of file RPCHitAssociator.h.
RPCHitAssociator::RPCHitAssociator | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | ic | ||
) |
Definition at line 8 of file RPCHitAssociator.cc.
References crossingframe, edm::InputTag::label(), RPCdigisimlinkTag, RPCdigisimlinkToken_, RPCsimhitsTag, RPCsimhitsToken_, RPCsimhitsXFTag, and RPCsimhitsXFToken_.
RPCHitAssociator::RPCHitAssociator | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup, | ||
const edm::ParameterSet & | conf | ||
) |
Definition at line 25 of file RPCHitAssociator.cc.
References initEvent().
|
inline |
Definition at line 45 of file RPCHitAssociator.h.
std::vector< RPCHitAssociator::SimHitIdpr > RPCHitAssociator::associateRecHit | ( | const TrackingRecHit & | hit | ) |
Definition at line 79 of file RPCHitAssociator.cc.
References RPCRecHit::BunchX(), rpc-layouts::bx, RPCRecHit::clusterSize(), spr::find(), findRPCDigiSimLink(), RPCRecHit::firstClusterStrip(), i, electronStore::links, DetId::rawId(), and RPCRecHit::rpcId().
Referenced by MuonAssociatorByHits::getMatchedIds().
std::set< RPCDigiSimLink > RPCHitAssociator::findRPCDigiSimLink | ( | uint32_t | rpcDetId, |
int | strip, | ||
int | bx | ||
) |
Definition at line 111 of file RPCHitAssociator.cc.
References _thelinkDigis, edm::DetSetVector< T >::begin(), cond::rpcobgas::detid, edm::DetSetVector< T >::end(), and electronStore::links.
Referenced by associateRecHit().
void RPCHitAssociator::initEvent | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
Definition at line 36 of file RPCHitAssociator.cc.
References _SimHitMap, _thelinkDigis, crossingframe, edm::Event::getByLabel(), edm::InputTag::label(), LogTrace, edm::Handle< T >::product(), RPCdigisimlinkTag, RPCsimhitsTag, and RPCsimhitsXFTag.
Referenced by RPCHitAssociator().
|
private |
Definition at line 64 of file RPCHitAssociator.h.
Referenced by initEvent().
|
private |
Definition at line 53 of file RPCHitAssociator.h.
Referenced by findRPCDigiSimLink(), and initEvent().
|
private |
Definition at line 56 of file RPCHitAssociator.h.
Referenced by initEvent(), and RPCHitAssociator().
|
private |
Definition at line 54 of file RPCHitAssociator.h.
Referenced by initEvent(), and RPCHitAssociator().
|
private |
Definition at line 62 of file RPCHitAssociator.h.
Referenced by RPCHitAssociator().
|
private |
Definition at line 57 of file RPCHitAssociator.h.
Referenced by initEvent(), and RPCHitAssociator().
|
private |
Definition at line 61 of file RPCHitAssociator.h.
Referenced by RPCHitAssociator().
|
private |
Definition at line 58 of file RPCHitAssociator.h.
Referenced by initEvent(), and RPCHitAssociator().
|
private |
Definition at line 60 of file RPCHitAssociator.h.
Referenced by RPCHitAssociator().