26 theMass(config.getParameter<double>(
"ParticleMass")),
27 theMomentumEstimate(config.getParameter<double>(
"MomentumEstimate"))
29 edm::LogInfo(
"Alignment") <<
"@SUB=BzeroReferenceTrajectoryFactory"
48 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
50 while ( itTracks != tracks.end() )
54 if ( input.first.isValid() )
83 if ( tracks.size() != external.size() )
85 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories"
86 <<
"Inconsistent input:\n"
87 <<
"\tnumber of tracks = " << tracks.size()
88 <<
"\tnumber of external predictions = " << external.size();
95 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
96 ExternalPredictionCollection::const_iterator itExternal = external.begin();
98 while ( itTracks != tracks.end() )
102 if ( input.first.isValid() )
104 if ( (*itExternal).isValid() &&
sameSurface( (*itExternal).surface(), input.first.surface() ) )
116 AlgebraicSymMatrix externalParamErrors( asHepMatrix<5>( (*itExternal).localError().matrix() ) );
117 refTraj->setParameterErrors( externalParamErrors.sub( 2, 5 ) );
119 trajectories.push_back( refTraj );
MaterialEffects materialEffects(void) const
virtual ~BzeroReferenceTrajectoryFactory()
static std::string const input
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