#include <TrajSeedMatcher.h>
Classes | |
class | HitInfo |
struct | MatchInfo |
class | MatchingCuts |
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 HitInfo &hit1, const HitInfo &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::HitInfo | match2ndToNthHit (const TrajectorySeed &seed, const FreeTrajectoryState &trajState, const size_t hitNr, const GlobalPoint &prevHitPos, const GlobalPoint &vtxPos, const PropagatorWithMaterial &propagator) |
TrajSeedMatcher::HitInfo | matchFirstHit (const TrajectorySeed &seed, const TrajectoryStateOnSurface &trajState, const GlobalPoint &vtxPos, const PropagatorWithMaterial &propagator) |
bool | passesMatchSel (const HitInfo &hit, const size_t hitNr, const float scEt, const float scEta) const |
bool | passTrajPreSel (const GlobalPoint &hitPos, const GlobalPoint &candPos) const |
std::vector< HitInfo > | 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< 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, and useRecoVertex_.
|
default |
|
private |
Definition at line 245 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 75 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 61 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 324 of file TrajSeedMatcher.cc.
References minNrHits_, and minNrHitsValidLayerBins_.
Referenced by compatibleSeeds().
|
private |
Definition at line 263 of file TrajSeedMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, forwardPropagator_, TrackingRecHit::geographicalId(), FTSFromVertexToPointFactory::get(), getTrajStateFromPoint(), getZVtxFromExtrapolation(), TrajSeedMatcher::HitInfo::hit(), magField_, TrajSeedMatcher::HitInfo::pos(), 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 277 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 197 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 182 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 162 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 305 of file TrajSeedMatcher.cc.
References GeometricSearchDet::compatibleDets(), gsfElectronCkfTrackCandidateMaker_cff::estimator, MeasurementTrackerEvent::idToDet(), MeasurementDetWithData::isActive(), and measTkEvt_.
Referenced by getNrValidLayersAlongTraj().
|
static |
Definition at line 41 of file TrajSeedMatcher.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addVPSet(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ElectronNHitSeedProducer::fillDescriptions().
|
private |
Definition at line 225 of file TrajSeedMatcher.cc.
References getTrajStateFromPoint(), hfClusterShapes_cfi::hits, TrajectoryStateOnSurface::isValid(), and TrajectorySeed::recHits().
Referenced by processSeed().
|
private |
Definition at line 213 of file TrajSeedMatcher.cc.
References getTrajStateFromVtx(), hfClusterShapes_cfi::hits, TrajectoryStateOnSurface::isValid(), and TrajectorySeed::recHits().
Referenced by processSeed().
|
private |
Definition at line 253 of file TrajSeedMatcher.cc.
References Exception, and matchingCuts_.
Referenced by processSeed().
|
private |
Definition at line 174 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 126 of file TrajSeedMatcher.cc.
References backwardPropagator_, ALCARECOTkAlJpsiMuMu_cff::charge, PV3DBase< T, PVType, FrameType >::eta(), forwardPropagator_, FTSFromVertexToPointFactory::get(), getZVtxFromExtrapolation(), magField_, match2ndToNthHit(), matchFirstHit(), matchingCuts_, TrajectorySeed::nHits(), passesMatchSel(), TrajSeedMatcher::HitInfo::pos(), 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 172 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 219 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 220 of file TrajSeedMatcher.h.
Referenced by doEventSetup().
|
private |
Definition at line 224 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and getNrValidLayersAlongTraj().
|
private |
Definition at line 226 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and TrajSeedMatcher().
|
private |
Definition at line 218 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
staticprivate |
Definition at line 216 of file TrajSeedMatcher.h.
Referenced by doEventSetup().
|
staticprivate |
Definition at line 217 of file TrajSeedMatcher.h.
Referenced by passTrajPreSel().
|
private |
Definition at line 221 of file TrajSeedMatcher.h.
Referenced by compatibleSeeds(), doEventSetup(), getNrValidLayersAlongTraj(), and processSeed().
|
private |
Definition at line 229 of file TrajSeedMatcher.h.
Referenced by passesMatchSel(), processSeed(), and TrajSeedMatcher().
|
private |
Definition at line 222 of file TrajSeedMatcher.h.
Referenced by layerHasValidHits().
|
private |
Definition at line 236 of file TrajSeedMatcher.h.
Referenced by getNrHitsRequired(), and TrajSeedMatcher().
|
private |
Definition at line 237 of file TrajSeedMatcher.h.
Referenced by getNrHitsRequired(), and TrajSeedMatcher().
|
private |
Definition at line 223 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and getNrValidLayersAlongTraj().
|
private |
Definition at line 225 of file TrajSeedMatcher.h.
Referenced by doEventSetup(), and TrajSeedMatcher().
|
private |
Definition at line 243 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 242 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromPoint().
|
private |
Definition at line 240 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 239 of file TrajSeedMatcher.h.
Referenced by clearCache(), and getTrajStateFromVtx().
|
private |
Definition at line 228 of file TrajSeedMatcher.h.
Referenced by getNrValidLayersAlongTraj(), processSeed(), and TrajSeedMatcher().