#include <TrackAssociatorByHits.h>
Public Types | |
enum | SimToRecoDenomType { denomnone, denomsim, denomreco } |
Private Member Functions | |
const TrackingRecHit * | getHitPtr (edm::OwnVector< TrackingRecHit >::const_iterator iter) const |
const TrackingRecHit * | getHitPtr (trackingRecHit_iterator iter) const |
int | LayerFromDetid (const DetId &) const |
Private Attributes | |
const bool | AbsoluteNumberOfHits |
const edm::ParameterSet & | conf_ |
const double | cut_RecoToSim |
const double | purity_SimToReco |
const double | quality_SimToReco |
SimToRecoDenomType | SimToRecoDenominator |
const bool | ThreeHitTracksAreSpecial |
const bool | UseGrouped |
const bool | UsePixels |
const bool | UseSplitting |
Definition at line 21 of file TrackAssociatorByHits.h.
Enumerator | |
---|---|
denomnone | |
denomsim | |
denomreco |
Definition at line 25 of file TrackAssociatorByHits.h.
|
explicit |
Definition at line 38 of file TrackAssociatorByHits.cc.
References conf_, denomnone, denomreco, denomsim, edm::hlt::Exception, edm::ParameterSet::getParameter(), SimToRecoDenominator, and tmp.
TrackAssociatorByHits::~TrackAssociatorByHits | ( | ) |
Definition at line 65 of file TrackAssociatorByHits.cc.
|
virtual |
Association Reco To Sim with Collections.
Implements TrackAssociatorBase.
Definition at line 75 of file TrackAssociatorByHits.cc.
References abs, AbsoluteNumberOfHits, edm::RefToBaseVector< T >::begin(), conf_, cut_RecoToSim, edm::RefToBaseVector< T >::end(), getShared(), edm::AssociationMap< Tag >::insert(), edm::AssociationMap< Tag >::post_insert(), edm::RefVector< C, T, F >::product(), edm::RefVector< C, T, F >::size(), lumiQTWidget::t, and ThreeHitTracksAreSpecial.
|
inlinevirtual |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented from TrackAssociatorBase.
Definition at line 44 of file TrackAssociatorByHits.h.
References TrackAssociatorBase::associateRecoToSim(), event(), and HcalObjRepresent::setup().
RecoToSimCollectionSeed TrackAssociatorByHits::associateRecoToSim | ( | edm::Handle< edm::View< TrajectorySeed > > & | seedCollectionH, |
edm::Handle< TrackingParticleCollection > & | TPCollectionH, | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const |
Definition at line 332 of file TrackAssociatorByHits.cc.
References abs, AbsoluteNumberOfHits, edm::View< T >::begin(), conf_, cut_RecoToSim, edm::View< T >::end(), getShared(), edm::AssociationMap< Tag >::insert(), LogTrace, edm::AssociationMap< Tag >::post_insert(), edm::Handle< T >::product(), edm::AssociationMap< Tag >::size(), lumiQTWidget::t, and ThreeHitTracksAreSpecial.
|
virtual |
Association Sim To Reco with Collections.
Implements TrackAssociatorBase.
Definition at line 153 of file TrackAssociatorByHits.cc.
References AbsoluteNumberOfHits, edm::RefToBaseVector< T >::begin(), conf_, denomreco, denomsim, edm::RefToBaseVector< T >::end(), getShared(), edm::AssociationMap< Tag >::insert(), LayerFromDetid(), SiStripDetId::partnerDetId(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::AssociationMap< Tag >::post_insert(), edm::RefVector< C, T, F >::product(), purity_SimToReco, quality_SimToReco, DetId::rawId(), SimToRecoDenominator, edm::RefVector< C, T, F >::size(), DetId::subdetId(), lumiQTWidget::t, SiStripDetId::TEC, ThreeHitTracksAreSpecial, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, DetId::Tracker, UseGrouped, UsePixels, and UseSplitting.
|
inlinevirtual |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented from TrackAssociatorBase.
Definition at line 52 of file TrackAssociatorByHits.h.
References TrackAssociatorBase::associateSimToReco(), event(), and HcalObjRepresent::setup().
SimToRecoCollectionSeed TrackAssociatorByHits::associateSimToReco | ( | edm::Handle< edm::View< TrajectorySeed > > & | seedCollectionH, |
edm::Handle< TrackingParticleCollection > & | TPCollectionH, | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const |
Definition at line 401 of file TrackAssociatorByHits.cc.
References AbsoluteNumberOfHits, edm::View< T >::begin(), conf_, edm::View< T >::end(), getShared(), edm::AssociationMap< Tag >::insert(), LogTrace, edm::AssociationMap< Tag >::post_insert(), edm::Handle< T >::product(), quality_SimToReco, edm::AssociationMap< Tag >::size(), lumiQTWidget::t, ThreeHitTracksAreSpecial, and DetId::Tracker.
int TrackAssociatorByHits::getDoubleCount | ( | iter | begin, |
iter | end, | ||
TrackerHitAssociator * | associate, | ||
TrackingParticleCollection::const_iterator | t | ||
) | const |
Definition at line 546 of file TrackAssociatorByHits.cc.
References TrackerHitAssociator::associateHitId(), end, spr::find(), and getHitPtr().
|
inlineprivate |
Definition at line 98 of file TrackAssociatorByHits.h.
Referenced by getDoubleCount(), and getMatchedIds().
|
inlineprivate |
Definition at line 99 of file TrackAssociatorByHits.h.
void TrackAssociatorByHits::getMatchedIds | ( | std::vector< SimHitIdpr > & | matchedIds, |
std::vector< SimHitIdpr > & | SimTrackIds, | ||
int & | ri, | ||
iter | begin, | ||
iter | end, | ||
TrackerHitAssociator * | associate | ||
) | const |
Definition at line 463 of file TrackAssociatorByHits.cc.
References TrackerHitAssociator::associateHitId(), end, TrackingRecHit::geographicalId(), getHitPtr(), TrackingRecHit::isValid(), j, LogTrace, and DetId::rawId().
int TrackAssociatorByHits::getShared | ( | std::vector< SimHitIdpr > & | matchedIds, |
std::vector< SimHitIdpr > & | idcachev, | ||
TrackingParticleCollection::const_iterator | t | ||
) | const |
Definition at line 511 of file TrackAssociatorByHits.cc.
References prof2calltree::count, spr::find(), and j.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 291 of file TrackAssociatorByHits.cc.
References PXFDetId::disk(), PXBDetId::layer(), TOBDetId::layer(), TIBDetId::layer(), align::tib::layerNumber(), LogTrace, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::rawId(), DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, TIDDetId::wheel(), and TECDetId::wheel().
Referenced by associateSimToReco().
|
private |
Definition at line 87 of file TrackAssociatorByHits.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 86 of file TrackAssociatorByHits.h.
Referenced by associateRecoToSim(), associateSimToReco(), and TrackAssociatorByHits().
|
private |
Definition at line 91 of file TrackAssociatorByHits.h.
Referenced by associateRecoToSim().
|
private |
Definition at line 90 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco().
|
private |
Definition at line 89 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco().
|
private |
Definition at line 88 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco(), and TrackAssociatorByHits().
|
private |
Definition at line 95 of file TrackAssociatorByHits.h.
Referenced by associateRecoToSim(), and associateSimToReco().
|
private |
Definition at line 93 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco().
|
private |
Definition at line 92 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco().
|
private |
Definition at line 94 of file TrackAssociatorByHits.h.
Referenced by associateSimToReco().