12 const std::string strMaterialEffects = config.
getParameter< std::string >(
"MaterialEffects" );
15 const std::string strPropagationDirection = config.
getParameter< std::string >(
"PropagationDirection" );
36 Trajectory::DataContainer::iterator itM = trajectoryMeasurements.begin();
39 while ( itM != trajectoryMeasurements.end() )
41 if ( ( *itM ).updatedState().isValid() &&
useRecHit( ( *itM ).recHit() ) )
break;
44 if ( itM != trajectoryMeasurements.end() ) result.first = ( *itM ).updatedState();
47 while ( itM != trajectoryMeasurements.end() )
50 if (
useRecHit( aRecHit ) ) result.second.push_back( aRecHit );
71 reordered.reserve( original.size() );
73 Trajectory::DataContainer::const_reverse_iterator itM;
74 for ( itM = original.rbegin(); itM != original.rend(); ++itM )
76 reordered.push_back( *itM );
96 const GeomDet* det = hitPtr->det();
103 const ProjectedRecHit2D* projectedHit =
dynamic_cast< const ProjectedRecHit2D*
>( hitPtr.get() );
104 if ( projectedHit != 0 )
return false;
124 <<
"[TrajectoryFactoryBase::materialEffects] Unknown parameter: " << strME;
136 <<
"[TrajectoryFactoryBase::propagationDirection] Unknown parameter: " << strPD;
T getParameter(std::string const &) const
MaterialEffects theMaterialEffects
PropagationDirection thePropDir
MaterialEffects materialEffects(void) const
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
PropagationDirection const & direction() const
DataContainer const & measurements() const
TrajectoryFactoryBase(const edm::ParameterSet &config)
std::vector< TrajectoryMeasurement > DataContainer
bool sameSurface(const Surface &s1, const Surface &s2) const
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
PropagationDirection propagationDirection(void) const
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
virtual ~TrajectoryFactoryBase(void)
const PositionType & position() const