#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 |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
NuclearTrackCorrector (const edm::ParameterSet &) | |
~NuclearTrackCorrector () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &) |
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 &) |
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) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 75 of file NuclearTrackCorrector.h.
typedef TrackProducerAlgorithm<reco::Track>::AlgoProductCollection NuclearTrackCorrector::AlgoProductCollection |
Definition at line 82 of file NuclearTrackCorrector.h.
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.
|
explicit |
Definition at line 36 of file NuclearTrackCorrector.cc.
References edm::ParameterSet::getParameter(), KeepOnlyCorrectedTracks, str_Input_NuclearInteraction, str_Input_Trajectory, theAlgo, and verbosity.
NuclearTrackCorrector::~NuclearTrackCorrector | ( | ) |
Definition at line 59 of file NuclearTrackCorrector.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 201 of file NuclearTrackCorrector.cc.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 207 of file NuclearTrackCorrector.cc.
|
private |
Calculate the inital state to be used to buil the track.
Definition at line 318 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 284 of file NuclearTrackCorrector.cc.
References alongMomentum, TrajectoryStateOnSurface::curvilinearError(), Trajectory::direction(), Trajectory::firstMeasurement(), TrajectoryStateOnSurface::globalParameters(), Trajectory::lastMeasurement(), GlobalTrajectoryParameters::momentum(), L1TEmulatorMonitor_cff::p, GlobalTrajectoryParameters::position(), TrajectoryMeasurement::recHit(), TrajectoryMeasurement::updatedState(), 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 244 of file NuclearTrackCorrector.cc.
References TrackProducerAlgorithm< T >::buildTrack(), getInitialState(), h, LogDebug, m_TrajToTrackCollection, edm::ESHandle< class >::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 210 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().
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 64 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, swap_map(), theFitter, theG, theMF, thePropagator, and verbosity.
|
private |
Definition at line 343 of file NuclearTrackCorrector.cc.
References i, m_TrajToTrackCollection, and query::result.
Referenced by produce().
|
private |
Definition at line 128 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 121 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 116 of file NuclearTrackCorrector.h.
|
private |
Definition at line 119 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 132 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), produce(), and swap_map().
|
private |
Definition at line 115 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 114 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 131 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and NuclearTrackCorrector().
|
private |
Definition at line 126 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 124 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), newTrajNeeded(), and produce().
|
private |
Definition at line 129 of file NuclearTrackCorrector.h.
|
private |
Definition at line 125 of file NuclearTrackCorrector.h.
Referenced by getInitialState(), getTrackFromTrajectory(), and produce().
|
private |
Definition at line 127 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 118 of file NuclearTrackCorrector.h.
Referenced by newTrajNeeded(), NuclearTrackCorrector(), and produce().