12 materialEffects_(materialEffects(config.getParameter<std::
string>(
"MaterialEffects"))),
13 propDir_(propagationDirection(config.getParameter<std::
string>(
"PropagationDirection"))),
14 useWithoutDet_(config.getParameter<bool>(
"UseHitWithoutDet")),
15 useInvalidHits_(config.getParameter<bool>(
"UseInvalidHits")),
16 useProjectedHits_(config.getParameter<bool>(
"UseProjectedHits")),
17 useBeamSpot_(config.getParameter<bool>(
"UseBeamSpot")),
18 includeAPEs_(config.getParameter<bool>(
"IncludeAPEs"))
21 <<
"@SUB=TrajectoryFactoryBase"
23 <<
"' with following settings:"
45 Trajectory::DataContainer::iterator itM = trajectoryMeasurements.begin();
48 while ( itM != trajectoryMeasurements.end() )
50 if ( ( *itM ).updatedState().isValid() &&
useRecHit( ( *itM ).recHit() ) )
break;
53 if ( itM != trajectoryMeasurements.end() ) result.first = ( *itM ).updatedState();
56 while ( itM != trajectoryMeasurements.end() )
59 if (
useRecHit( aRecHit ) ) result.second.push_back( aRecHit );
80 reordered.reserve( original.size() );
82 Trajectory::DataContainer::const_reverse_iterator itM;
83 for ( itM = original.rbegin(); itM != original.rend(); ++itM )
85 reordered.push_back( *itM );
105 const GeomDet* det = hitPtr->det();
134 <<
"[TrajectoryFactoryBase::materialEffects] Unknown parameter: " << strME;
146 <<
"[TrajectoryFactoryBase::propagationDirection] Unknown parameter: " << strPD;
const bool useInvalidHits_
T getParameter(std::string const &) const
MaterialEffects materialEffects(void) const
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
const bool useWithoutDet_
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
PropagationDirection const & direction() const
DataContainer const & measurements() const
TrajectoryFactoryBase(const edm::ParameterSet &config)
const bool useProjectedHits_
std::vector< TrajectoryMeasurement > DataContainer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
bool sameSurface(const Surface &s1, const Surface &s2) const
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
const PropagationDirection propDir_
const edm::ParameterSet cfg_
PropagationDirection propagationDirection(void) const
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
virtual ~TrajectoryFactoryBase(void)
const PositionType & position() const
bool isProjected(TrackingRecHit const &hit)