#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 edm::EventSetup &, const reco::Track &) |
get FreeTrajectoryState from different track representations More... | |
static FreeTrajectoryState | getFreeTrajectoryState (const edm::EventSetup &, const SimTrack &, const SimVertex &) |
static FreeTrajectoryState | getFreeTrajectoryState (const edm::EventSetup &, const GlobalVector &, const GlobalPoint &, const int) |
Definition at line 50 of file TrackDetectorAssociator.h.
Definition at line 55 of file TrackDetectorAssociator.h.
TrackDetectorAssociator::TrackDetectorAssociator | ( | ) |
Definition at line 99 of file TrackDetectorAssociator.cc.
TrackDetectorAssociator::~TrackDetectorAssociator | ( | ) |
Definition at line 106 of file TrackDetectorAssociator.cc.
|
private |
Definition at line 805 of file TrackDetectorAssociator.cc.
References reco::deltaPhi(), TrackAssociatorParameters::dRMuon, PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::freeState(), TrackingRecHit::geographicalId(), TAMuonSegmentMatch::hasPhi, DTRecSegment4D::hasPhi(), TAMuonSegmentMatch::hasZed, DTRecSegment4D::hasZed(), 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(), funct::pow(), 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(), mathSSE::sqrt(), TAMuonSegmentMatch::t0, DTRecSegment2D::t0(), GeomDet::toGlobal(), 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 156 of file TrackDetectorAssociator.cc.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EopTreeWriter::analyze(), EcalCosmicsHists::analyze(), IsolatedTracksCone::analyze(), spr::chargeIsolation(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), MuonDetCleaner::fillHitMap(), MuonIdProducer::fillMuonId(), SelectReplacementCandidates::getRawIDsAdvanced(), getTrackDetMatchInfo(), InterestingTrackEcalDetIdProducer::produce(), HighPtTrackEcalDetIdProducer::produce(), and ReduceHcalRecHitCollectionProducer::produce().
TrackDetMatchInfo TrackDetectorAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const AssociatorParameters & | parameters, | ||
const FreeTrajectoryState * | innerState, | ||
const FreeTrajectoryState * | outerState = 0 |
||
) |
associate using inner and outer most states of a track in the silicon tracker.
Definition at line 164 of file TrackDetectorAssociator.cc.
References Exception, HLT_FULL_cff::fillCaloTowers, info(), init, edm::detail::isnan(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), CosmicsPD_Skims::maxZ, HLT_FULL_cff::minR, HLT_FULL_cff::minZ, SteppingHelixStateInfo::momentum(), or, PV3DBase< T, PVType, FrameType >::perp(), FreeTrajectoryState::position(), TrackDetMatchInfo::setCaloGeometry(), TrackDetMatchInfo::stateAtIP, TrackDetMatchInfo::trkGlobPosAtEcal, TrackDetMatchInfo::trkGlobPosAtHcal, TrackDetMatchInfo::trkGlobPosAtHO, TrackDetMatchInfo::trkMomAtEcal, TrackDetMatchInfo::trkMomAtHcal, TrackDetMatchInfo::trkMomAtHO, TrackAssociatorParameters::truthMatch, TrackAssociatorParameters::useCalo, TrackAssociatorParameters::useEcal, TrackAssociatorParameters::useHcal, TrackAssociatorParameters::useHO, TrackAssociatorParameters::useMuon, TrackAssociatorParameters::usePreshower, 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 958 of file TrackDetectorAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, Exception, reco::Track::extra(), edm::EventSetup::get(), trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerFreeState(), reco::Track::innerMomentum(), reco::Track::innerPosition(), edm::Ref< C, T, F >::isNull(), LogTrace, trajectoryStateTransform::outerFreeState(), reco::Track::outerMomentum(), reco::Track::outerPosition(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), query::result, 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 1050 of file TrackDetectorAssociator.cc.
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 1059 of file TrackDetectorAssociator.cc.
|
static |
Definition at line 1069 of file TrackDetectorAssociator.cc.
References reco::Track::innerMomentum(), reco::Track::innerPosition(), reco::Track::outerMomentum(), and reco::Track::outerPosition().
Referenced by MuonIdProducer::produce().
|
private |
Definition at line 332 of file TrackDetectorAssociator.cc.
References TrackAssociatorParameters::accountForTrajectoryChangeCalo, HLT_FULL_cff::caloTowers, TrackAssociatorParameters::caloTowersToken, TrackDetMatchInfo::crossedTowerIds, TrackDetMatchInfo::crossedTowers, HLT_FULL_cff::distance, TrackAssociatorParameters::dRHcal, TrackAssociatorParameters::dRHcalPreselection, edm::Event::getByToken(), CachedTrajectory::IpToHcal, TrackDetMatchInfo::isGoodCalo, edm::HandleBase::isValid(), LogTrace, and TrackDetMatchInfo::towers.
|
private |
Definition at line 898 of file TrackDetectorAssociator.cc.
References HLT_FULL_cff::DeltaR, TrackDetMatchInfo::ecalTrueEnergy, SimTrack::genpartIndex(), edm::Event::getByToken(), TrackDetMatchInfo::hcalTrueEnergy, TrackDetMatchInfo::hcalTrueEnergyCorrected, FreeTrajectoryState::momentum(), TrackAssociatorParameters::simEcalHitsEBToken, TrackAssociatorParameters::simEcalHitsEEToken, TrackAssociatorParameters::simHcalHitsToken, TrackDetMatchInfo::simTrack, TrackAssociatorParameters::simTracksToken, TrackAssociatorParameters::simVerticesToken, TrackDetMatchInfo::stateAtIP, TrackDetMatchInfo::trkGlobPosAtHcal, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 260 of file TrackDetectorAssociator.cc.
References TrackAssociatorParameters::accountForTrajectoryChangeCalo, TrackDetMatchInfo::crossedEcalIds, TrackDetMatchInfo::crossedEcalRecHits, TrackAssociatorParameters::dREcal, TrackAssociatorParameters::dREcalPreselection, egHLT::errCodes::EBRecHits, TrackAssociatorParameters::EBRecHitsToken, TrackDetMatchInfo::ecalRecHits, egHLT::errCodes::EERecHits, TrackAssociatorParameters::EERecHitsToken, edm::Event::getByToken(), CachedTrajectory::IpToEcal, TrackDetMatchInfo::isGoodEcal, edm::HandleBase::isValid(), and LogTrace.
|
private |
Definition at line 426 of file TrackDetectorAssociator.cc.
References TrackAssociatorParameters::accountForTrajectoryChangeCalo, runEdmFileComparison::collection, TrackDetMatchInfo::crossedHcalIds, TrackDetMatchInfo::crossedHcalRecHits, HLT_FULL_cff::distance, TrackAssociatorParameters::dRHcal, TrackAssociatorParameters::dRHcalPreselection, edm::Event::getByToken(), TrackAssociatorParameters::HBHEcollToken, TrackDetMatchInfo::hcalRecHits, DetIdInfo::info(), CachedTrajectory::IpToHcal, TrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), and LogTrace.
|
private |
Definition at line 491 of file TrackDetectorAssociator.cc.
References TrackAssociatorParameters::accountForTrajectoryChangeCalo, runEdmFileComparison::collection, TrackDetMatchInfo::crossedHOIds, TrackDetMatchInfo::crossedHORecHits, HLT_FULL_cff::distance, TrackAssociatorParameters::dRHcal, TrackAssociatorParameters::dRHcalPreselection, edm::Event::getByToken(), TrackAssociatorParameters::HOcollToken, TrackDetMatchInfo::hoRecHits, CachedTrajectory::IpToHO, TrackDetMatchInfo::isGoodHO, edm::HandleBase::isValid(), and LogTrace.
|
private |
Definition at line 738 of file TrackDetectorAssociator.cc.
References TrackDetMatchInfo::chambers, HLT_FULL_cff::cscSegments, TrackAssociatorParameters::cscSegmentsToken, TrackAssociatorParameters::dtSegmentsToken, edm::Event::getByToken(), edm::HandleBase::isValid(), and LogTrace.
|
private |
Definition at line 402 of file TrackDetectorAssociator.cc.
References TrackDetMatchInfo::crossedPreshowerIds, TrackAssociatorParameters::dRPreshowerPreselection, and LogTrace.
|
inline |
trajector information
Definition at line 102 of file TrackDetectorAssociator.h.
References cachedTrajectory_.
Referenced by MuonCaloDistanceProducer::fillDistanceMap().
|
static |
get FreeTrajectoryState from different track representations
Definition at line 588 of file TrackDetectorAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, reco::TrackBase::charge(), alignCSCRings::e, edm::EventSetup::get(), reco::TrackBase::momentum(), point, and reco::TrackBase::vertex().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EopTreeWriter::analyze(), IsolatedTracksCone::analyze(), spr::chargeIsolation(), spr::chargeIsolationEcal(), spr::chargeIsolationHcal(), spr::coneChargeIsolation(), cms::MuonMETValueMapProducer::determine_deltax_deltay(), and InterestingTrackEcalDetIdProducer::produce().
|
static |
Definition at line 555 of file TrackDetectorAssociator.cc.
References funct::abs(), RecoTauCleanerPlugins::charge, CoreSimTrack::momentum(), point, CoreSimVertex::position(), and CoreSimTrack::type().
|
static |
Definition at line 570 of file TrackDetectorAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, alignCSCRings::e, and edm::EventSetup::get().
|
private |
Definition at line 610 of file TrackDetectorAssociator.cc.
References DetIdAssociator::MapRange::dPhiMinus, DetIdAssociator::MapRange::dPhiPlus, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, DetIdAssociator::MapRange::dThetaMinus, DetIdAssociator::MapRange::dThetaPlus, and LogTrace.
|
inlineprivate |
Definition at line 165 of file TrackDetectorAssociator.h.
References point.
|
inlineprivate |
Definition at line 170 of file TrackDetectorAssociator.h.
References point.
|
private |
Definition at line 632 of file TrackDetectorAssociator.cc.
References Surface::bounds(), TrackAssociatorParameters::dRMuonPreselection, TrajectoryStateOnSurface::freeState(), CachedTrajectory::FullTrajectory, TAMuonChamberMatch::id, DetIdInfo::info(), TrajectoryStateOnSurface::isValid(), SteppingHelixStateInfo::isValid(), Bounds::length(), CSCWireTopology::lengthOfPlane(), TAMuonChamberMatch::localDistanceX, TAMuonChamberMatch::localDistanceY, TrajectoryStateOnSurface::localError(), LogTrace, match(), SteppingHelixStateInfo::momentum(), TrackAssociatorParameters::muonMaxDistanceSigmaX, TrackAssociatorParameters::muonMaxDistanceSigmaY, TrackAssociatorParameters::muonMaxDistanceX, TrackAssociatorParameters::muonMaxDistanceY, CSCWireTopology::narrowWidthOfPlane(), CSCChamberSpecs::oddLayerGeometry(), SteppingHelixStateInfo::position(), FreeTrajectoryState::position(), LocalTrajectoryError::positionError(), mathSSE::sqrt(), GeomDet::surface(), GloballyPositioned< T >::toLocal(), TAMuonChamberMatch::tState, 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 175 of file TrackDetectorAssociator.h.
|
inlineprivate |
Definition at line 180 of file TrackDetectorAssociator.h.
|
private |
Definition at line 123 of file TrackDetectorAssociator.cc.
References anyDirection, SteppingHelixPropagator::applyRadX0Correction(), ecalTB2006H4_GenSimDigiReco_cfg::bField, edm::EventSetup::get(), SteppingHelixPropagator::setMaterialMode(), and SteppingHelixPropagator_cfi::SteppingHelixPropagator.
void TrackDetectorAssociator::setPropagator | ( | const Propagator * | ptr | ) |
use a user configured propagator
Definition at line 111 of file TrackDetectorAssociator.cc.
Referenced by muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), and MuonIdProducer::init().
void TrackDetectorAssociator::useDefaultPropagator | ( | ) |
use the default propagator
Definition at line 117 of file TrackDetectorAssociator.cc.
Referenced by EopTreeWriter::analyze(), BetaCalculatorECAL::BetaCalculatorECAL(), EcalCosmicsHists::EcalCosmicsHists(), HighPtTrackEcalDetIdProducer::HighPtTrackEcalDetIdProducer(), InterestingTrackEcalDetIdProducer::InterestingTrackEcalDetIdProducer(), IsolatedTracksCone::IsolatedTracksCone(), MuonCaloCleanerAllCrossed::MuonCaloCleanerAllCrossed(), MuonCaloDistanceProducer::MuonCaloDistanceProducer(), MuonDetCleaner::MuonDetCleaner(), cms::MuonMETValueMapProducer::MuonMETValueMapProducer(), ReduceHcalRecHitCollectionProducer::ReduceHcalRecHitCollectionProducer(), and SelectReplacementCandidates::SelectReplacementCandidates().
|
private |
Definition at line 187 of file TrackDetectorAssociator.h.
Referenced by getCachedTrajector().
|
private |
Definition at line 193 of file TrackDetectorAssociator.h.
|
private |
Definition at line 186 of file TrackDetectorAssociator.h.
|
private |
Definition at line 190 of file TrackDetectorAssociator.h.
|
private |
Definition at line 191 of file TrackDetectorAssociator.h.
|
private |
Definition at line 192 of file TrackDetectorAssociator.h.
|
private |
Definition at line 185 of file TrackDetectorAssociator.h.
|
private |
Definition at line 194 of file TrackDetectorAssociator.h.
|
private |
Definition at line 195 of file TrackDetectorAssociator.h.
|
private |
Definition at line 197 of file TrackDetectorAssociator.h.
|
private |
Definition at line 200 of file TrackDetectorAssociator.h.
|
private |
Definition at line 198 of file TrackDetectorAssociator.h.
|
private |
Definition at line 188 of file TrackDetectorAssociator.h.