#include <DTHitAssociator.h>
Public Types | |
typedef std::map< DTWireId, std::vector< DTDigi > > | DigiMap |
typedef std::map< DTWireId, std::vector< DTDigiSimLink > > | LinksMap |
typedef std::pair< PSimHit, bool > | PSimHit_withFlag |
typedef std::map< DTWireId, std::vector< DTRecHit1DPair > > | RecHitMap |
typedef std::pair< uint32_t, EncodedEventId > | SimHitIdpr |
typedef std::map< DTWireId, std::vector< PSimHit_withFlag > > | SimHitMap |
Public Member Functions | |
std::vector< SimHitIdpr > | associateDTHitId (const DTRecHit1D *dtrechit) const |
std::vector< PSimHit > | associateHit (const TrackingRecHit &hit) const |
std::vector< SimHitIdpr > | associateHitId (const TrackingRecHit &hit) const |
DTHitAssociator (const edm::Event &, const edm::EventSetup &, const edm::ParameterSet &, bool printRtS) | |
DTHitAssociator (const edm::ParameterSet &, edm::ConsumesCollector &&iC) | |
void | initEvent (const edm::Event &, const edm::EventSetup &) |
virtual | ~DTHitAssociator () |
Public Attributes | |
DigiMap | mapOfDigi |
LinksMap | mapOfLinks |
RecHitMap | mapOfRecHit |
SimHitMap | mapOfSimHit |
Private Member Functions | |
bool | SimHitOK (const edm::ESHandle< DTGeometry > &, const PSimHit &) |
Private Attributes | |
bool | associatorByWire |
bool | crossingframe |
edm::InputTag | DTdigisimlinkTag |
edm::InputTag | DTdigiTag |
edm::InputTag | DTrechitTag |
edm::InputTag | DTsimhitsTag |
edm::InputTag | DTsimhitsXFTag |
bool | dumpDT |
bool | links_exist |
bool | printRtS |
Definition at line 22 of file DTHitAssociator.h.
typedef std::map<DTWireId, std::vector<DTDigi> > DTHitAssociator::DigiMap |
Definition at line 28 of file DTHitAssociator.h.
typedef std::map<DTWireId, std::vector<DTDigiSimLink> > DTHitAssociator::LinksMap |
Definition at line 29 of file DTHitAssociator.h.
typedef std::pair<PSimHit, bool> DTHitAssociator::PSimHit_withFlag |
Definition at line 25 of file DTHitAssociator.h.
typedef std::map<DTWireId, std::vector<DTRecHit1DPair> > DTHitAssociator::RecHitMap |
Definition at line 27 of file DTHitAssociator.h.
typedef std::pair<uint32_t, EncodedEventId> DTHitAssociator::SimHitIdpr |
Definition at line 24 of file DTHitAssociator.h.
typedef std::map<DTWireId, std::vector<PSimHit_withFlag> > DTHitAssociator::SimHitMap |
Definition at line 26 of file DTHitAssociator.h.
DTHitAssociator::DTHitAssociator | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const edm::ParameterSet & | conf, | ||
bool | printRtS | ||
) |
Definition at line 48 of file DTHitAssociator.cc.
References initEvent().
DTHitAssociator::DTHitAssociator | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 17 of file DTHitAssociator.cc.
References crossingframe, DTdigisimlinkTag, DTdigiTag, DTrechitTag, DTsimhitsTag, DTsimhitsXFTag, dumpDT, edm::InputTag::label(), and printRtS.
|
inlinevirtual |
Definition at line 36 of file DTHitAssociator.h.
References associateDTHitId(), associateHit(), and associateHitId().
std::vector< DTHitAssociator::SimHitIdpr > DTHitAssociator::associateDTHitId | ( | const DTRecHit1D * | dtrechit | ) | const |
Definition at line 289 of file DTHitAssociator.cc.
References associatorByWire, DTRecHit1D::digiTime(), PSimHit::eventId(), runEdmFileComparison::found, LogTrace, mapOfLinks, mapOfSimHit, electrons_cff::matched, PSimHit::trackId(), and DTRecHit1D::wireId().
Referenced by associateHit(), associateHitId(), MuonAssociatorByHitsHelper::getMatchedIds(), and ~DTHitAssociator().
std::vector< PSimHit > DTHitAssociator::associateHit | ( | const TrackingRecHit & | hit | ) | const |
Definition at line 358 of file DTHitAssociator.cc.
References associateDTHitId(), associatorByWire, runEdmFileComparison::found, LogTrace, mapOfSimHit, and DTRecHit1D::wireId().
Referenced by MuonAssociatorByHitsHelper::getMatchedIds(), and ~DTHitAssociator().
std::vector< DTHitAssociator::SimHitIdpr > DTHitAssociator::associateHitId | ( | const TrackingRecHit & | hit | ) | const |
Definition at line 275 of file DTHitAssociator.cc.
References associateDTHitId(), and LogTrace.
Referenced by ~DTHitAssociator().
void DTHitAssociator::initEvent | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 75 of file DTHitAssociator.cc.
References associatorByWire, begin, MuonDigiCollection< IndexType, DigiType >::begin(), EncodedEventId::bunchCrossing(), crossingframe, DTdigisimlinkTag, DTdigiTag, DTrechitTag, DTsimhitsTag, DTsimhitsXFTag, dumpDT, MuonDigiCollection< IndexType, DigiType >::end(), EncodedEventId::event(), PSimHit::eventId(), edm::EventSetup::get(), edm::Event::getByLabel(), edm::HandleBase::isValid(), edm::InputTag::label(), links_exist, LogTrace, mapOfDigi, mapOfLinks, mapOfRecHit, mapOfSimHit, PSimHit::particleType(), printRtS, PSimHit::processType(), edm::Handle< T >::product(), SimHitOK(), and PSimHit::trackId().
Referenced by DTHitAssociator().
|
private |
Definition at line 406 of file DTHitAssociator.cc.
References PSimHit::detUnitId(), PSimHit::entryPoint(), PSimHit::exitPoint(), DTGeometry::layer(), PSimHit::localPosition(), DTTopology::none, DTTopology::onWhichBorder(), mps_fire::result, DTTopology::wirePosition(), x, PV3DBase< T, PVType, FrameType >::x(), DTTopology::xMax, DTTopology::xMin, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by initEvent().
|
private |
Definition at line 58 of file DTHitAssociator.h.
Referenced by associateDTHitId(), associateHit(), and initEvent().
|
private |
Definition at line 56 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 52 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 51 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 53 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 49 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 50 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 55 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().
|
private |
Definition at line 57 of file DTHitAssociator.h.
Referenced by initEvent().
DigiMap DTHitAssociator::mapOfDigi |
Definition at line 45 of file DTHitAssociator.h.
Referenced by initEvent().
LinksMap DTHitAssociator::mapOfLinks |
Definition at line 46 of file DTHitAssociator.h.
Referenced by associateDTHitId(), and initEvent().
RecHitMap DTHitAssociator::mapOfRecHit |
Definition at line 44 of file DTHitAssociator.h.
Referenced by initEvent().
SimHitMap DTHitAssociator::mapOfSimHit |
Definition at line 43 of file DTHitAssociator.h.
Referenced by associateDTHitId(), associateHit(), and initEvent().
|
private |
Definition at line 61 of file DTHitAssociator.h.
Referenced by DTHitAssociator(), and initEvent().