#include <TrackerHitAssociator.h>
Public Types | |
typedef std::map < simHitCollectionID, std::vector< PSimHit > > | simhit_collectionMap |
typedef std::map< unsigned int, std::vector< PSimHit > > | simhit_map |
typedef std::pair < simHitCollectionID, unsigned int > | simhitAddr |
typedef std::pair< unsigned int, unsigned int > | simHitCollectionID |
Public Member Functions | |
void | associateCluster (const SiStripCluster *clust, const DetId &detid, std::vector< SimHitIdpr > &simtrackid, std::vector< PSimHit > &simhit) const |
std::vector< SimHitIdpr > | associateGSMatchedRecHit (const SiTrackerGSMatchedRecHit2D *gsmrechit) const |
std::vector< SimHitIdpr > | associateGSRecHit (const SiTrackerGSRecHit2D *gsrechit) const |
std::vector< PSimHit > | associateHit (const TrackingRecHit &thit) const |
std::vector< SimHitIdpr > | associateHitId (const TrackingRecHit &thit) const |
void | associateHitId (const TrackingRecHit &thit, std::vector< SimHitIdpr > &simhitid, std::vector< simhitAddr > *simhitCFPos=0) const |
std::vector< SimHitIdpr > | associateMatchedRecHit (const SiStripMatchedRecHit2D *matchedrechit, std::vector< simhitAddr > *simhitCFPos=0) const |
std::vector< PSimHit > | associateMultiRecHit (const SiTrackerMultiRecHit *multirechit) const |
std::vector< SimHitIdpr > | associateMultiRecHitId (const SiTrackerMultiRecHit *multirechit, std::vector< simhitAddr > *simhitCFPos=0) const |
void | associatePixelRecHit (const SiPixelRecHit *pixelrechit, std::vector< SimHitIdpr > &simhitid, std::vector< simhitAddr > *simhitCFPos=0) const |
std::vector< SimHitIdpr > | associateProjectedRecHit (const ProjectedSiStripRecHit2D *projectedrechit, std::vector< simhitAddr > *simhitCFPos=0) const |
void | associateSimpleRecHitCluster (const SiStripCluster *clust, const DetId &detid, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=0) const |
template<typename T > | |
void | associateSiStripRecHit (const T *simplerechit, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=0) const |
TrackerHitAssociator (const edm::ParameterSet &conf, edm::ConsumesCollector &&iC) | |
TrackerHitAssociator (const edm::Event &e) | |
TrackerHitAssociator (const edm::Event &e, const edm::ParameterSet &conf) | |
virtual | ~TrackerHitAssociator () |
Public Attributes | |
simhit_collectionMap | SimHitCollMap |
simhit_map | SimHitMap |
Private Types | |
typedef std::vector< std::string > | vstring |
Private Member Functions | |
void | makeMaps (const edm::Event &theEvent, const vstring trackerContainers) |
Private Attributes | |
bool | assocHitbySimTrack_ |
bool | doPixel_ |
bool | doStrip_ |
bool | doTrackAssoc_ |
edm::Handle< edm::DetSetVector < PixelDigiSimLink > > | pixeldigisimlink |
edm::Handle< edm::DetSetVector < StripDigiSimLink > > | stripdigisimlink |
Definition at line 55 of file TrackerHitAssociator.h.
typedef std::map<simHitCollectionID, std::vector<PSimHit> > TrackerHitAssociator::simhit_collectionMap |
Definition at line 100 of file TrackerHitAssociator.h.
typedef std::map<unsigned int, std::vector<PSimHit> > TrackerHitAssociator::simhit_map |
Definition at line 98 of file TrackerHitAssociator.h.
typedef std::pair<simHitCollectionID, unsigned int> TrackerHitAssociator::simhitAddr |
Definition at line 71 of file TrackerHitAssociator.h.
typedef std::pair<unsigned int, unsigned int> TrackerHitAssociator::simHitCollectionID |
Definition at line 70 of file TrackerHitAssociator.h.
|
private |
Definition at line 104 of file TrackerHitAssociator.h.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 54 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, doPixel_, doStrip_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), and HLT_25ns14e33_v1_cff::InputTag.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::Event & | e | ) |
Definition at line 26 of file TrackerHitAssociator.cc.
References doPixel_, doStrip_, edm::Event::getByLabel(), makeMaps(), pixeldigisimlink, and stripdigisimlink.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::Event & | e, |
const edm::ParameterSet & | conf | ||
) |
Definition at line 68 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, doPixel_, doStrip_, doTrackAssoc_, edm::ParameterSet::existsAs(), edm::Event::getByLabel(), edm::ParameterSet::getParameter(), makeMaps(), pixeldigisimlink, and stripdigisimlink.
|
inlinevirtual |
Definition at line 68 of file TrackerHitAssociator.h.
void TrackerHitAssociator::associateCluster | ( | const SiStripCluster * | clust, |
const DetId & | detid, | ||
std::vector< SimHitIdpr > & | simtrackid, | ||
std::vector< PSimHit > & | simhit | ||
) | const |
Definition at line 345 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster(), i, and SimHitCollMap.
std::vector< SimHitIdpr > TrackerHitAssociator::associateGSMatchedRecHit | ( | const SiTrackerGSMatchedRecHit2D * | gsmrechit | ) | const |
Definition at line 595 of file TrackerHitAssociator.cc.
References SiTrackerGSMatchedRecHit2D::eeId(), and SiTrackerGSMatchedRecHit2D::simtrackId().
Referenced by associateHitId().
std::vector< SimHitIdpr > TrackerHitAssociator::associateGSRecHit | ( | const SiTrackerGSRecHit2D * | gsrechit | ) | const |
Definition at line 559 of file TrackerHitAssociator.cc.
References SiTrackerGSRecHit2D::eeId(), and SiTrackerGSRecHit2D::simtrackId().
Referenced by associateHitId().
std::vector< PSimHit > TrackerHitAssociator::associateHit | ( | const TrackingRecHit & | thit | ) | const |
Check if it's the gluedDet.
Definition at line 132 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, associateHitId(), associateMultiRecHit(), begin, cond::rpcobgas::detid, doTrackAssoc_, end, PSimHit::eventId(), plotBeamSpotDB::first, TrackingRecHit::geographicalId(), i, DetId::rawId(), query::result, edm::second(), SimHitCollMap, SimHitMap, and PSimHit::trackId().
Referenced by CkfDebugger::analyseCompatibleMeasurements(), SiPixelRecHitsValid::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), CkfDebugger::associated(), associateMultiRecHit(), CkfDebugger::correctTrajectory(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), spr::matchedSimTrack(), CkfDebugger::nextCorrectHits(), SiStripRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), and CkfDebugger::testSeed().
std::vector< SimHitIdpr > TrackerHitAssociator::associateHitId | ( | const TrackingRecHit & | thit | ) | const |
Definition at line 259 of file TrackerHitAssociator.cc.
Referenced by TestTrackHits::analyze(), TestOutliers::analyze(), associateHit(), associateMultiRecHitId(), CkfDebugger::assocTrackId(), CkfDebugger::correctMeas(), CkfDebugger::correctTrajectory(), QuickTrackAssociatorByHitsImpl::getAllSimTrackIdentifiers(), QuickTrackAssociatorByHits::getAllSimTrackIdentifiers(), TrackAssociatorByHitsImpl::getDoubleCount(), QuickTrackAssociatorByHitsImpl::getDoubleCount(), QuickTrackAssociatorByHits::getDoubleCount(), TrackAssociatorByHits::getDoubleCount(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackAssociatorByHitsImpl::getMatchedIds(), and TrackAssociatorByHits::getMatchedIds().
void TrackerHitAssociator::associateHitId | ( | const TrackingRecHit & | thit, |
std::vector< SimHitIdpr > & | simhitid, | ||
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 266 of file TrackerHitAssociator.cc.
References associateGSMatchedRecHit(), associateGSRecHit(), associateMatchedRecHit(), associateMultiRecHitId(), associatePixelRecHit(), associateProjectedRecHit(), associateSiStripRecHit(), cond::rpcobgas::detid, TrackingRecHit::geographicalId(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
std::vector< SimHitIdpr > TrackerHitAssociator::associateMatchedRecHit | ( | const SiStripMatchedRecHit2D * | matchedrechit, |
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 447 of file TrackerHitAssociator.cc.
References associateSiStripRecHit(), spr::find(), SiStripMatchedRecHit2D::monoHit(), and SiStripMatchedRecHit2D::stereoHit().
Referenced by associateHitId().
std::vector< PSimHit > TrackerHitAssociator::associateMultiRecHit | ( | const SiTrackerMultiRecHit * | multirechit | ) | const |
Definition at line 570 of file TrackerHitAssociator.cc.
References associateHit(), i, SiTrackerMultiRecHit::recHits(), findQualityFiles::size, SiTrackerMultiRecHit::weight(), and SiTrackerMultiRecHit::weights().
Referenced by associateHit().
std::vector< SimHitIdpr > TrackerHitAssociator::associateMultiRecHitId | ( | const SiTrackerMultiRecHit * | multirechit, |
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 582 of file TrackerHitAssociator.cc.
References associateHitId(), i, SiTrackerMultiRecHit::recHits(), findQualityFiles::size, SiTrackerMultiRecHit::weight(), and SiTrackerMultiRecHit::weights().
Referenced by associateHitId().
void TrackerHitAssociator::associatePixelRecHit | ( | const SiPixelRecHit * | pixelrechit, |
std::vector< SimHitIdpr > & | simhitid, | ||
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 490 of file TrackerHitAssociator.cc.
References PixelDigi::channelToPixel(), SiPixelRecHit::cluster(), edm::DetSet< T >::data, cond::rpcobgas::detid, spr::find(), TrackingRecHit::geographicalId(), edm::Ref< C, T, F >::isNull(), pixeldigisimlink, DetId::rawId(), and DetId::subdetId().
Referenced by associateHitId().
std::vector< SimHitIdpr > TrackerHitAssociator::associateProjectedRecHit | ( | const ProjectedSiStripRecHit2D * | projectedrechit, |
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 478 of file TrackerHitAssociator.cc.
References associateSiStripRecHit(), and ProjectedSiStripRecHit2D::originalHit().
Referenced by associateHitId().
void TrackerHitAssociator::associateSimpleRecHitCluster | ( | const SiStripCluster * | clust, |
const DetId & | detid, | ||
std::vector< SimHitIdpr > & | simtrackid, | ||
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 368 of file TrackerHitAssociator.cc.
References SiStripCluster::amplitudes(), edm::DetSet< T >::data, spr::find(), plotBeamSpotDB::first, SiStripCluster::firstStrip(), prof2calltree::last, DetId::rawId(), stripdigisimlink, and DetId::subdetId().
Referenced by associateCluster(), associateSiStripRecHit(), and TrackClusterSplitter::splitCluster().
void TrackerHitAssociator::associateSiStripRecHit | ( | const T * | simplerechit, |
std::vector< SimHitIdpr > & | simtrackid, | ||
std::vector< simhitAddr > * | simhitCFPos = 0 |
||
) | const |
Definition at line 336 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster().
Referenced by associateHitId(), associateMatchedRecHit(), and associateProjectedRecHit().
|
private |
Definition at line 84 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, edm::Event::getByLabel(), StripDigiSimLink::HighTof, StripDigiSimLink::LowTof, edm::Handle< T >::product(), SimHitCollMap, SimHitMap, trackerHits::simHits, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 111 of file TrackerHitAssociator.h.
Referenced by associateHit(), makeMaps(), and TrackerHitAssociator().
|
private |
Definition at line 111 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 111 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 111 of file TrackerHitAssociator.h.
Referenced by associateHit(), and TrackerHitAssociator().
|
private |
Definition at line 109 of file TrackerHitAssociator.h.
Referenced by associatePixelRecHit(), and TrackerHitAssociator().
simhit_collectionMap TrackerHitAssociator::SimHitCollMap |
Definition at line 101 of file TrackerHitAssociator.h.
Referenced by associateCluster(), associateHit(), and makeMaps().
simhit_map TrackerHitAssociator::SimHitMap |
Definition at line 99 of file TrackerHitAssociator.h.
Referenced by associateHit(), CkfDebugger::hasDelta(), makeMaps(), and CkfDebugger::printSimHits().
|
private |
Definition at line 108 of file TrackerHitAssociator.h.
Referenced by associateSimpleRecHitCluster(), and TrackerHitAssociator().