25 theMass(config.getParameter<double>(
"ParticleMass")),
26 theMomentumEstimate(config.getParameter<double>(
"MomentumEstimate")) {
27 edm::LogInfo(
"Alignment") <<
"@SUB=BzeroReferenceTrajectoryFactory" 41 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
43 while (itTracks != tracks.end()) {
46 if (input.first.isValid()) {
71 if (tracks.size() != external.size()) {
73 <<
"@SUB=BzeroReferenceTrajectoryFactory::trajectories" 74 <<
"Inconsistent input:\n" 75 <<
"\tnumber of tracks = " << tracks.size() <<
"\tnumber of external predictions = " << external.size();
82 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
83 ExternalPredictionCollection::const_iterator itExternal = external.begin();
85 while (itTracks != tracks.end()) {
88 if (input.first.isValid()) {
89 if ((*itExternal).isValid() &&
sameSurface((*itExternal).surface(), input.first.surface())) {
99 AlgebraicSymMatrix externalParamErrors(asHepMatrix<5>((*itExternal).localError().matrix()));
100 refTraj->setParameterErrors(externalParamErrors.sub(2, 5));
102 trajectories.push_back(refTraj);
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
MaterialEffects materialEffects(void) const
static std::string const input
~BzeroReferenceTrajectoryFactory() override
bool sameSurface(const Surface &s1, const Surface &s2) const
const bool allowZeroMaterial_
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
BzeroReferenceTrajectoryFactory(const edm::ParameterSet &config)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
double theMomentumEstimate
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
T const * product() const
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection