#include <RoadSearchTrackCandidateMakerAlgorithm.h>
Private Attributes | |
edm::ParameterSet | conf_ |
bool | CosmicReco_ |
double | cosmicSeedPt_ |
bool | CosmicTrackMerging_ |
bool | debug_ |
bool | debugCosmics_ |
double | initialVertexErrorXY_ |
bool | lstereo [128] |
const MagneticField * | magField |
double | maxPropagationDistance |
std::string | measurementTrackerName_ |
int | MinChunkLength_ |
int | nFoundMin_ |
bool | NoFieldCosmic_ |
bool | splitMatchedHits_ |
PropagatorWithMaterial * | theAloPropagator |
AnalyticalPropagator * | theAnalyticalPropagator |
double | theChi2Cut |
MeasurementEstimator * | theEstimator |
SiStripRecHitMatcher * | theHitMatcher |
const MeasurementTracker * | theMeasurementTracker |
unsigned int | theNumHitCut |
PropagatorWithMaterial * | thePropagator |
PropagatorWithMaterial * | theRevPropagator |
KFTrajectorySmoother * | theSmoother |
TrajectoryCleanerBySharedHits * | theTrajectoryCleaner |
TrajectoryStateUpdator * | theUpdator |
const TrackerGeometry * | trackerGeom |
const TransientTrackingRecHitBuilder * | ttrhBuilder |
Definition at line 52 of file RoadSearchTrackCandidateMakerAlgorithm.h.
RoadSearchTrackCandidateMakerAlgorithm::RoadSearchTrackCandidateMakerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 73 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, conf_, CosmicReco_, cosmicSeedPt_, CosmicTrackMerging_, debug_, debugCosmics_, edm::ParameterSet::getParameter(), initialVertexErrorXY_, maxPropagationDistance, measurementTrackerName_, MinChunkLength_, nFoundMin_, splitMatchedHits_, theChi2Cut, theEstimator, theNumHitCut, theTrajectoryCleaner, and theUpdator.
RoadSearchTrackCandidateMakerAlgorithm::~RoadSearchTrackCandidateMakerAlgorithm | ( | ) |
Definition at line 99 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References theEstimator, theTrajectoryCleaner, and theUpdator.
bool RoadSearchTrackCandidateMakerAlgorithm::chooseStartingLayers | ( | std::vector< std::pair< const DetLayer *, RoadSearchCloud::RecHitVector > > & | RecHitsByLayer, |
std::vector< std::pair< const DetLayer *, RoadSearchCloud::RecHitVector > >::iterator | ilyr0, | ||
const std::multimap< int, const DetLayer * > & | layer_map, | ||
std::set< const DetLayer * > & | good_layers, | ||
std::vector< const DetLayer * > & | middle_layers, | ||
RoadSearchCloud::RecHitVector & | recHits_middle | ||
) |
Definition at line 1186 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References CosmicReco_, lstereo, and nFoundMin_.
Referenced by run().
Trajectory RoadSearchTrackCandidateMakerAlgorithm::createSeedTrajectory | ( | FreeTrajectoryState & | fts, |
const TrackingRecHit * | InnerHit, | ||
const DetLayer * | innerHitLayer | ||
) |
Definition at line 1402 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References alongMomentum, TransientTrackingRecHitBuilder::build(), gather_cfg::cout, debug_, TrajectorySeed::direction(), MeasurementEstimator::estimate(), TrajectoryStateOnSurface::globalMomentum(), TrackerGeometry::idToDet(), edm::detail::isnan(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), SiStripRecHitMatcher::match(), oppositeToMomentum, PV3DBase< T, PVType, FrameType >::perp(), trajectoryStateTransform::persistentState(), PropagatorWithMaterial::propagate(), Propagator::propagationDirection(), Trajectory::push(), edm::OwnVector< T, P >::push_back(), GeomDet::surface(), theEstimator, theHitMatcher, thePropagator, theUpdator, trackerGeom, ttrhBuilder, and TrajectoryStateUpdator::update().
Referenced by run().
std::vector< Trajectory > RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory | ( | const Trajectory & | inputTrajectory, |
RoadSearchCloud::RecHitVector & | theLayerHits, | ||
const DetLayer * | innerHitLayer, | ||
const TrackingRecHit * | outerHit, | ||
const DetLayer * | outerHitLayer | ||
) |
Definition at line 1466 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References TransientTrackingRecHitBuilder::build(), gather_cfg::cout, debug_, GeometricSearchTracker::detLayer(), MeasurementEstimator::estimate(), MeasurementTracker::geometricSearchTracker(), TrajectoryStateOnSurface::globalPosition(), TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), TrajectoryStateOnSurface::localError(), TrackingRecHit::localPosition(), TrajectoryStateOnSurface::localPosition(), LogDebug, PV3DBase< T, PVType, FrameType >::mag(), SiStripRecHitMatcher::match(), maxPropagationDistance, Trajectory::measurements(), p1, p2, PV3DBase< T, PVType, FrameType >::perp(), GloballyPositioned< T >::position(), LocalTrajectoryError::positionError(), PropagatorWithMaterial::propagate(), Trajectory::push(), mathSSE::sqrt(), GeomDet::surface(), theEstimator, theHitMatcher, theMeasurementTracker, thePropagator, theUpdator, trackerGeom, ttrhBuilder, TrajectoryStateUpdator::update(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
std::vector< TrajectoryMeasurement > RoadSearchTrackCandidateMakerAlgorithm::FindBestHit | ( | const TrajectoryStateOnSurface & | tsosBefore, |
const std::set< const GeomDet * > & | theDets, | ||
edm::OwnVector< TrackingRecHit > & | theHits | ||
) |
Definition at line 892 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References edm::OwnVector< T, P >::begin(), TransientTrackingRecHitBuilder::build(), gather_cfg::cout, debug_, GeometricSearchTracker::detLayer(), edm::OwnVector< T, P >::end(), MeasurementEstimator::estimate(), MeasurementTracker::geometricSearchTracker(), TrajectoryStateOnSurface::globalPosition(), TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), PV3DBase< T, PVType, FrameType >::mag(), maxPropagationDistance, PropagatorWithMaterial::propagate(), TrajectoryStateOnSurface::surface(), theEstimator, theMeasurementTracker, thePropagator, theUpdator, trackerGeom, ttrhBuilder, and TrajectoryStateUpdator::update().
std::vector< TrajectoryMeasurement > RoadSearchTrackCandidateMakerAlgorithm::FindBestHits | ( | const TrajectoryStateOnSurface & | tsosBefore, |
const std::set< const GeomDet * > & | theDets, | ||
const SiStripRecHitMatcher * | theHitMatcher, | ||
edm::OwnVector< TrackingRecHit > & | theHits | ||
) |
Definition at line 952 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References edm::OwnVector< T, P >::begin(), TransientTrackingRecHitBuilder::build(), gather_cfg::cout, debug_, GeometricSearchTracker::detLayer(), edm::OwnVector< T, P >::end(), MeasurementEstimator::estimate(), TrajectoryMeasurement::estimate(), MeasurementTracker::geometricSearchTracker(), TrajectoryStateOnSurface::globalPosition(), TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), PV3DBase< T, PVType, FrameType >::mag(), SiStripRecHitMatcher::match(), maxPropagationDistance, LocalTrajectoryError::positionError(), PropagatorWithMaterial::propagate(), TrajectoryMeasurement::recHit(), python.multivaluedict::sort(), mathSSE::sqrt(), GeomDet::surface(), TrajectoryStateOnSurface::surface(), theEstimator, theMeasurementTracker, thePropagator, theUpdator, trackerGeom, ttrhBuilder, TrajectoryStateUpdator::update(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
std::vector< TrajectoryMeasurement > RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet | ( | const TrajectoryStateOnSurface & | tsosBefore, |
const std::set< const GeomDet * > & | theDets, | ||
edm::OwnVector< TrackingRecHit > & | theHits | ||
) |
Definition at line 830 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References edm::OwnVector< T, P >::begin(), TransientTrackingRecHitBuilder::build(), GeometricSearchTracker::detLayer(), edm::OwnVector< T, P >::end(), MeasurementEstimator::estimate(), MeasurementTracker::geometricSearchTracker(), TrajectoryStateOnSurface::globalPosition(), TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), PV3DBase< T, PVType, FrameType >::mag(), maxPropagationDistance, PropagatorWithMaterial::propagate(), TrajectoryStateOnSurface::surface(), theEstimator, theMeasurementTracker, thePropagator, theUpdator, trackerGeom, ttrhBuilder, and TrajectoryStateUpdator::update().
FreeTrajectoryState RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory | ( | const edm::EventSetup & | es, |
const TrackingRecHit * | InnerHit, | ||
const TrackingRecHit * | OuterHit | ||
) |
Definition at line 1241 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References abs, alpha, FastLine::c(), funct::C, funct::cos(), CosmicReco_, cosmicSeedPt_, gather_cfg::cout, GlobalErrorBase< T, ErrorWeightType >::cxx(), GlobalErrorBase< T, ErrorWeightType >::czz(), debug_, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), initialVertexErrorXY_, SurfaceOrientation::inner, FastHelix::isValid(), linearFit(), TrackingRecHit::localPosition(), TrackingRecHit::localPositionError(), LogDebug, M_PI, magField, FastLine::n1(), FastLine::n2(), NoFieldCosmic_, SurfaceOrientation::outer, FreeTrajectoryState::parameters(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), lumiQueryAPI::q, funct::sin(), mathSSE::sqrt(), FastHelix::stateAtVertex(), theAloPropagator, thePropagator, theRevPropagator, GeomDet::toGlobal(), trackerGeom, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
FreeTrajectoryState RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet | ( | const edm::EventSetup & | es, |
const TrackingRecHit * | InnerHit, | ||
const TrackingRecHit * | MiddleHit, | ||
const TrackingRecHit * | OuterHit | ||
) |
Definition at line 1337 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References abs, FastLine::c(), funct::C, DeDxDiscriminatorTools::charge(), GlobalTrajectoryParameters::charge(), CosmicReco_, gather_cfg::cout, debug_, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), initialVertexErrorXY_, SurfaceOrientation::inner, edm::detail::isnan(), FastHelix::isValid(), linearFit(), TrackingRecHit::localPosition(), LogDebug, magField, GlobalTrajectoryParameters::momentum(), FastLine::n2(), SurfaceOrientation::outer, FreeTrajectoryState::parameters(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), GlobalTrajectoryParameters::position(), FastHelix::stateAtVertex(), theAloPropagator, thePropagator, theRevPropagator, GeomDet::toGlobal(), trackerGeom, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
TrackCandidateCollection RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates | ( | std::vector< Trajectory > & | theTrajectories | ) |
Definition at line 1574 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References alongMomentum, TrajectoryMeasurement::backwardPredictedState(), TrajectoryCleanerBySharedHits::clean(), clone(), CosmicTrackMerging_, gather_cfg::cout, debug_, debugCosmics_, GeometricSearchTracker::detLayer(), MeasurementEstimator::estimate(), TrajectoryMeasurement::forwardPredictedState(), MeasurementTracker::geometricSearchTracker(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), i, TrackerGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), j, gen::k, Trajectory::lastMeasurement(), PV3DBase< T, PVType, FrameType >::mag(), maxPropagationDistance, Trajectory::measurements(), trajectoryStateTransform::persistentState(), PV3DBase< T, PVType, FrameType >::phi(), AnalyticalPropagator::propagate(), PropagatorWithMaterial::propagate(), Trajectory::push(), edm::OwnVector< T, P >::push_back(), DetId::rawId(), TrajectoryMeasurement::recHit(), Trajectory::recHits(), Trajectory::seed(), splitMatchedHits_, evf::utils::state, GeomDet::surface(), theAloPropagator, theAnalyticalPropagator, theEstimator, theMeasurementTracker, theSmoother, theTrajectoryCleaner, theUpdator, trackerGeom, KFTrajectorySmoother::trajectories(), TrajectoryStateUpdator::update(), TrajectoryMeasurement::updatedState(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by run().
void RoadSearchTrackCandidateMakerAlgorithm::run | ( | const RoadSearchCloudCollection * | input, |
const edm::Event & | e, | ||
const edm::EventSetup & | es, | ||
TrackCandidateCollection & | output | ||
) |
Runs the algorithm.
Definition at line 107 of file RoadSearchTrackCandidateMakerAlgorithm.cc.
References alongMomentum, AnalyticalPropagator_cfi::AnalyticalPropagator, anyDirection, chooseStartingLayers(), TrajectoryCleanerBySharedHits::clean(), conf_, CosmicReco_, gather_cfg::cout, createSeedTrajectory(), debug_, debugCosmics_, GeometricSearchTracker::detLayer(), TrajectorySeed::direction(), MeasurementEstimator::estimate(), extrapolateTrajectory(), FindBestHits(), MeasurementTracker::geometricSearchTracker(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), TrajectoryStateOnSurface::globalPosition(), FreeTrajectoryState::hasError(), i, TrackerGeometry::idToDet(), initialTrajectory(), initialTrajectoryFromTriplet(), MagneticField::inTesla(), TrajectoryStateOnSurface::isValid(), Trajectory::isValid(), KFTrajectorySmootherESProducer_cfi::KFTrajectorySmoother, Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), LogDebug, lstereo, PV3DBase< T, PVType, FrameType >::mag(), magField, maxPropagationDistance, Trajectory::measurements(), measurementTrackerName_, MinChunkLength_, nFoundMin_, NoFieldCosmic_, oppositeToMomentum, PV3DBase< T, PVType, FrameType >::perp(), trajectoryStateTransform::persistentState(), LocalTrajectoryError::positionError(), PrepareTrackCandidates(), edm::ESHandle< class >::product(), edm::OwnVector< T, P >::push_back(), TrajectoryMeasurement::recHit(), edm::second(), edm::OwnVector< T, P >::size(), python.multivaluedict::sort(), mathSSE::sqrt(), GeomDet::surface(), theAloPropagator, theAnalyticalPropagator, theEstimator, theHitMatcher, theMeasurementTracker, theNumHitCut, thePropagator, theRevPropagator, theSmoother, theTrajectoryCleaner, theUpdator, GeomDet::toGlobal(), patCandidatesForDimuonsSequences_cff::tracker, trackerGeom, KFTrajectorySmoother::trajectories(), ttrhBuilder, TrajectoryStateUpdator::update(), MeasurementTracker::update(), TrajectoryMeasurement::updatedState(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by RoadSearchTrackCandidateMaker::produce().
|
private |
Definition at line 113 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 117 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by chooseStartingLayers(), initialTrajectory(), initialTrajectoryFromTriplet(), RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 125 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), and RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 119 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), and RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 131 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), initialTrajectory(), initialTrajectoryFromTriplet(), PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 132 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 123 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), initialTrajectoryFromTriplet(), and RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 150 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by chooseStartingLayers(), and run().
|
private |
Definition at line 137 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), initialTrajectoryFromTriplet(), and run().
|
private |
Definition at line 127 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 129 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 120 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 121 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by chooseStartingLayers(), RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 118 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), and run().
|
private |
Definition at line 124 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), and RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 140 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), initialTrajectoryFromTriplet(), PrepareTrackCandidates(), and run().
|
private |
Definition at line 142 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), and run().
|
private |
Definition at line 116 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 144 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), run(), and ~RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 145 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), and run().
|
private |
Definition at line 134 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), PrepareTrackCandidates(), and run().
|
private |
Definition at line 115 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by RoadSearchTrackCandidateMakerAlgorithm(), and run().
|
private |
Definition at line 139 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), initialTrajectory(), initialTrajectoryFromTriplet(), and run().
|
private |
Definition at line 141 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by initialTrajectory(), initialTrajectoryFromTriplet(), and run().
|
private |
Definition at line 146 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), and run().
|
private |
Definition at line 148 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), run(), and ~RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 143 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), PrepareTrackCandidates(), RoadSearchTrackCandidateMakerAlgorithm(), run(), and ~RoadSearchTrackCandidateMakerAlgorithm().
|
private |
Definition at line 135 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), initialTrajectory(), initialTrajectoryFromTriplet(), PrepareTrackCandidates(), and run().
|
private |
Definition at line 136 of file RoadSearchTrackCandidateMakerAlgorithm.h.
Referenced by createSeedTrajectory(), extrapolateTrajectory(), FindBestHit(), FindBestHits(), FindBestHitsByDet(), and run().