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() )
81 if ( tracks.size() != external.size() )
83 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories"
84 <<
"Inconsistent input:\n"
85 <<
"\tnumber of tracks = " << tracks.size()
86 <<
"\tnumber of external predictions = " << external.size();
93 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
94 ExternalPredictionCollection::const_iterator itExternal = external.begin();
96 while ( itTracks != tracks.end() )
100 if ( input.first.isValid() )
102 if ( (*itExternal).isValid() &&
sameSurface( (*itExternal).surface(), input.first.surface() ) )
111 AlgebraicSymMatrix externalParamErrors( asHepMatrix<5>( (*itExternal).localError().matrix() ) );
112 refTraj->setParameterErrors( externalParamErrors.sub( 2, 5 ) );
114 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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")