#include <GEMHitAssociator.h>
Public Types | |
typedef edm::DetSetVector< StripDigiSimLink > | DigiSimLinks |
typedef edm::DetSet< StripDigiSimLink > | LayerLinks |
typedef std::pair< uint32_t, EncodedEventId > | SimHitIdpr |
Public Member Functions | |
std::vector< SimHitIdpr > | associateRecHit (const GEMRecHit *gemrechit) const |
GEMHitAssociator (const edm::ParameterSet &, edm::ConsumesCollector &&ic) | |
GEMHitAssociator (const edm::Event &e, const edm::EventSetup &eventSetup, const edm::ParameterSet &conf) | |
void | initEvent (const edm::Event &, const edm::EventSetup &) |
~GEMHitAssociator () | |
Private Attributes | |
std::map< unsigned int, edm::PSimHitContainer > | _SimHitMap |
bool | crossingframe |
edm::InputTag | GEMdigisimlinkTag |
edm::EDGetTokenT< edm::DetSetVector< StripDigiSimLink > > | GEMdigisimlinkToken_ |
edm::InputTag | GEMsimhitsTag |
edm::EDGetTokenT< edm::PSimHitContainer > | GEMsimhitsToken_ |
edm::InputTag | GEMsimhitsXFTag |
edm::EDGetTokenT< CrossingFrame< PSimHit > > | GEMsimhitsXFToken_ |
const DigiSimLinks * | theDigiSimLinks |
bool | useGEMs_ |
Definition at line 33 of file GEMHitAssociator.h.
Definition at line 35 of file GEMHitAssociator.h.
Definition at line 36 of file GEMHitAssociator.h.
typedef std::pair<uint32_t, EncodedEventId> GEMHitAssociator::SimHitIdpr |
Definition at line 37 of file GEMHitAssociator.h.
GEMHitAssociator::GEMHitAssociator | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | ic | ||
) |
Definition at line 6 of file GEMHitAssociator.cc.
References crossingframe, GEMdigisimlinkTag, GEMdigisimlinkToken_, GEMsimhitsTag, GEMsimhitsToken_, GEMsimhitsXFTag, GEMsimhitsXFToken_, and edm::InputTag::label().
GEMHitAssociator::GEMHitAssociator | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup, | ||
const edm::ParameterSet & | conf | ||
) |
Definition at line 22 of file GEMHitAssociator.cc.
References initEvent().
|
inline |
std::vector< GEMHitAssociator::SimHitIdpr > GEMHitAssociator::associateRecHit | ( | const GEMRecHit * | gemrechit | ) | const |
Definition at line 70 of file GEMHitAssociator.cc.
References GEMRecHit::clusterSize(), edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), GEMRecHit::firstClusterStrip(), GEMRecHit::gemId(), mps_fire::i, electrons_cff::matched, theDigiSimLinks, and useGEMs_.
Referenced by MuonAssociatorByHitsHelper::getMatchedIds(), and ~GEMHitAssociator().
void GEMHitAssociator::initEvent | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
Definition at line 34 of file GEMHitAssociator.cc.
References _SimHitMap, crossingframe, TTClusterAssociation_cfi::digiSimLinks, GEMdigisimlinkTag, GEMsimhitsTag, GEMsimhitsXFTag, edm::Event::getByLabel(), edm::InputTag::label(), LogTrace, edm::Handle< T >::product(), theDigiSimLinks, and useGEMs_.
Referenced by GEMHitAssociator().
|
private |
Definition at line 63 of file GEMHitAssociator.h.
Referenced by initEvent().
|
private |
Definition at line 54 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator(), and initEvent().
|
private |
Definition at line 52 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator(), and initEvent().
|
private |
Definition at line 61 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator().
|
private |
Definition at line 56 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator(), and initEvent().
|
private |
Definition at line 60 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator().
|
private |
Definition at line 57 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator(), and initEvent().
|
private |
Definition at line 59 of file GEMHitAssociator.h.
Referenced by GEMHitAssociator().
|
private |
Definition at line 51 of file GEMHitAssociator.h.
Referenced by associateRecHit(), and initEvent().
|
private |
Definition at line 55 of file GEMHitAssociator.h.
Referenced by associateRecHit(), and initEvent().