#include <TrajSeedMatcher.h>
Classes | |
struct | MatchInfo |
class | MatchingCuts |
class | MatchingCutsV1 |
class | MatchingCutsV2 |
class | SCHitMatch |
class | SeedWithInfo |
Public Member Functions | |
std::vector< TrajSeedMatcher::SeedWithInfo > | compatibleSeeds (const TrajectorySeedCollection &seeds, const GlobalPoint &candPos, const GlobalPoint &vprim, const float energy) |
void | doEventSetup (const edm::EventSetup &iSetup) |
void | setMeasTkEvtHandle (edm::Handle< MeasurementTrackerEvent > handle) |
TrajSeedMatcher (const edm::ParameterSet &pset) | |
~TrajSeedMatcher ()=default | |
Static Public Member Functions | |
static edm::ParameterSetDescription | makePSetDescription () |
Private Member Functions | |
void | clearCache () |
size_t | getNrHitsRequired (const int nrValidLayers) const |
int | getNrValidLayersAlongTraj (const SCHitMatch &hit1, const SCHitMatch &hit2, const GlobalPoint &candPos, const GlobalPoint &vprim, 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 |
TrajSeedMatcher::SCHitMatch | match2ndToNthHit (const TrajectorySeed &seed, const FreeTrajectoryState &trajState, const size_t hitNr, const GlobalPoint &prevHitPos, const GlobalPoint &vtxPos, const PropagatorWithMaterial &propagator) |
TrajSeedMatcher::SCHitMatch | matchFirstHit (const TrajectorySeed &seed, const TrajectoryStateOnSurface &trajState, const GlobalPoint &vtxPos, const PropagatorWithMaterial &propagator) |
bool | passesMatchSel (const SCHitMatch &hit, const size_t hitNr) const |
bool | passTrajPreSel (const GlobalPoint &hitPos, const GlobalPoint &candPos) const |
std::vector< SCHitMatch > | processSeed (const TrajectorySeed &seed, const GlobalPoint &candPos, const GlobalPoint &vprim, const float energy, const int charge) |
Static Private Member Functions | |
static float | getZVtxFromExtrapolation (const GlobalPoint &primeVtxPos, const GlobalPoint &hitPos, const GlobalPoint &candPos) |
Private Attributes | |
std::unique_ptr< PropagatorWithMaterial > | backwardPropagator_ |
unsigned long long | cacheIDMagField_ |
edm::ESHandle< DetLayerGeometry > | detLayerGeom_ |
std::string | detLayerGeomLabel_ |
std::unique_ptr< PropagatorWithMaterial > | forwardPropagator_ |
edm::ESHandle< MagneticField > | magField_ |
std::vector< std::unique_ptr< MatchingCuts > > | matchingCuts_ |
edm::Handle< MeasurementTrackerEvent > | measTkEvt_ |
const std::vector< unsigned int > | minNrHits_ |
const std::vector< int > | minNrHitsValidLayerBins_ |
edm::ESHandle< NavigationSchool > | navSchool_ |
std::string | navSchoolLabel_ |
std::unordered_map< std::pair< int, GlobalPoint >, TrajectoryStateOnSurface > | trajStateFromPointNegChargeCache_ |
std::unordered_map< std::pair< int, GlobalPoint >, TrajectoryStateOnSurface > | trajStateFromPointPosChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxNegChargeCache_ |
std::unordered_map< int, TrajectoryStateOnSurface > | trajStateFromVtxPosChargeCache_ |
bool | useRecoVertex_ |
Static Private Attributes | |
static float | kElectronMass_ = 0.000511 |
static float | kPhiCut_ = -0.801144 |
Definition at line 77 of file TrajSeedMatcher.h.
|
explicit |
Definition at line 23 of file TrajSeedMatcher.cc.
References detLayerGeomLabel_, Exception, edm::ParameterSet::getParameter(), matchingCuts_, minNrHits_, minNrHitsValidLayerBins_, navSchoolLabel_, AlCaHLTBitMon_QueryRunRegistry::string, useRecoVertex_, and jetIDSelector_cfi::version.
|
default |
|
private |
Definition at line 284 of file TrajSeedMatcher.cc.
References trajStateFromPointNegChargeCache_, trajStateFromPointPosChargeCache_, trajStateFromVtxNegChargeCache_, and trajStateFromVtxPosChargeCache_.
Referenced by compatibleSeeds().
std::vector< TrajSeedMatcher::SeedWithInfo > TrajSeedMatcher::compatibleSeeds | ( | const TrajectorySeedCollection & | seeds, |
const GlobalPoint & | candPos, | ||
const GlobalPoint & | vprim, | ||
const float | energy | ||
) |
Definition at line 103 of file TrajSeedMatcher.cc.
References backwardPropagator_, clearCache(), Exception, forwardPropagator_, getNrHitsRequired(), getNrValidLayersAlongTraj(), edm::ESHandleBase::isValid(), magField_, hpstanc_transforms::max, processSeed(), and SurveyInfoScenario_cff::seed.
Referenced by ElectronNHitSeedProducer::produce().
void TrajSeedMatcher::doEventSetup | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 89 of file TrajSeedMatcher.cc.
References alongMomentum, backwardPropagator_, edm::eventsetup::EventSetupRecord::cacheIdentifier(), cacheIDMagField_, detLayerGeom_, detLayerGeomLabel_, forwardPropagator_, edm::EventSetup::get(), kElectronMass_, magField_, navSchool_, navSchoolLabel_, and oppositeToMomentum.
Referenced by ElectronNHitSeedProducer::produce().
|
private |
Definition at line 362 of file TrajSeedMatcher.cc.
References minNrHits_, and minNrHitsValidLayerBins_.
Referenced by compatibleSeeds().
|
private |
Definition at line 301 of file TrajSeedMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, forwardPropagator_, TrackingRecHit::geographicalId(), FTSFromVertexToPointFactory::get(), getTrajStateFromPoint(), getZVtxFromExtrapolation(), TrajSeedMatcher::SCHitMatch::hit(), TrajSeedMatcher::SCHitMatch::hitPos(), magField_, useRecoVertex_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and CombinatorialSeedGeneratorForCosmicsRegionalReconstruction_cfi::zVertex.
Referenced by compatibleSeeds().
|
private |
Definition at line 315 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 229 of file TrajSeedMatcher.cc.
References FreeTrajectoryState::charge(), TrackingRecHit::det(), GeomDet::gdetIndex(), crabWrapper::key, point, Propagator::propagate(), GeomDet::surface(), trajStateFromPointNegChargeCache_, trajStateFromPointPosChargeCache_, and heppy_batch::val.
Referenced by getNrValidLayersAlongTraj(), and match2ndToNthHit().
|
private |
Definition at line 212 of file TrajSeedMatcher.cc.
References TrajectoryStateOnSurface::charge(), TrackingRecHit::det(), GeomDet::gdetIndex(), crabWrapper::key, Propagator::propagate(), GeomDet::surface(), trajStateFromVtxNegChargeCache_, trajStateFromVtxPosChargeCache_, and heppy_batch::val.
Referenced by matchFirstHit().
|
staticprivate |
Definition at line 192 of file TrajSeedMatcher.cc.
References p1, p2, mathSSE::sqrt(), x, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 343 of file TrajSeedMatcher.cc.
References GeometricSearchDet::compatibleDets(), MeasurementTrackerEvent::idToDet(), MeasurementDetWithData::isActive(), and measTkEvt_.
Referenced by getNrValidLayersAlongTraj().
|
static |
Definition at line 51 of file TrajSeedMatcher.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSet::addParameter(), edm::ParameterSetDescription::addVPSet(), makeLayoutFileForGui::defaults(), eostools::move(), or, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ElectronNHitSeedProducer::fillDescriptions().
|
private |
Definition at line 263 of file TrajSeedMatcher.cc.
References getTrajStateFromPoint(), hfClusterShapes_cfi::hits, TrajectoryStateOnSurface::isValid(), and TrajectorySeed::recHits().
Referenced by processSeed().
|
private |
Definition at line 248 of file TrajSeedMatcher.cc.
References getTrajStateFromVtx(), hfClusterShapes_cfi::hits, TrajectoryStateOnSurface::isValid(), and TrajectorySeed::recHits().
Referenced by processSeed().
|
private |
Definition at line 292 of file TrajSeedMatcher.cc.
References Exception, and matchingCuts_.
Referenced by processSeed().
|
private |
Definition at line 204 of file TrajSeedMatcher.cc.
References dt, kPhiCut_, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
|
private |
Definition at line 154 of file TrajSeedMatcher.cc.
References backwardPropagator_, ALCARECOTkAlJpsiMuMu_cff::charge, PV3DBase< T, PVType, FrameType >::eta(), forwardPropagator_, FTSFromVertexToPointFactory::get(), getZVtxFromExtrapolation(), TrajSeedMatcher::SCHitMatch::hitPos(), magField_, match2ndToNthHit(), matchFirstHit(), matchingCuts_, TrajectorySeed::nHits(), passesMatchSel(), PV3DBase< T, PVType, FrameType >::phi(), TrajSeedMatcher::SCHitMatch::setExtra(), funct::sin(), PV3DBase< T, PVType, FrameType >::theta(), useRecoVertex_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and CombinatorialSeedGeneratorForCosmicsRegionalReconstruction_cfi::zVertex.
Referenced by compatibleSeeds().
|
inline |
Definition at line 219 of file TrajSeedMatcher.h.
References ALCARECOTkAlJpsiMuMu_cff::charge, eostools::move(), point, PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, and SurveyInfoScenario_cff::seed.
Referenced by ElectronNHitSeedProducer::produce().
|
private |
Definition at line 273 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 274 of file TrajSeedMatcher.h.
Referenced by doEventSetup().
|
private |
Definition at line 278 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and getNrValidLayersAlongTraj().
|
private |
Definition at line 280 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and TrajSeedMatcher().
|
private |
Definition at line 272 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
staticprivate |
Definition at line 270 of file TrajSeedMatcher.h.
Referenced by doEventSetup().
|
staticprivate |
Definition at line 271 of file TrajSeedMatcher.h.
Referenced by passTrajPreSel().
|
private |
Definition at line 275 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 283 of file TrajSeedMatcher.h.
Referenced by passesMatchSel(), processSeed(), and TrajSeedMatcher().
|
private |
Definition at line 276 of file TrajSeedMatcher.h.
Referenced by layerHasValidHits().
|
private |
Definition at line 290 of file TrajSeedMatcher.h.
Referenced by getNrHitsRequired(), and TrajSeedMatcher().
|
private |
Definition at line 291 of file TrajSeedMatcher.h.
Referenced by getNrHitsRequired(), and TrajSeedMatcher().
|
private |
Definition at line 277 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and getNrValidLayersAlongTraj().
|
private |
Definition at line 279 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and TrajSeedMatcher().
|
private |
Definition at line 297 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 296 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 294 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 293 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 282 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), processSeed(), and TrajSeedMatcher().