#include <RecoTracker/NuclearSeedGenerator/plugin/NuclearTrackCorrector.cc>
Public Types | |
typedef TrackProducerAlgorithm < reco::Track > ::AlgoProductCollection | AlgoProductCollection |
typedef TransientTrackingRecHit::ConstRecHitContainer | ConstRecHitContainer |
typedef edm::Ref < TrackCandidateCollection > | TrackCandidateRef |
typedef edm::Ref < TrajectoryCollection > | TrajectoryRef |
typedef edm::RefVector < TrajectorySeedCollection > | TrajectorySeedRefVector |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Private Member Functions | |
virtual void | endJob () |
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... | |
virtual 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 | |
edm::ParameterSet | conf_ |
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::ESHandle< TrackerGeometry > | theG |
TransientInitialStateEstimator * | theInitialState |
edm::ESHandle< MagneticField > | theMF |
edm::ESHandle< Propagator > | thePropagator |
int | verbosity |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 74 of file NuclearTrackCorrector.h.
typedef TrackProducerAlgorithm<reco::Track>::AlgoProductCollection NuclearTrackCorrector::AlgoProductCollection |
Definition at line 81 of file NuclearTrackCorrector.h.
Definition at line 80 of file NuclearTrackCorrector.h.
Definition at line 79 of file NuclearTrackCorrector.h.
Definition at line 78 of file NuclearTrackCorrector.h.
Definition at line 77 of file NuclearTrackCorrector.h.
|
explicit |
Definition at line 35 of file NuclearTrackCorrector.cc.
References edm::ParameterSet::getParameter(), KeepOnlyCorrectedTracks, str_Input_NuclearInteraction, str_Input_Trajectory, AlCaHLTBitMon_QueryRunRegistry::string, theAlgo, and verbosity.
NuclearTrackCorrector::~NuclearTrackCorrector | ( | ) |
Definition at line 58 of file NuclearTrackCorrector.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 200 of file NuclearTrackCorrector.cc.
|
private |
Calculate the inital state to be used to buil the track.
Definition at line 311 of file NuclearTrackCorrector.cc.
References TrajectoryStateOnSurface::globalPosition(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), mag2(), trajectoryStateTransform::outerStateOnSurface(), TrajectoryStateOnSurface::rescaleError(), TrajectoryStateOnSurface::surface(), and theMF.
Referenced by getTrackFromTrajectory().
|
private |
get a new TrackExtra from an AlgoProductCollection
Definition at line 277 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(), findQualityFiles::v, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by produce().
|
private |
Get the refitted track from the Trajectory.
Definition at line 237 of file NuclearTrackCorrector.cc.
References TrackProducerAlgorithm< T >::buildTrack(), getInitialState(), h, LogDebug, m_TrajToTrackCollection, edm::ESHandle< class >::product(), Trajectory::seed(), theAlgo, theFitter, theG, theMF, and thePropagator.
Referenced by produce().
|
private |
check if the trajectory has to be refitted and get the new trajectory
Definition at line 203 of file NuclearTrackCorrector.cc.
References alongMomentum, LogDebug, m, PV3DBase< T, PVType, FrameType >::mag(), reco::Vertex::position(), Trajectory::push(), mathSSE::sqrt(), theG, verbosity, and reco::NuclearInteraction::vertex().
Referenced by produce().
|
overrideprivatevirtual |
Implements edm::EDProducer.
Definition at line 63 of file NuclearTrackCorrector.cc.
References edm::RefToBase< T >::castTo(), conf_, event(), first, edm::EventSetup::get(), edm::Event::getByLabel(), getNewTrackExtra(), edm::ParameterSet::getParameter(), edm::Event::getRefBeforePut(), getTrackFromTrajectory(), i, Indice_Map, edm::AssociationMap< Tag >::insert(), KeepOnlyCorrectedTracks, reco::NuclearInteraction::likelihood(), LogDebug, m_TrajToTrackCollection, newTrajNeeded(), reco::NuclearInteraction::primaryTrack(), edm::Handle< T >::product(), edm::Event::put(), edm::second(), str_Input_NuclearInteraction, str_Input_Trajectory, AlCaHLTBitMon_QueryRunRegistry::string, swap_map(), theFitter, theG, theMF, thePropagator, and verbosity.
|
private |
Definition at line 336 of file NuclearTrackCorrector.cc.
References i, m_TrajToTrackCollection, and query::result.
Referenced by produce().
|
private |
Definition at line 126 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 119 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 114 of file NuclearTrackCorrector.h.
|
private |
Definition at line 117 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 130 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), produce(), and swap_map().
|
private |
Definition at line 113 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 112 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 129 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and NuclearTrackCorrector().
|
private |
Definition at line 124 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 122 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), newTrajNeeded(), and produce().
|
private |
Definition at line 127 of file NuclearTrackCorrector.h.
|
private |
Definition at line 123 of file NuclearTrackCorrector.h.
Referenced by getInitialState(), getTrackFromTrajectory(), and produce().
|
private |
Definition at line 125 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 116 of file NuclearTrackCorrector.h.
Referenced by newTrajNeeded(), NuclearTrackCorrector(), and produce().