|
|
Go to the documentation of this file.
70 ConstTrajTrackPairCollection::const_iterator itTracks =
tracks.begin();
72 while (itTracks !=
tracks.end()) {
75 if (
input.refTsos.isValid()) {
100 <<
"@SUB=DualBzeroTrajectoryFactory::trajectories"
101 <<
"Inconsistent input:\n"
102 <<
"\tnumber of tracks = " <<
tracks.size() <<
"\tnumber of external predictions = " <<
external.size();
109 ConstTrajTrackPairCollection::const_iterator itTracks =
tracks.begin();
110 ExternalPredictionCollection::const_iterator itExternal =
external.begin();
112 while (itTracks !=
tracks.end()) {
115 if (
input.refTsos.isValid()) {
116 if ((*itExternal).isValid()) {
131 ptr->setParameterErrors(externalParamErrors.sub(2, 5));
159 Trajectory::DataContainer::iterator itM;
161 for (itM = allTrajMeas.begin(); itM != allTrajMeas.end(); itM++) {
163 usedTrajMeas.push_back(*itM);
166 unsigned int iMeas = 0;
167 unsigned int nMeas = usedTrajMeas.size();
168 unsigned int nRefStateMeas = nMeas / 2;
170 for (itM = usedTrajMeas.begin(); itM != usedTrajMeas.end(); itM++, iMeas++) {
173 if (iMeas < nRefStateMeas) {
174 input.bwdRecHits.push_back(aRecHit);
175 }
else if (iMeas > nRefStateMeas) {
176 input.fwdRecHits.push_back(aRecHit);
178 if ((*itM).updatedState().isValid()) {
179 input.refTsos = (*itM).updatedState();
180 input.bwdRecHits.push_back(aRecHit);
181 input.fwdRecHits.push_back(aRecHit);
185 input.bwdRecHits.push_back(aRecHit);
200 const std::pair<TrajectoryStateOnSurface, double> tsosWithPath =
propagator.propagateWithPath(
external, surface);
201 return tsosWithPath.first;
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
static const std::string input
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
~DualBzeroTrajectoryFactory() override
double theMomentumEstimate
const AlgebraicSymMatrix55 & matrix() const
const TrajectoryStateOnSurface propagateExternal(const TrajectoryStateOnSurface &external, const Surface &surface, const MagneticField *magField) const
A factory that produces instances of class ReferenceTrajectory from a given TrajTrackPairCollection.
DualBzeroTrajectoryFactory * clone() const override
std::vector< TrajectoryMeasurement > DataContainer
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
PropagationDirection propagationDirection(void) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
std::vector< ConstRecHitPointer > ConstRecHitContainer
const DualBzeroTrajectoryInput referenceStateAndRecHits(const ConstTrajTrackPair &track) const
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
CLHEP::HepSymMatrix AlgebraicSymMatrix
MaterialEffects materialEffects(void) const
const bool allowZeroMaterial_
DualBzeroTrajectoryFactory(const edm::ParameterSet &config)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
const LocalTrajectoryError & localError() const
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection