#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 69 of file TrackDetectorAssociator.cc.
|
default |
|
private |
Definition at line 791 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 110 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 117 of file TrackDetectorAssociator.cc.
References funct::abs(), Exception, iEvent, info(), init, edm::isNotFinite(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), CosmicsPD_Skims::maxZ, HLT_FULL_cff::minR, 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 955 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_2022v15_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 1037 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, edm::EventSetup::getData(), iEvent, HLT_2022v15_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 1046 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, ALCARECOTkAlJpsiMuMu_cff::charge, edm::EventSetup::getData(), iEvent, and bphysicsOniaDQM_cfi::vertex.
|
static |
Definition at line 1056 of file TrackDetectorAssociator.cc.
References HLT_2022v15_cff::track.
Referenced by MuonIdProducer::produce().
|
private |
Definition at line 295 of file TrackDetectorAssociator.cc.
References eleHcalExtractorBlocks_cff::caloTowers, HLT_2022v15_cff::distance, iEvent, info(), CachedTrajectory::IpToHcal, LogTrace, and l1tHGCalTowerProducer_cfi::tower.
|
private |
Definition at line 888 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 221 of file TrackDetectorAssociator.cc.
References filterRecHits_cfi::EBRecHits, filterRecHits_cfi::EERecHits, iEvent, info(), CachedTrajectory::IpToEcal, and LogTrace.
|
private |
Definition at line 392 of file TrackDetectorAssociator.cc.
References universalConfigTemplate::collection, HLT_2022v15_cff::distance, iEvent, DetIdInfo::info(), info(), CachedTrajectory::IpToHcal, and LogTrace.
|
private |
Definition at line 460 of file TrackDetectorAssociator.cc.
References universalConfigTemplate::collection, HLT_2022v15_cff::distance, iEvent, info(), CachedTrajectory::IpToHO, and LogTrace.
|
private |
Definition at line 693 of file TrackDetectorAssociator.cc.
References relativeConstraints::chamber, dtChamberEfficiency_cfi::cscSegments, gemSegments_cfi::gemSegments, iEvent, info(), edm::HandleBase::isValid(), LogTrace, me0Segments_cfi::me0Segments, and FastTimerService_cff::range.
|
private |
Definition at line 369 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 553 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, MillePedeFileConverter_cfg::e, l1ctLayer2EG_cff::id, point, HLT_2022v15_cff::track, and trackerHitRTTI::vector.
Referenced by EopTreeWriter::analyze(), ValidIsoTrkCalib::analyze(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), and InterestingTrackEcalDetIdProducer::produce().
|
static |
Definition at line 525 of file TrackDetectorAssociator.cc.
References funct::abs(), Calorimetry_cff::bField, ALCARECOTkAlJpsiMuMu_cff::charge, point, HLT_2022v15_cff::track, trackerHitRTTI::vector, and bphysicsOniaDQM_cfi::vertex.
|
static |
Definition at line 539 of file TrackDetectorAssociator.cc.
References Calorimetry_cff::bField, ALCARECOTkAlJpsiMuMu_cff::charge, MillePedeFileConverter_cfg::e, l1ctLayer2EG_cff::id, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 572 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 135 of file TrackDetectorAssociator.h.
References point.
|
inlineprivate |
Definition at line 139 of file TrackDetectorAssociator.h.
References point.
|
private |
Definition at line 592 of file TrackDetectorAssociator.cc.
References funct::abs(), Surface::bounds(), 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(), mathSSE::sqrt(), GeomDet::surface(), GloballyPositioned< T >::toLocal(), Vector3DBase< T, FrameTag >::unit(), CSCWireTopology::wideWidthOfPlane(), Bounds::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 143 of file TrackDetectorAssociator.h.
|
inlineprivate |
Definition at line 145 of file TrackDetectorAssociator.h.
|
private |
Definition at line 83 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 76 of file TrackDetectorAssociator.cc.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), and MuonIdProducer::init().
void TrackDetectorAssociator::useDefaultPropagator | ( | ) |
use the default propagator
Definition at line 81 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 149 of file TrackDetectorAssociator.h.
Referenced by getCachedTrajector().
|
private |
Definition at line 155 of file TrackDetectorAssociator.h.
|
private |
Definition at line 148 of file TrackDetectorAssociator.h.
|
private |
Definition at line 152 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 147 of file TrackDetectorAssociator.h.
|
private |
Definition at line 156 of file TrackDetectorAssociator.h.
|
private |
Definition at line 157 of file TrackDetectorAssociator.h.
|
private |
Definition at line 159 of file TrackDetectorAssociator.h.
|
private |
Definition at line 162 of file TrackDetectorAssociator.h.
|
private |
Definition at line 160 of file TrackDetectorAssociator.h.
|
private |
Definition at line 150 of file TrackDetectorAssociator.h.