#include <TrajSeedMatcher.h>
Classes | |
struct | Configuration |
struct | MatchInfo |
class | MatchingCuts |
class | MatchingCutsV1 |
class | MatchingCutsV2 |
struct | SCHitMatch |
class | SeedWithInfo |
Public Member Functions | |
std::vector< TrajSeedMatcher::SeedWithInfo > | operator() (const TrajectorySeedCollection &seeds, const GlobalPoint &candPos, const GlobalPoint &vprim, const float energy) |
TrajSeedMatcher (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 () |
const MagneticField & | getMagField (const GlobalPoint &point) const |
size_t | getNrHitsRequired (const int nrValidLayers) const |
int | getNrValidLayersAlongTraj (const DetId &hitId, const TrajectoryStateOnSurface &hitTrajState) const |
int | getNrValidLayersAlongTraj (const SCHitMatch &hit1, const SCHitMatch &hit2, const GlobalPoint &candPos, const GlobalPoint &vprim, const float energy, const int charge) |
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 GlobalPoint &vtx, const float energy, const int charge) const |
bool | passesMatchSel (const SCHitMatch &hit, const size_t hitNr) const |
std::vector< SCHitMatch > | processSeed (const TrajectorySeed &seed, const GlobalPoint &candPos, const GlobalPoint &vprim, 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_ |
IntGlobalPointPairUnorderedMap< TrajectoryStateOnSurface > | trajStateFromPointNegChargeCache_ |
IntGlobalPointPairUnorderedMap< TrajectoryStateOnSurface > | trajStateFromPointPosChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxNegChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxPosChargeCache_ |
Static Private Attributes | |
static constexpr float | kElectronMass_ = 0.000511 |
Definition at line 52 of file TrajSeedMatcher.h.
|
explicit |
|
default |
|
private |
Definition at line 281 of file TrajSeedMatcher.cc.
References trajStateFromPointNegChargeCache_, trajStateFromPointPosChargeCache_, trajStateFromVtxNegChargeCache_, and trajStateFromVtxPosChargeCache_.
Referenced by operator()().
|
inlineprivate |
Definition at line 228 of file TrajSeedMatcher.h.
References cfg_, MagneticField::isDefined(), magField_, magFieldParam_, point, and TrajSeedMatcher::Configuration::useParamMagFieldIfDefined.
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 312 of file TrajSeedMatcher.cc.
References alongMomentum, backwardPropagator_, NavigationSchool::compatibleLayers(), detLayerGeom_, forwardPropagator_, TrajectoryStateOnSurface::freeState(), DetLayerGeometry::idToLayer(), GeomDetEnumerators::isTrackerPixel(), layerHasValidHits(), navSchool_, and oppositeToMomentum.
|
private |
Definition at line 297 of file TrajSeedMatcher.cc.
References cfg_, ALCARECOTkAlJpsiMuMu_cff::charge, HCALHighEnergyHPDFilter_cfi::energy, forwardPropagator_, trackingTools::ftsFromVertexToPoint(), TrackingRecHit::geographicalId(), getMagField(), getTrajStateFromPoint(), getZVtxFromExtrapolation(), TrajSeedMatcher::SCHitMatch::hit, TrajSeedMatcher::SCHitMatch::hitPos, TrajSeedMatcher::Configuration::useRecoVertex, bphysicsOniaDQM_cfi::vertex, 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 254 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 237 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 225 of file TrajSeedMatcher.cc.
References p1, 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 GeometricSearchDet::compatibleDets(), MeasurementTrackerEvent::idToDet(), MeasurementDetWithData::isActive(), and measTkEvt_.
Referenced by getNrValidLayersAlongTraj().
|
static |
Definition at line 92 of file TrajSeedMatcher.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addVPSet(), l1GtPatternGenerator_cfi::defaults, eostools::move(), and or.
Referenced by ElectronNHitSeedProducer::fillDescriptions().
|
private |
Definition at line 272 of file TrajSeedMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, HCALHighEnergyHPDFilter_cfi::energy, trackingTools::ftsFromVertexToPoint(), getMagField(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by operator()().
std::vector< TrajSeedMatcher::SeedWithInfo > TrajSeedMatcher::operator() | ( | const TrajectorySeedCollection & | seeds, |
const GlobalPoint & | candPos, | ||
const GlobalPoint & | vprim, | ||
const float | energy | ||
) |
Definition at line 130 of file TrajSeedMatcher.cc.
References cfg_, clearCache(), HCALHighEnergyHPDFilter_cfi::energy, getNrHitsRequired(), getNrValidLayersAlongTraj(), makeTrajStateOnSurface(), SiStripPI::max, processSeed(), TrajSeedMatcher::Configuration::requireExactMatchCount, SurveyInfoScenario_cff::seed, and InitialStep_cff::seeds.
|
private |
Definition at line 288 of file TrajSeedMatcher.cc.
References cfg_, Exception, and TrajSeedMatcher::Configuration::matchingCuts.
Referenced by processSeed().
|
private |
Definition at line 172 of file TrajSeedMatcher.cc.
References backwardPropagator_, cfg_, ALCARECOTkAlJpsiMuMu_cff::charge, TrajectoryStateOnSurface::charge(), TrajSeedMatcher::Configuration::enableHitSkipping, HCALHighEnergyHPDFilter_cfi::energy, PV3DBase< T, PVType, FrameType >::eta(), forwardPropagator_, trackingTools::ftsFromVertexToPoint(), getMagField(), getTrajStateFromPoint(), getTrajStateFromVtx(), getZVtxFromExtrapolation(), TrajectoryStateOnSurface::isValid(), match(), TrajSeedMatcher::Configuration::matchingCuts, passesMatchSel(), PV3DBase< T, PVType, FrameType >::phi(), rpcPointValidation_cfi::recHit, SurveyInfoScenario_cff::seed, funct::sin(), PV3DBase< T, PVType, FrameType >::theta(), TrajSeedMatcher::Configuration::useRecoVertex, bphysicsOniaDQM_cfi::vertex, 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 244 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 235 of file TrajSeedMatcher.h.
Referenced by getMagField(), getNrHitsRequired(), getNrValidLayersAlongTraj(), operator()(), passesMatchSel(), and processSeed().
|
private |
Definition at line 241 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj().
|
private |
Definition at line 243 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
staticconstexprprivate |
Definition at line 233 of file TrajSeedMatcher.h.
|
private |
Definition at line 237 of file TrajSeedMatcher.h.
Referenced by getMagField().
|
private |
Definition at line 238 of file TrajSeedMatcher.h.
Referenced by getMagField().
|
private |
Definition at line 239 of file TrajSeedMatcher.h.
Referenced by layerHasValidHits().
|
private |
Definition at line 240 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj().
|
private |
Definition at line 250 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 249 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 247 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 246 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().