#include <RecoTracker/NuclearSeedGenerator/interface/NuclearTrackCorrector.h>
Public Member Functions | |
NuclearTrackCorrector (const edm::ParameterSet &) | |
~NuclearTrackCorrector () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Private Member Functions | |
TrajectoryStateOnSurface | getInitialState (const reco::Track *theT, TransientTrackingRecHit::RecHitContainer &hits, const TrackingGeometry *theG, const MagneticField *theMF) |
Calculate the inital state to be used to buil the track. More... | |
reco::TrackExtra | getNewTrackExtra (const AlgoProductCollection &algoresults) |
get a new TrackExtra from an AlgoProductCollection More... | |
bool | getTrackFromTrajectory (const Trajectory &newTraj, const TrajectoryRef &initialTrajRef, AlgoProductCollection &algoResults) |
Get the refitted track from the Trajectory. More... | |
bool | newTrajNeeded (Trajectory &newtrajectory, const TrajectoryRef &trajRef, const reco::NuclearInteraction &ni) |
check if the trajectory has to be refitted and get the new trajectory More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | swap_map (const edm::Handle< TrajectoryCollection > &trajColl, std::map< reco::TrackRef, edm::Ref< TrajectoryCollection > > &result) |
Private Attributes | |
std::vector< std::pair< unsigned int, unsigned int > > | Indice_Map |
int | int_Input_Hit_Distance |
int | KeepOnlyCorrectedTracks |
const TrajTrackAssociationCollection * | m_TrajToTrackCollection |
std::string | str_Input_NuclearInteraction |
std::string | str_Input_Trajectory |
TrackProducerAlgorithm< reco::Track > * | theAlgo |
edm::ESHandle< TrajectoryFitter > | theFitter |
edm::ESGetToken< TrajectoryFitter, TrajectoryFitter::Record > | theFitterToken |
edm::ESHandle< TrackerGeometry > | theG |
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | theGToken |
TransientInitialStateEstimator * | theInitialState |
edm::ESHandle< MagneticField > | theMF |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | theMFToken |
edm::ESHandle< Propagator > | thePropagator |
edm::ESGetToken< Propagator, TrackingComponentsRecord > | thePropagatorToken |
int | verbosity |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 67 of file NuclearTrackCorrector.h.
using NuclearTrackCorrector::AlgoProductCollection = TrackProducerAlgorithm<reco::Track>::AlgoProductCollection |
Definition at line 74 of file NuclearTrackCorrector.h.
Definition at line 72 of file NuclearTrackCorrector.h.
Definition at line 71 of file NuclearTrackCorrector.h.
Definition at line 70 of file NuclearTrackCorrector.h.
Definition at line 69 of file NuclearTrackCorrector.h.
|
explicit |
Definition at line 34 of file NuclearTrackCorrector.cc.
References deDxTools::esConsumes(), edm::ParameterSet::getParameter(), KeepOnlyCorrectedTracks, HLT_2023v12_cff::propagatorName, str_Input_NuclearInteraction, str_Input_Trajectory, AlCaHLTBitMon_QueryRunRegistry::string, theAlgo, theFitterToken, theGToken, theMFToken, thePropagatorToken, and verbosity.
|
override |
Definition at line 59 of file NuclearTrackCorrector.cc.
|
private |
Calculate the inital state to be used to buil the track.
Definition at line 305 of file NuclearTrackCorrector.cc.
References TrajectoryStateOnSurface::globalPosition(), hfClusterShapes_cfi::hits, trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), mag2(), trajectoryStateTransform::outerStateOnSurface(), TrajectoryStateOnSurface::rescaleError(), TrajectoryStateOnSurface::surface(), theG, and theMF.
Referenced by getTrackFromTrajectory().
|
private |
get a new TrackExtra from an AlgoProductCollection
Definition at line 264 of file NuclearTrackCorrector.cc.
References alongMomentum, TrajectoryStateOnSurface::curvilinearError(), Trajectory::direction(), Trajectory::firstMeasurement(), TrajectoryStateOnSurface::globalParameters(), Trajectory::lastMeasurement(), GlobalTrajectoryParameters::momentum(), AlCaHLTBitMon_ParallelJobs::p, GlobalTrajectoryParameters::position(), TrajectoryMeasurement::recHit(), TrajectoryMeasurement::updatedState(), and findQualityFiles::v.
Referenced by produce().
|
private |
Get the refitted track from the Trajectory.
Definition at line 221 of file NuclearTrackCorrector.cc.
References cms::cuda::bs, TrackProducerAlgorithm< T >::buildTrack(), getInitialState(), h, hfClusterShapes_cfi::hits, sistrip::SpyUtilities::isValid(), LogDebug, m_TrajToTrackCollection, ndof, edm::ESHandle< T >::product(), Trajectory::seed(), theAlgo, theFitter, theG, theMF, thePropagator, and Trajectory::validRecHits().
Referenced by produce().
|
private |
check if the trajectory has to be refitted and get the new trajectory
Definition at line 180 of file NuclearTrackCorrector.cc.
References alongMomentum, TrackerGeometry::idToDet(), createfilelist::int, LogDebug, visualization-live-secondInstance_cfg::m, PV3DBase< T, PVType, FrameType >::mag(), reco::Vertex::position(), Trajectory::push(), rpcPointValidation_cfi::recHit, mathSSE::sqrt(), GeomDet::surface(), theG, Surface::toGlobal(), verbosity, and reco::NuclearInteraction::vertex().
Referenced by produce().
|
overrideprivate |
Definition at line 61 of file NuclearTrackCorrector.cc.
References edm::RefToBase< T >::castTo(), dqmdumpme::first, edm::EventSetup::getHandle(), getNewTrackExtra(), getTrackFromTrajectory(), mps_fire::i, iEvent, Indice_Map, edm::AssociationMap< Tag >::insert(), KeepOnlyCorrectedTracks, reco::NuclearInteraction::likelihood(), LogDebug, m_TrajToTrackCollection, eostools::move(), newTrajNeeded(), reco::NuclearInteraction::primaryTrack(), edm::Handle< T >::product(), edm::AssociationMap< Tag >::refProd(), edm::second(), str_Input_NuclearInteraction, str_Input_Trajectory, swap_map(), theFitter, theFitterToken, theG, theGToken, theMF, theMFToken, thePropagator, thePropagatorToken, HLT_2023v12_cff::track, and verbosity.
|
private |
Definition at line 330 of file NuclearTrackCorrector.cc.
References mps_fire::i, m_TrajToTrackCollection, and mps_fire::result.
Referenced by produce().
|
private |
Definition at line 112 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 107 of file NuclearTrackCorrector.h.
|
private |
Definition at line 110 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 125 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), produce(), and swap_map().
|
private |
Definition at line 106 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 105 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 124 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and NuclearTrackCorrector().
|
private |
Definition at line 116 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 120 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 114 of file NuclearTrackCorrector.h.
Referenced by getInitialState(), getTrackFromTrajectory(), newTrajNeeded(), and produce().
|
private |
Definition at line 118 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 122 of file NuclearTrackCorrector.h.
|
private |
Definition at line 115 of file NuclearTrackCorrector.h.
Referenced by getInitialState(), getTrackFromTrajectory(), and produce().
|
private |
Definition at line 119 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 117 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 121 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 109 of file NuclearTrackCorrector.h.
Referenced by newTrajNeeded(), NuclearTrackCorrector(), and produce().