![]() |
![]() |
#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 |
![]() | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
![]() | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
NuclearTrackCorrector (const edm::ParameterSet &) | |
~NuclearTrackCorrector () | |
![]() | |
EDProducer () | |
virtual | ~EDProducer () |
![]() | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
![]() | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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 const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
![]() | |
CurrentProcessingContext const * | currentContext () const |
![]() | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
![]() | |
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 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, AlCaHLTBitMon_QueryRunRegistry::string, 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.
|
private |
Calculate the inital state to be used to buil the track.
Definition at line 312 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 278 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 238 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 204 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 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, AlCaHLTBitMon_QueryRunRegistry::string, swap_map(), theFitter, theG, theMF, thePropagator, and verbosity.
|
private |
Definition at line 337 of file NuclearTrackCorrector.cc.
References i, m_TrajToTrackCollection, and query::result.
Referenced by produce().
|
private |
Definition at line 127 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 120 of file NuclearTrackCorrector.h.
Referenced by produce().
|
private |
Definition at line 115 of file NuclearTrackCorrector.h.
|
private |
Definition at line 118 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 131 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), produce(), and swap_map().
|
private |
Definition at line 114 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 113 of file NuclearTrackCorrector.h.
Referenced by NuclearTrackCorrector(), and produce().
|
private |
Definition at line 130 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and NuclearTrackCorrector().
|
private |
Definition at line 125 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 123 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), newTrajNeeded(), and produce().
|
private |
Definition at line 128 of file NuclearTrackCorrector.h.
|
private |
Definition at line 124 of file NuclearTrackCorrector.h.
Referenced by getInitialState(), getTrackFromTrajectory(), and produce().
|
private |
Definition at line 126 of file NuclearTrackCorrector.h.
Referenced by getTrackFromTrajectory(), and produce().
|
private |
Definition at line 117 of file NuclearTrackCorrector.h.
Referenced by newTrajNeeded(), NuclearTrackCorrector(), and produce().