#include <TrajSeedMatcher.h>
Classes | |
struct | Configuration |
struct | MatchInfo |
class | MatchingCuts |
class | MatchingCutsV1 |
class | MatchingCutsV2 |
struct | SCHitMatch |
struct | SeedWithInfo |
Public Member Functions | |
std::vector< TrajSeedMatcher::SeedWithInfo > | operator() (const GlobalPoint &candPos, const float energy) |
TrajSeedMatcher (TrajectorySeedCollection const &seeds, math::XYZPoint const &vprim, Configuration const &cfg, edm::EventSetup const &iSetup, MeasurementTrackerEvent const &measTkEvt) | |
~TrajSeedMatcher ()=default | |
Static Public Member Functions | |
static edm::ParameterSetDescription | makePSetDescription () |
Private Member Functions | |
void | clearCache () |
auto | ftsFromVertexToPoint (GlobalPoint const &point, GlobalPoint const &vertex, float energy, int charge) const |
size_t | getNrHitsRequired (const int nrValidLayers) const |
int | getNrValidLayersAlongTraj (const SCHitMatch &hit1, const SCHitMatch &hit2, const GlobalPoint &candPos, const float energy, const int charge) |
int | getNrValidLayersAlongTraj (const DetId &hitId, const TrajectoryStateOnSurface &hitTrajState) const |
const TrajectoryStateOnSurface & | getTrajStateFromPoint (const TrackingRecHit &hit, const FreeTrajectoryState &initialState, const GlobalPoint &point, const PropagatorWithMaterial &propagator) |
const TrajectoryStateOnSurface & | getTrajStateFromVtx (const TrackingRecHit &hit, const TrajectoryStateOnSurface &initialState, const PropagatorWithMaterial &propagator) |
bool | layerHasValidHits (const DetLayer &layer, const TrajectoryStateOnSurface &hitSurState, const Propagator &propToLayerFromState) const |
TrajectoryStateOnSurface | makeTrajStateOnSurface (const GlobalPoint &pos, const float energy, const int charge) const |
std::vector< SCHitMatch > | processSeed (const TrajectorySeed &seed, const GlobalPoint &candPos, const float energy, const TrajectoryStateOnSurface &initialTrajState) |
Static Private Member Functions | |
static float | getZVtxFromExtrapolation (const GlobalPoint &primeVtxPos, const GlobalPoint &hitPos, const GlobalPoint &candPos) |
Private Attributes | |
PropagatorWithMaterial | backwardPropagator_ |
Configuration const & | cfg_ |
DetLayerGeometry const & | detLayerGeom_ |
PropagatorWithMaterial | forwardPropagator_ |
MagneticField const & | magField_ |
MagneticField const & | magFieldParam_ |
MeasurementTrackerEvent const & | measTkEvt_ |
NavigationSchool const & | navSchool_ |
TrajectorySeedCollection const & | seeds_ |
IntGlobalPointPairUnorderedMap< TrajectoryStateOnSurface > | trajStateFromPointNegChargeCache_ |
IntGlobalPointPairUnorderedMap< TrajectoryStateOnSurface > | trajStateFromPointPosChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxNegChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxPosChargeCache_ |
const GlobalPoint | vprim_ |
Static Private Attributes | |
static constexpr float | kElectronMass_ = 0.000511 |
Definition at line 54 of file TrajSeedMatcher.h.
|
explicit |
Definition at line 102 of file TrajSeedMatcher.cc.
References DetachedQuadStep_cff::seeds.
|
default |
|
private |
Definition at line 299 of file TrajSeedMatcher.cc.
References trajStateFromPointNegChargeCache_, trajStateFromPointPosChargeCache_, trajStateFromVtxNegChargeCache_, and trajStateFromVtxPosChargeCache_.
Referenced by operator()().
|
inlineprivate |
Definition at line 192 of file TrajSeedMatcher.h.
References cfg_, ALCARECOTkAlJpsiMuMu_cff::charge, hcalRecHitTable_cff::energy, trackingTools::ftsFromVertexToPoint(), MagneticField::isDefined(), magField_, magFieldParam_, HLT_2023v12_cff::magneticField, point, TrajSeedMatcher::Configuration::useParamMagFieldIfDefined, and bphysicsOniaDQM_cfi::vertex.
Referenced by getNrValidLayersAlongTraj(), makeTrajStateOnSurface(), and processSeed().
|
private |
Definition at line 363 of file TrajSeedMatcher.cc.
References cfg_, TrajSeedMatcher::Configuration::minNrHits, and TrajSeedMatcher::Configuration::minNrHitsValidLayerBins.
Referenced by operator()().
|
private |
Definition at line 306 of file TrajSeedMatcher.cc.
References cfg_, ALCARECOTkAlJpsiMuMu_cff::charge, hcalRecHitTable_cff::energy, forwardPropagator_, ftsFromVertexToPoint(), TrackingRecHit::geographicalId(), getTrajStateFromPoint(), getZVtxFromExtrapolation(), TrajSeedMatcher::SCHitMatch::hit, TrajSeedMatcher::SCHitMatch::hitPos, TrajSeedMatcher::Configuration::useRecoVertex, bphysicsOniaDQM_cfi::vertex, vprim_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and HLT_FULL_cff::zVertex.
Referenced by operator()().
|
private |
Definition at line 316 of file TrajSeedMatcher.cc.
References alongMomentum, backwardPropagator_, NavigationSchool::compatibleLayers(), detLayerGeom_, forwardPropagator_, TrajectoryStateOnSurface::freeState(), DetLayerGeometry::idToLayer(), GeomDetEnumerators::isTrackerPixel(), nano_mu_digi_cff::layer, layerHasValidHits(), navSchool_, and oppositeToMomentum.
|
private |
Definition at line 274 of file TrajSeedMatcher.cc.
References FreeTrajectoryState::charge(), crabWrapper::key, point, TrackCandidateProducer_cfi::propagator, trajStateFromPointNegChargeCache_, trajStateFromPointPosChargeCache_, and heppy_batch::val.
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 257 of file TrajSeedMatcher.cc.
References TrajectoryStateOnSurface::charge(), crabWrapper::key, TrackCandidateProducer_cfi::propagator, trajStateFromVtxNegChargeCache_, trajStateFromVtxPosChargeCache_, and heppy_batch::val.
Referenced by processSeed().
|
staticprivate |
Definition at line 245 of file TrajSeedMatcher.cc.
References LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, mathSSE::sqrt(), x, and PV3DBase< T, PVType, FrameType >::z().
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 341 of file TrajSeedMatcher.cc.
References MeasurementTrackerEvent::idToDet(), MeasurementDetWithData::isActive(), nano_mu_digi_cff::layer, and measTkEvt_.
Referenced by getNrValidLayersAlongTraj().
|
static |
Definition at line 118 of file TrajSeedMatcher.cc.
References common_cff::defaults, submitPVResolutionJobs::desc, eostools::move(), and or.
Referenced by ElectronNHitSeedProducer::fillDescriptions().
|
private |
Definition at line 292 of file TrajSeedMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, hcalRecHitTable_cff::energy, ftsFromVertexToPoint(), and vprim_.
Referenced by operator()().
std::vector< TrajSeedMatcher::SeedWithInfo > TrajSeedMatcher::operator() | ( | const GlobalPoint & | candPos, |
const float | energy | ||
) |
Definition at line 156 of file TrajSeedMatcher.cc.
References cfg_, clearCache(), hcalRecHitTable_cff::energy, getNrHitsRequired(), getNrValidLayersAlongTraj(), makeTrajStateOnSurface(), SiStripPI::max, processSeed(), TrajSeedMatcher::Configuration::requireExactMatchCount, fileCollector::seed, and seeds_.
|
private |
Definition at line 195 of file TrajSeedMatcher.cc.
References backwardPropagator_, cfg_, ALCARECOTkAlJpsiMuMu_cff::charge, TrajectoryStateOnSurface::charge(), TrajSeedMatcher::Configuration::enableHitSkipping, hcalRecHitTable_cff::energy, PV3DBase< T, PVType, FrameType >::eta(), forwardPropagator_, ftsFromVertexToPoint(), getTrajStateFromPoint(), getTrajStateFromVtx(), getZVtxFromExtrapolation(), TrajectoryStateOnSurface::isValid(), match(), oniaPATMuonsWithTrigger_cff::matches, TrajSeedMatcher::Configuration::matchingCuts, PV3DBase< T, PVType, FrameType >::phi(), rpcPointValidation_cfi::recHit, fileCollector::seed, funct::sin(), PV3DBase< T, PVType, FrameType >::theta(), TrajSeedMatcher::Configuration::useRecoVertex, bphysicsOniaDQM_cfi::vertex, vprim_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and HLT_FULL_cff::zVertex.
Referenced by operator()().
|
private |
Definition at line 215 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 206 of file TrajSeedMatcher.h.
Referenced by ftsFromVertexToPoint(), getNrHitsRequired(), getNrValidLayersAlongTraj(), operator()(), and processSeed().
|
private |
Definition at line 212 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj().
|
private |
Definition at line 214 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
staticprivate |
Definition at line 201 of file TrajSeedMatcher.h.
|
private |
Definition at line 208 of file TrajSeedMatcher.h.
Referenced by ftsFromVertexToPoint().
|
private |
Definition at line 209 of file TrajSeedMatcher.h.
Referenced by ftsFromVertexToPoint().
|
private |
Definition at line 210 of file TrajSeedMatcher.h.
Referenced by layerHasValidHits().
|
private |
Definition at line 211 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj().
|
private |
Definition at line 203 of file TrajSeedMatcher.h.
Referenced by operator()().
|
private |
Definition at line 221 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 220 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 218 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 217 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 204 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), makeTrajStateOnSurface(), and processSeed().