69 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
71 while ( itTracks != tracks.end() )
75 if ( input.first.isValid() )
101 if ( tracks.size() != external.size() )
103 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories"
104 <<
"Inconsistent input:\n"
105 <<
"\tnumber of tracks = " << tracks.size()
106 <<
"\tnumber of external predictions = " << external.size();
113 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
114 ExternalPredictionCollection::const_iterator itExternal = external.begin();
116 while ( itTracks != tracks.end() )
120 if ( input.first.isValid() )
122 if ( (*itExternal).isValid() &&
sameSurface( (*itExternal).surface(), input.first.surface() ) )
131 AlgebraicSymMatrix externalParamErrors( asHepMatrix<5>( (*itExternal).localError().matrix() ) );
132 refTraj->setParameterErrors( externalParamErrors.sub( 2, 5 ) );
134 trajectories.push_back( refTraj );
T getParameter(std::string const &) const
MaterialEffects materialEffects(void) const
virtual ~BzeroReferenceTrajectoryFactory()
virtual BzeroReferenceTrajectoryFactory * clone() const
bool sameSurface(const Surface &s1, const Surface &s2) const
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
BzeroReferenceTrajectoryFactory(const edm::ParameterSet &config)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const
Produce the reference trajectories.
T const * product() const
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
#define DEFINE_EDM_PLUGIN(factory, type, name)
double theMomentumEstimate
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")