![]() |
![]() |
#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 ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
Public Member Functions | |
NuclearTrackCorrector (const edm::ParameterSet &) | |
~NuclearTrackCorrector () | |
![]() | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
![]() | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 () |
![]() | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) 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) |
![]() | |
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 199 of file NuclearTrackCorrector.cc.
|
private |
Calculate the inital state to be used to buil the track.
Definition at line 310 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 276 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 236 of file NuclearTrackCorrector.cc.
References TrackProducerAlgorithm< T >::buildTrack(), getInitialState(), h, LogDebug, m_TrajToTrackCollection, ndof, 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 202 of file NuclearTrackCorrector.cc.
References alongMomentum, LogDebug, visualization-live-secondInstance_cfg::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(), plotBeamSpotDB::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::AssociationMap< Tag >::refProd(), edm::second(), str_Input_NuclearInteraction, str_Input_Trajectory, AlCaHLTBitMon_QueryRunRegistry::string, swap_map(), theFitter, theG, theMF, thePropagator, edm::helpers::KeyVal< K, V >::val, and verbosity.
|
private |
Definition at line 335 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().