#include <TrackerHitAssociator.h>
Public Types | |
typedef std::map< unsigned int, std::vector< PSimHit > > | simhit_map |
typedef simhit_map::iterator | simhit_map_iterator |
Public Member Functions | |
std::vector< SimHitIdpr > | associateGSMatchedRecHit (const SiTrackerGSMatchedRecHit2D *gsmrechit) |
std::vector< SimHitIdpr > | associateGSRecHit (const SiTrackerGSRecHit2D *gsrechit) |
std::vector< PSimHit > | associateHit (const TrackingRecHit &thit) |
std::vector< SimHitIdpr > | associateHitId (const TrackingRecHit &thit) |
void | associateHitId (const TrackingRecHit &thit, std::vector< SimHitIdpr > &simhitid) |
std::vector< SimHitIdpr > | associateMatchedRecHit (const SiStripMatchedRecHit2D *matchedrechit) |
std::vector< PSimHit > | associateMultiRecHit (const SiTrackerMultiRecHit *multirechit) |
std::vector< SimHitIdpr > | associateMultiRecHitId (const SiTrackerMultiRecHit *multirechit) |
void | associatePixelRecHit (const SiPixelRecHit *pixelrechit, std::vector< SimHitIdpr > &simhitid) |
std::vector< SimHitIdpr > | associateProjectedRecHit (const ProjectedSiStripRecHit2D *projectedrechit) |
void | associateSimpleRecHit (const SiStripRecHit2D *simplerechit, std::vector< SimHitIdpr > &simhitid) |
void | associateSimpleRecHitCluster (const SiStripCluster *clust, const uint32_t &detID, std::vector< SimHitIdpr > &simtrackid) |
void | associateSiStripRecHit1D (const SiStripRecHit1D *simplerechit, std::vector< SimHitIdpr > &simhitid) |
TrackerHitAssociator (const edm::Event &e) | |
TrackerHitAssociator (const edm::Event &e, const edm::ParameterSet &conf) | |
virtual | ~TrackerHitAssociator () |
Public Attributes | |
simhit_map | SimHitMap |
simhit_map | SimHitSubdetMap |
std::vector< PSimHit > | thePixelHits |
std::vector< PSimHit > | theStripHits |
Private Types | |
typedef std::vector< std::string > | vstring |
Private Attributes | |
edm::Handle< CrossingFrame < PSimHit > > | cf_simhit |
std::vector< const CrossingFrame< PSimHit > * > | cf_simhitvec |
bool | doPixel_ |
bool | doStrip_ |
bool | doTrackAssoc_ |
const edm::Event & | myEvent_ |
edm::Handle< edm::DetSetVector < PixelDigiSimLink > > | pixeldigisimlink |
std::vector< PSimHit > | simhitassoc |
std::vector< int > | simhitCFPos |
std::vector< SimHitIdpr > | simtrackid |
edm::Handle< edm::DetSetVector < StripDigiSimLink > > | stripdigisimlink |
bool | StripHits |
vstring | trackerContainers |
bool | useCFpos_ |
Definition at line 54 of file TrackerHitAssociator.h.
typedef std::map<unsigned int, std::vector<PSimHit> > TrackerHitAssociator::simhit_map |
Definition at line 100 of file TrackerHitAssociator.h.
typedef simhit_map::iterator TrackerHitAssociator::simhit_map_iterator |
Definition at line 101 of file TrackerHitAssociator.h.
|
private |
Definition at line 108 of file TrackerHitAssociator.h.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::Event & | e | ) |
Definition at line 26 of file TrackerHitAssociator.cc.
References cf_simhit, cf_simhitvec, doPixel_, doStrip_, edm::Event::getByLabel(), i, pixeldigisimlink, edm::Handle< T >::product(), SimHitMap, SimHitSubdetMap, stripdigisimlink, trackerContainers, and useCFpos_.
TrackerHitAssociator::TrackerHitAssociator | ( | const edm::Event & | e, |
const edm::ParameterSet & | conf | ||
) |
Definition at line 83 of file TrackerHitAssociator.cc.
References cf_simhit, cf_simhitvec, doPixel_, doStrip_, doTrackAssoc_, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), i, pixeldigisimlink, edm::Handle< T >::product(), SimHitMap, SimHitSubdetMap, stripdigisimlink, trackerContainers, and useCFpos_.
|
inlinevirtual |
Definition at line 63 of file TrackerHitAssociator.h.
std::vector< SimHitIdpr > TrackerHitAssociator::associateGSMatchedRecHit | ( | const SiTrackerGSMatchedRecHit2D * | gsmrechit | ) |
Definition at line 726 of file TrackerHitAssociator.cc.
References SiTrackerGSMatchedRecHit2D::eeId(), SiTrackerGSMatchedRecHit2D::simtrackId(), simtrackid, and StripHits.
Referenced by associateHit(), and associateHitId().
std::vector< SimHitIdpr > TrackerHitAssociator::associateGSRecHit | ( | const SiTrackerGSRecHit2D * | gsrechit | ) |
Definition at line 688 of file TrackerHitAssociator.cc.
References SiTrackerGSRecHit2D::eeId(), SiTrackerGSRecHit2D::simtrackId(), simtrackid, and StripHits.
Referenced by associateHit(), and associateHitId().
std::vector< PSimHit > TrackerHitAssociator::associateHit | ( | const TrackingRecHit & | thit | ) |
Check if it's the gluedDet
Definition at line 132 of file TrackerHitAssociator.cc.
References associateGSMatchedRecHit(), associateGSRecHit(), associateMatchedRecHit(), associateMultiRecHit(), associatePixelRecHit(), associateProjectedRecHit(), associateSimpleRecHit(), associateSiStripRecHit1D(), begin, gather_cfg::cout, cond::rpcobgas::detid, end, PSimHit::eventId(), first, TrackingRecHit::geographicalId(), i, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::rawId(), query::result, edm::second(), simhitCFPos, SimHitMap, SimHitSubdetMap, simtrackid, StripHits, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, PSimHit::trackId(), and useCFpos_.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), SiPixelRecHitsValid::analyze(), SiStripRecHitsValid::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), SiPixelErrorEstimation::analyze(), SiStripTrackingRecHitsValid::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), CkfDebugger::associated(), associateMultiRecHit(), CkfDebugger::correctTrajectory(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), spr::matchedSimTrack(), CkfDebugger::nextCorrectHits(), and CkfDebugger::testSeed().
std::vector< SimHitIdpr > TrackerHitAssociator::associateHitId | ( | const TrackingRecHit & | thit | ) |
Definition at line 309 of file TrackerHitAssociator.cc.
Referenced by TestTrackHits::analyze(), TestOutliers::analyze(), associateHitId(), associateMultiRecHitId(), CkfDebugger::assocTrackId(), CkfDebugger::correctMeas(), CkfDebugger::correctTrajectory(), QuickTrackAssociatorByHits::getAllSimTrackIdentifiers(), QuickTrackAssociatorByHits::getDoubleCount(), TrackAssociatorByHits::getDoubleCount(), MuonAssociatorByHits::getMatchedIds(), and TrackAssociatorByHits::getMatchedIds().
void TrackerHitAssociator::associateHitId | ( | const TrackingRecHit & | thit, |
std::vector< SimHitIdpr > & | simhitid | ||
) |
Definition at line 316 of file TrackerHitAssociator.cc.
References associateGSMatchedRecHit(), associateGSRecHit(), associateHitId(), associateMatchedRecHit(), associateMultiRecHitId(), associatePixelRecHit(), associateProjectedRecHit(), associateSimpleRecHit(), associateSiStripRecHit1D(), cond::rpcobgas::detid, TrackingRecHit::geographicalId(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, simhitCFPos, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
std::vector< SimHitIdpr > TrackerHitAssociator::associateMatchedRecHit | ( | const SiStripMatchedRecHit2D * | matchedrechit | ) |
Definition at line 572 of file TrackerHitAssociator.cc.
References associateSimpleRecHit(), spr::find(), simtrackid, and StripHits.
Referenced by associateHit(), and associateHitId().
std::vector< PSimHit > TrackerHitAssociator::associateMultiRecHit | ( | const SiTrackerMultiRecHit * | multirechit | ) |
Definition at line 700 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 | ) |
Definition at line 715 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 | ||
) |
Definition at line 627 of file TrackerHitAssociator.cc.
References PixelDigi::channelToPixel(), edm::DetSet< T >::data, cond::rpcobgas::detid, spr::find(), pixeldigisimlink, DetId::rawId(), and StripHits.
Referenced by associateHit(), and associateHitId().
std::vector< SimHitIdpr > TrackerHitAssociator::associateProjectedRecHit | ( | const ProjectedSiStripRecHit2D * | projectedrechit | ) |
Definition at line 611 of file TrackerHitAssociator.cc.
References associateSimpleRecHit(), ProjectedSiStripRecHit2D::originalHit(), and StripHits.
Referenced by associateHit(), and associateHitId().
void TrackerHitAssociator::associateSimpleRecHit | ( | const SiStripRecHit2D * | simplerechit, |
std::vector< SimHitIdpr > & | simhitid | ||
) |
Definition at line 396 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster(), SiStripCluster::geographicalId(), and simtrackid.
Referenced by associateHit(), associateHitId(), associateMatchedRecHit(), and associateProjectedRecHit().
void TrackerHitAssociator::associateSimpleRecHitCluster | ( | const SiStripCluster * | clust, |
const uint32_t & | detID, | ||
std::vector< SimHitIdpr > & | simtrackid | ||
) |
Definition at line 481 of file TrackerHitAssociator.cc.
References SiStripCluster::amplitudes(), edm::DetSet< T >::data, spr::find(), first, SiStripCluster::firstStrip(), prof2calltree::last, simhitCFPos, stripdigisimlink, StripHits, and useCFpos_.
Referenced by associateSimpleRecHit(), associateSiStripRecHit1D(), and TrackClusterSplitter::splitCluster().
void TrackerHitAssociator::associateSiStripRecHit1D | ( | const SiStripRecHit1D * | simplerechit, |
std::vector< SimHitIdpr > & | simhitid | ||
) |
Definition at line 413 of file TrackerHitAssociator.cc.
References associateSimpleRecHitCluster(), SiStripCluster::geographicalId(), and simtrackid.
Referenced by associateHit(), and associateHitId().
|
private |
Definition at line 112 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 113 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 126 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 126 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 126 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 107 of file TrackerHitAssociator.h.
|
private |
Definition at line 117 of file TrackerHitAssociator.h.
Referenced by associatePixelRecHit(), and TrackerHitAssociator().
|
private |
Definition at line 123 of file TrackerHitAssociator.h.
|
private |
Definition at line 122 of file TrackerHitAssociator.h.
Referenced by associateHit(), associateHitId(), and associateSimpleRecHitCluster().
simhit_map TrackerHitAssociator::SimHitMap |
Definition at line 102 of file TrackerHitAssociator.h.
Referenced by associateHit(), CkfDebugger::hasDelta(), CkfDebugger::printSimHits(), and TrackerHitAssociator().
simhit_map TrackerHitAssociator::SimHitSubdetMap |
Definition at line 103 of file TrackerHitAssociator.h.
Referenced by associateHit(), and TrackerHitAssociator().
|
private |
Definition at line 120 of file TrackerHitAssociator.h.
Referenced by associateGSMatchedRecHit(), associateGSRecHit(), associateHit(), associateMatchedRecHit(), associateSimpleRecHit(), and associateSiStripRecHit1D().
|
private |
Definition at line 116 of file TrackerHitAssociator.h.
Referenced by associateSimpleRecHitCluster(), and TrackerHitAssociator().
|
private |
Definition at line 124 of file TrackerHitAssociator.h.
Referenced by associateGSMatchedRecHit(), associateGSRecHit(), associateHit(), associateMatchedRecHit(), associatePixelRecHit(), associateProjectedRecHit(), and associateSimpleRecHitCluster().
std::vector<PSimHit> TrackerHitAssociator::thePixelHits |
Definition at line 104 of file TrackerHitAssociator.h.
std::vector<PSimHit> TrackerHitAssociator::theStripHits |
Definition at line 99 of file TrackerHitAssociator.h.
|
private |
Definition at line 109 of file TrackerHitAssociator.h.
Referenced by TrackerHitAssociator().
|
private |
Definition at line 127 of file TrackerHitAssociator.h.
Referenced by associateHit(), associateSimpleRecHitCluster(), and TrackerHitAssociator().