#include <TrackerHitAssociator.h>
Classes | |
struct | Config |
Public Types | |
typedef std::map< subDetTofBin, unsigned int > | simhit_collectionMap |
typedef std::map< unsigned int, std::vector< PSimHit > > | simhit_map |
typedef std::pair< unsigned int, unsigned int > | simhitAddr |
typedef unsigned int | simHitCollectionID |
typedef std::pair< unsigned int, unsigned int > | subDetTofBin |
Public Member Functions | |
void | associateCluster (const SiStripCluster *clust, const DetId &detid, std::vector< SimHitIdpr > &simtrackid, std::vector< PSimHit > &simhit) const |
std::vector< SimHitIdpr > | associateFastRecHit (const FastTrackerRecHit *rechit) 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=nullptr) const |
std::vector< SimHitIdpr > | associateMatchedRecHit (const SiStripMatchedRecHit2D *matchedrechit, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
std::vector< PSimHit > | associateMultiRecHit (const SiTrackerMultiRecHit *multirechit) const |
std::vector< SimHitIdpr > | associateMultiRecHitId (const SiTrackerMultiRecHit *multirechit, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
void | associatePhase2TrackerRecHit (const Phase2TrackerRecHit1D *rechit, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
void | associatePixelRecHit (const SiPixelRecHit *pixelrechit, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
std::vector< SimHitIdpr > | associateProjectedRecHit (const ProjectedSiStripRecHit2D *projectedrechit, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
void | associateSimpleRecHitCluster (const SiStripCluster *clust, const DetId &detid, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
template<typename T > | |
void | associateSiStripRecHit (const T *simplerechit, std::vector< SimHitIdpr > &simtrackid, std::vector< simhitAddr > *simhitCFPos=nullptr) const |
TrackerHitAssociator (const edm::Event &e, const Config &config) | |
virtual | ~TrackerHitAssociator () |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &descriptions) |
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 Config &config) |
std::string | printDetBnchEvtTrk (const DetId &detid, const uint32_t &detID, std::vector< SimHitIdpr > &simtrackid) const |
Private Attributes | |
bool | assocHitbySimTrack_ |
bool | doPixel_ |
bool | doStrip_ |
bool | doTrackAssoc_ |
edm::Handle< edm::DetSetVector< PixelDigiSimLink > > | ph2trackerdigisimlink |
edm::Handle< edm::DetSetVector< PixelDigiSimLink > > | pixeldigisimlink |
edm::Handle< edm::DetSetVector< StripDigiSimLink > > | stripdigisimlink |
bool | useOTph2_ |
Definition at line 53 of file TrackerHitAssociator.h.
typedef std::map<subDetTofBin, unsigned int> TrackerHitAssociator::simhit_collectionMap |
Definition at line 117 of file TrackerHitAssociator.h.
typedef std::map<unsigned int, std::vector<PSimHit> > TrackerHitAssociator::simhit_map |
Definition at line 115 of file TrackerHitAssociator.h.
typedef std::pair<unsigned int, unsigned int> TrackerHitAssociator::simhitAddr |
Definition at line 74 of file TrackerHitAssociator.h.
typedef unsigned int TrackerHitAssociator::simHitCollectionID |
Definition at line 75 of file TrackerHitAssociator.h.
typedef std::pair<unsigned int, unsigned int> TrackerHitAssociator::subDetTofBin |
Definition at line 74 of file TrackerHitAssociator.h.
|
private |
Definition at line 121 of file TrackerHitAssociator.h.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::Event & | e, |
const Config & | config | ||
) |
Definition at line 116 of file TrackerHitAssociator.cc.
References doPixel_, doStrip_, doTrackAssoc_, MillePedeFileConverter_cfg::e, makeMaps(), ph2trackerdigisimlink, pixeldigisimlink, stripdigisimlink, and useOTph2_.
|
inlinevirtual |
Definition at line 70 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 399 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster(), LogDebug, and SimHitMap.
std::vector< SimHitIdpr > TrackerHitAssociator::associateFastRecHit | ( | const FastTrackerRecHit * | rechit | ) | const |
Definition at line 669 of file TrackerHitAssociator.cc.
References FastTrackerRecHit::nSimTrackIds(), FastTrackerRecHit::simTrackEventId(), and FastTrackerRecHit::simTrackId().
Referenced by associateHitId().
std::vector< PSimHit > TrackerHitAssociator::associateHit | ( | const TrackingRecHit & | thit | ) | const |
Check if it's the gluedDet.
Definition at line 225 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, associateHitId(), associateMultiRecHit(), EncodedEventId::bunchCrossing(), PSimHit::detUnitId(), doTrackAssoc_, mps_fire::end, EncodedEventId::event(), PSimHit::eventId(), dqmdumpme::first, TrackingRecHit::geographicalId(), LogDebug, printDetBnchEvtTrk(), PSimHit::processType(), DetId::rawId(), mps_fire::result, edm::second(), SimHitMap, and PSimHit::trackId().
Referenced by CkfDebugger::analyseCompatibleMeasurements(), SiPixelPhase1RecHitsV::analyze(), SiPixelRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), CkfDebugger::associated(), associateMultiRecHit(), PixelClusterShapeExtractor::checkSimHits(), 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 345 of file TrackerHitAssociator.cc.
Referenced by associateHit(), associateMultiRecHitId(), CkfDebugger::assocTrackId(), CkfDebugger::correctMeas(), CkfDebugger::correctTrajectory(), Phase2ITValidateRecHit::fillITHistos(), Phase2ITValidateTrackingRecHit::fillITHistos(), Phase2OTValidateRecHit::fillOTHistos(), Phase2OTValidateTrackingRecHit::fillOTHistos(), and MuonAssociatorByHitsHelper::getMatchedIds().
void TrackerHitAssociator::associateHitId | ( | const TrackingRecHit & | thit, |
std::vector< SimHitIdpr > & | simhitid, | ||
std::vector< simhitAddr > * | simhitCFPos = nullptr |
||
) | const |
Definition at line 351 of file TrackerHitAssociator.cc.
References associateFastRecHit(), associateMatchedRecHit(), associateMultiRecHitId(), associatePhase2TrackerRecHit(), associatePixelRecHit(), associateProjectedRecHit(), associateSiStripRecHit(), and trackerHitRTTI::isFast().
std::vector< SimHitIdpr > TrackerHitAssociator::associateMatchedRecHit | ( | const SiStripMatchedRecHit2D * | matchedrechit, |
std::vector< simhitAddr > * | simhitCFPos = nullptr |
||
) | const |
Definition at line 484 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 640 of file TrackerHitAssociator.cc.
References associateHit(), mps_fire::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 = nullptr |
||
) | const |
Definition at line 653 of file TrackerHitAssociator.cc.
References associateHitId(), mps_fire::i, SiTrackerMultiRecHit::recHits(), findQualityFiles::size, SiTrackerMultiRecHit::weight(), and SiTrackerMultiRecHit::weights().
Referenced by associateHitId().
void TrackerHitAssociator::associatePhase2TrackerRecHit | ( | const Phase2TrackerRecHit1D * | rechit, |
std::vector< SimHitIdpr > & | simtrackid, | ||
std::vector< simhitAddr > * | simhitCFPos = nullptr |
||
) | const |
Definition at line 522 of file TrackerHitAssociator.cc.
References Phase2TrackerDigi::channelToPixel(), Phase2TrackerRecHit1D::cluster(), edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), edm::Ref< C, T, F >::isNull(), LogDebug, ph2trackerdigisimlink, DetId::rawId(), SimHitCollMap, and DetId::subdetId().
Referenced by associateHitId().
void TrackerHitAssociator::associatePixelRecHit | ( | const SiPixelRecHit * | pixelrechit, |
std::vector< SimHitIdpr > & | simtrackid, | ||
std::vector< simhitAddr > * | simhitCFPos = nullptr |
||
) | const |
Definition at line 579 of file TrackerHitAssociator.cc.
References PixelDigi::channelToPixel(), SiPixelRecHit::cluster(), edm::DetSetVector< T >::end(), spr::find(), edm::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), edm::Ref< C, T, F >::isNull(), LogDebug, pixeldigisimlink, DetId::rawId(), SimHitCollMap, and DetId::subdetId().
Referenced by associateHitId().
std::vector< SimHitIdpr > TrackerHitAssociator::associateProjectedRecHit | ( | const ProjectedSiStripRecHit2D * | projectedrechit, |
std::vector< simhitAddr > * | simhitCFPos = nullptr |
||
) | const |
Definition at line 511 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 = nullptr |
||
) | const |
Definition at line 424 of file TrackerHitAssociator.cc.
References SiStripCluster::amplitudes(), spr::find(), dqmdumpme::first, SiStripCluster::firstStrip(), createfilelist::int, dqmdumpme::last, LogDebug, DetId::rawId(), SimHitCollMap, SiStripCluster::size(), stripdigisimlink, and DetId::subdetId().
Referenced by associateCluster(), and associateSiStripRecHit().
|
inline |
Definition at line 389 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster().
Referenced by associateHitId(), associateMatchedRecHit(), and associateProjectedRecHit().
|
static |
Definition at line 99 of file TrackerHitAssociator.cc.
References submitPVResolutionJobs::desc, and HLT_2022v15_cff::InputTag.
Referenced by OverlapValidation::fillDescriptions().
|
private |
Definition at line 137 of file TrackerHitAssociator.cc.
References assocHitbySimTrack_, edm::Event::getByToken(), StripDigiSimLink::HighTof, SummaryClient_cfi::labels, edm::Event::labelsForToken(), LogDebug, StripDigiSimLink::LowTof, edm::Handle< T >::product(), SimHitCollMap, SimHitMap, FastTrackerRecHitCombiner_cfi::simHits, and SiPixelPhase1TrackingParticleV_cfi::simHitToken.
Referenced by TrackerHitAssociator().
|
inlineprivate |
Definition at line 679 of file TrackerHitAssociator.cc.
References mps_fire::i, edm::second(), and DetId::subdetId().
Referenced by associateHit().
|
private |
Definition at line 130 of file TrackerHitAssociator.h.
Referenced by associateHit(), and makeMaps().
|
private |
Definition at line 130 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 130 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 130 of file TrackerHitAssociator.h.
Referenced by associateHit(), and TrackerHitAssociator().
|
private |
Definition at line 129 of file TrackerHitAssociator.h.
Referenced by associatePhase2TrackerRecHit(), and TrackerHitAssociator().
|
private |
Definition at line 128 of file TrackerHitAssociator.h.
Referenced by associatePixelRecHit(), and TrackerHitAssociator().
simhit_collectionMap TrackerHitAssociator::SimHitCollMap |
Definition at line 118 of file TrackerHitAssociator.h.
Referenced by associatePhase2TrackerRecHit(), associatePixelRecHit(), associateSimpleRecHitCluster(), and makeMaps().
simhit_map TrackerHitAssociator::SimHitMap |
Definition at line 116 of file TrackerHitAssociator.h.
Referenced by associateCluster(), associateHit(), CkfDebugger::hasDelta(), makeMaps(), and CkfDebugger::printSimHits().
|
private |
Definition at line 127 of file TrackerHitAssociator.h.
Referenced by associateSimpleRecHitCluster(), and TrackerHitAssociator().
|
private |
Definition at line 130 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().