#include <TrackDetectorAssociator.h>
Public Types | |
typedef TrackAssociatorParameters | AssociatorParameters |
enum | Direction { Any, InsideOut, OutsideIn } |
Static Public Member Functions | |
static bool | crossedIP (const reco::Track &track) |
static FreeTrajectoryState | getFreeTrajectoryState (const MagneticField *, const reco::Track &) |
get FreeTrajectoryState from different track representations More... | |
static FreeTrajectoryState | getFreeTrajectoryState (const MagneticField *, const SimTrack &, const SimVertex &) |
static FreeTrajectoryState | getFreeTrajectoryState (const MagneticField *, const GlobalVector &, const GlobalPoint &, const int) |
Private Attributes | |
CachedTrajectory | cachedTrajectory_ |
const DetIdAssociator * | caloDetIdAssociator_ |
std::unique_ptr< Propagator > | defProp_ |
const DetIdAssociator * | ecalDetIdAssociator_ |
const DetIdAssociator * | hcalDetIdAssociator_ |
const DetIdAssociator * | hoDetIdAssociator_ |
const Propagator * | ivProp_ |
const DetIdAssociator * | muonDetIdAssociator_ |
const DetIdAssociator * | preshowerDetIdAssociator_ |
const CaloGeometry * | theCaloGeometry_ |
edm::ESWatcher< IdealMagneticFieldRecord > | theMagneticFieldWatcher_ |
const GlobalTrackingGeometry * | theTrackingGeometry_ |
bool | useDefaultPropagator_ |
Definition at line 44 of file TrackDetectorAssociator.h.
Definition at line 49 of file TrackDetectorAssociator.h.
Enumerator | |
---|---|
Any | |
InsideOut | |
OutsideIn |
Definition at line 50 of file TrackDetectorAssociator.h.
|
explicit |
Definition at line 73 of file TrackDetectorAssociator.cc.
|
default |
|
private |
Definition at line 868 of file TrackDetectorAssociator.cc.
References funct::abs(), relativeConstraints::chamber, spr::deltaEta, reco::deltaPhi(), PV3DBase< T, PVType, FrameType >::eta(), f, TrajectoryStateOnSurface::freeState(), TrackingRecHit::geographicalId(), TAMuonSegmentMatch::hasPhi, DTRecSegment4D::hasPhi(), TAMuonSegmentMatch::hasZed, DTRecSegment4D::hasZed(), hfClusterShapes_cfi::hits, TAMuonChamberMatch::id, DTRecSegment2D::ist0Valid(), RecSegment::localDirection(), RecSegment::localDirectionError(), TrackingRecHit::localPosition(), TrackingRecHit::localPositionError(), LogTrace, M_PI, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), DTRecSegment4D::phiSegment(), FreeTrajectoryState::position(), DetId::rawId(), TAMuonSegmentMatch::segmentGlobalPosition, TAMuonSegmentMatch::segmentLocalDirection, TAMuonSegmentMatch::segmentLocalErrorDxDz, TAMuonSegmentMatch::segmentLocalErrorDyDz, TAMuonSegmentMatch::segmentLocalErrorXDxDz, TAMuonSegmentMatch::segmentLocalErrorXX, TAMuonSegmentMatch::segmentLocalErrorXY, TAMuonSegmentMatch::segmentLocalErrorYDyDz, TAMuonSegmentMatch::segmentLocalErrorYY, TAMuonSegmentMatch::segmentLocalPosition, TAMuonChamberMatch::segments, DTRecSegment2D::specificRecHits(), TAMuonSegmentMatch::t0, DTRecSegment2D::t0(), FrontierCondition_GT_autoExpress_cfi::t0, TAMuonChamberMatch::tState, LocalError::xx(), LocalError::xy(), and LocalError::yy().
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | fts, | ||
const AssociatorParameters & | parameters | ||
) |
propagate a track across the whole detector and find associated objects. Association is done in two modes 1) an object is associated to a track only if crossed by track 2) an object is associated to a track if it is withing an eta-phi cone of some radius with respect to a track. (the cone origin is at (0,0,0)) Trajectory bending in eta-phi is taking into account when matching is performed
associate using FreeTrajectoryState
Definition at line 114 of file TrackDetectorAssociator.cc.
References iEvent.
Referenced by EopTreeWriter::analyze(), ValidIsoTrkCalib::analyze(), EcalCosmicsHists::analyze(), muonisolation::CaloExtractorByAssociator::deposits(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), MuonIdProducer::fillMuonId(), and InterestingTrackEcalDetIdProducer::produce().
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const AssociatorParameters & | parameters, | ||
const FreeTrajectoryState * | innerState, | ||
const FreeTrajectoryState * | outerState = nullptr |
||
) |
associate using inner and outer most states of a track in the silicon tracker.
Definition at line 121 of file TrackDetectorAssociator.cc.
References funct::abs(), Exception, iEvent, info(), reco::init(), edm::isNotFinite(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), CosmicsPD_Skims::maxZ, CosmicGenFilterHelix_cff::minZ, SteppingHelixStateInfo::momentum(), or, PV3DBase< T, PVType, FrameType >::perp(), FreeTrajectoryState::position(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const reco::Track & | track, | ||
const AssociatorParameters & | parameters, | ||
Direction | direction = Any |
||
) |
associate using reco::Track
Definition at line 1032 of file TrackDetectorAssociator.cc.
References funct::abs(), Calorimetry_cff::bField, Exception, edm::EventSetup::getData(), iEvent, trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerFreeState(), LogTrace, trajectoryStateTransform::outerFreeState(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), mps_fire::result, HLT_2024v12_cff::track, and PV3DBase< T, PVType, FrameType >::z().
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const SimTrack & | track, | ||
const SimVertex & | vertex, | ||
const AssociatorParameters & | parameters | ||
) |
associate using a simulated track
Definition at line 1114 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, edm::EventSetup::getData(), iEvent, HLT_2024v12_cff::track, and bphysicsOniaDQM_cfi::vertex.
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const GlobalVector & | momentum, | ||
const GlobalPoint & | vertex, | ||
const int | charge, | ||
const AssociatorParameters & | parameters | ||
) |
associate using 3-momentum, vertex and charge
Definition at line 1123 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, reco::charge(), edm::EventSetup::getData(), iEvent, and bphysicsOniaDQM_cfi::vertex.
|
static |
Definition at line 1133 of file TrackDetectorAssociator.cc.
References HLT_2024v12_cff::track.
Referenced by MuonIdProducer::produce().
|
private |
Definition at line 299 of file TrackDetectorAssociator.cc.
References eleHcalExtractorBlocks_cff::caloTowers, HLT_2024v12_cff::distance, iEvent, info(), CachedTrajectory::IpToHcal, LogTrace, and l1tHGCalTowerProducer_cfi::tower.
|
private |
Definition at line 965 of file TrackDetectorAssociator.cc.
References funct::abs(), electronAnalyzer_cfi::DeltaR, f, iEvent, info(), edm::HandleBase::isValid(), cscDigiValidation_cfi::simTrack, TrackCandidateProducer_cfi::simTracks, and HGCalValidator_cfi::simVertices.
|
private |
Definition at line 225 of file TrackDetectorAssociator.cc.
References filterRecHits_cfi::EBRecHits, filterRecHits_cfi::EERecHits, iEvent, info(), CachedTrajectory::IpToEcal, and LogTrace.
|
private |
Definition at line 396 of file TrackDetectorAssociator.cc.
References universalConfigTemplate::collection, HLT_2024v12_cff::distance, iEvent, DetIdInfo::info(), info(), CachedTrajectory::IpToHcal, and LogTrace.
|
private |
Definition at line 464 of file TrackDetectorAssociator.cc.
References universalConfigTemplate::collection, HLT_2024v12_cff::distance, iEvent, info(), CachedTrajectory::IpToHO, and LogTrace.
|
private |
Definition at line 721 of file TrackDetectorAssociator.cc.
References relativeConstraints::chamber, cscRecHitPSet::cscSegment, dtChamberEfficiency_cfi::cscSegments, muonGEMRecHitPSet::gemRecHit, gemRecHits_cfi::gemRecHits, iEvent, info(), edm::HandleBase::isValid(), LogTrace, simTrackMatching_cfi::me0RecHit, me0RecHits_cfi::me0RecHits, me0Segments_cfi::me0Segments, FastTimerService_cff::range, and dtTriggerPhase2PrimitiveDigis_cfi::rpcRecHits.
|
private |
Definition at line 373 of file TrackDetectorAssociator.cc.
References info(), and LogTrace.
|
inline |
trajector information
Definition at line 93 of file TrackDetectorAssociator.h.
References cachedTrajectory_.
|
static |
get FreeTrajectoryState from different track representations
Definition at line 557 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, MillePedeFileConverter_cfg::e, l1ctLayer2EG_cff::id, point, HLT_2024v12_cff::track, and trackerHitRTTI::vector.
Referenced by EopTreeWriter::analyze(), ValidIsoTrkCalib::analyze(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), and InterestingTrackEcalDetIdProducer::produce().
|
static |
Definition at line 529 of file TrackDetectorAssociator.cc.
References funct::abs(), Calorimetry_cff::bField, reco::charge(), point, HLT_2024v12_cff::track, trackerHitRTTI::vector, and bphysicsOniaDQM_cfi::vertex.
|
static |
Definition at line 543 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, reco::charge(), MillePedeFileConverter_cfg::e, l1ctLayer2EG_cff::id, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 576 of file TrackDetectorAssociator.cc.
References funct::abs(), dumpMFGeometry_cfg::delta, DetIdAssociator::MapRange::dPhiMinus, DetIdAssociator::MapRange::dPhiPlus, HGC3DClusterGenMatchSelector_cfi::dR, DetIdAssociator::MapRange::dThetaMinus, DetIdAssociator::MapRange::dThetaPlus, and LogTrace.
|
inlineprivate |
Definition at line 136 of file TrackDetectorAssociator.h.
References point.
|
inlineprivate |
Definition at line 140 of file TrackDetectorAssociator.h.
References point.
|
private |
Definition at line 596 of file TrackDetectorAssociator.cc.
References funct::abs(), Surface::bounds(), hcalRecHitTable_cff::detId, f, TrajectoryStateOnSurface::freeState(), CachedTrajectory::FullTrajectory, DetIdInfo::info(), TrajectoryStateOnSurface::isValid(), SteppingHelixStateInfo::isValid(), Bounds::length(), CSCWireTopology::lengthOfPlane(), TrajectoryStateOnSurface::localError(), LogTrace, oniaPATMuonsWithTrigger_cff::matches, SteppingHelixStateInfo::momentum(), CSCWireTopology::narrowWidthOfPlane(), CSCChamberSpecs::oddLayerGeometry(), SteppingHelixStateInfo::position(), FreeTrajectoryState::position(), LocalTrajectoryError::positionError(), DBoxMetadataHelper::set_intersection(), mathSSE::sqrt(), GeomDet::surface(), GloballyPositioned< T >::toLocal(), Vector3DBase< T, FrameTag >::unit(), CSCWireTopology::wideWidthOfPlane(), Bounds::width(), TrapezoidalPlaneBounds::width(), CSCWireTopology::wireAngle(), CSCLayerGeometry::wireTopology(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), CSCWireTopology::yOfWire(), and LocalError::yy().
|
inlineprivate |
Definition at line 144 of file TrackDetectorAssociator.h.
|
inlineprivate |
Definition at line 146 of file TrackDetectorAssociator.h.
|
private |
Definition at line 87 of file TrackDetectorAssociator.cc.
References anyDirection, Calorimetry_cff::bField, edm::EventSetup::getData(), and eostools::move().
void TrackDetectorAssociator::setPropagator | ( | const Propagator * | ptr | ) |
use a user configured propagator
Definition at line 80 of file TrackDetectorAssociator.cc.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), and MuonIdProducer::init().
void TrackDetectorAssociator::useDefaultPropagator | ( | ) |
use the default propagator
Definition at line 85 of file TrackDetectorAssociator.cc.
Referenced by EopTreeWriter::analyze(), EcalCosmicsHists::EcalCosmicsHists(), InterestingTrackEcalDetIdProducer::InterestingTrackEcalDetIdProducer(), cms::MuonMETValueMapProducer::MuonMETValueMapProducer(), pat::PATIsolatedTrackProducer::PATIsolatedTrackProducer(), and ValidIsoTrkCalib::ValidIsoTrkCalib().
|
private |
Definition at line 150 of file TrackDetectorAssociator.h.
Referenced by getCachedTrajector().
|
private |
Definition at line 156 of file TrackDetectorAssociator.h.
|
private |
Definition at line 149 of file TrackDetectorAssociator.h.
|
private |
Definition at line 153 of file TrackDetectorAssociator.h.
|
private |
Definition at line 154 of file TrackDetectorAssociator.h.
|
private |
Definition at line 155 of file TrackDetectorAssociator.h.
|
private |
Definition at line 148 of file TrackDetectorAssociator.h.
|
private |
Definition at line 157 of file TrackDetectorAssociator.h.
|
private |
Definition at line 158 of file TrackDetectorAssociator.h.
|
private |
Definition at line 160 of file TrackDetectorAssociator.h.
|
private |
Definition at line 163 of file TrackDetectorAssociator.h.
|
private |
Definition at line 161 of file TrackDetectorAssociator.h.
|
private |
Definition at line 151 of file TrackDetectorAssociator.h.