70 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
72 while (itTracks != tracks.end()) {
82 trajectories.push_back(ptr);
98 if (tracks.size() != external.size()) {
100 <<
"@SUB=DualBzeroTrajectoryFactory::trajectories"
101 <<
"Inconsistent input:\n"
102 <<
"\tnumber of tracks = " << tracks.size() <<
"\tnumber of external predictions = " << external.size();
108 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
109 ExternalPredictionCollection::const_iterator itExternal = external.begin();
111 while (itTracks != tracks.end()) {
115 if ((*itExternal).isValid()) {
129 ptr->setParameterErrors(externalParamErrors.sub(2, 5));
130 trajectories.push_back(ptr);
139 trajectories.push_back(ptr);
157 Trajectory::DataContainer::iterator itM;
159 for (itM = allTrajMeas.begin(); itM != allTrajMeas.end(); itM++) {
161 usedTrajMeas.push_back(*itM);
164 unsigned int iMeas = 0;
165 unsigned int nMeas = usedTrajMeas.size();
166 unsigned int nRefStateMeas = nMeas / 2;
168 for (itM = usedTrajMeas.begin(); itM != usedTrajMeas.end(); itM++, iMeas++) {
171 if (iMeas < nRefStateMeas) {
173 }
else if (iMeas > nRefStateMeas) {
176 if ((*itM).updatedState().isValid()) {
177 input.
refTsos = (*itM).updatedState();
198 const std::pair<TrajectoryStateOnSurface, double> tsosWithPath = propagator.
propagateWithPath(external, surface);
199 return tsosWithPath.first;
const TrajectoryStateOnSurface propagateExternal(const TrajectoryStateOnSurface &external, const Surface &surface, const MagneticField *magField) const
MaterialEffects materialEffects(void) const
DualBzeroTrajectoryFactory * clone() const override
const DualBzeroTrajectoryInput referenceStateAndRecHits(const ConstTrajTrackPair &track) const
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
auto const & tracks
cannot be loose
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
double theMomentumEstimate
~DualBzeroTrajectoryFactory() override
static std::string const input
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_MagFieldToken
bool getData(T &iHolder) const
DualBzeroTrajectoryFactory(const edm::ParameterSet &config, edm::ConsumesCollector &iC)
const SurfaceType & surface() const
std::vector< TrajectoryMeasurement > DataContainer
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &fts, const Plane &plane) const override
propagation to plane with path length
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const bool allowZeroMaterial_
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
std::vector< ConstRecHitPointer > ConstRecHitContainer
Log< level::Info, false > LogInfo
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
T getParameter(std::string const &) const
tuple config
parse the configuration file
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
A factory that produces instances of class ReferenceTrajectory from a given TrajTrackPairCollection.
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection