56 edm::LogInfo(
"Alignment") <<
"@SUB=DualTrajectoryFactory" 69 edm::LogWarning(
"Alignment") <<
"@SUB=DualTrajectoryFactory::trajectories" 71 <<
": You should probably use the DualBzeroTrajectoryFactory\n" 72 <<
"or fix this code to switch automatically as the ReferenceTrajectoryFactory does.";
75 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
77 while (itTracks != tracks.end()) {
87 trajectories.push_back(ptr);
103 if (tracks.size() != external.size()) {
105 <<
"@SUB=DualTrajectoryFactory::trajectories" 106 <<
"Inconsistent input:\n" 107 <<
"\tnumber of tracks = " << tracks.size() <<
"\tnumber of external predictions = " << external.size();
114 edm::LogWarning(
"Alignment") <<
"@SUB=DualTrajectoryFactory::trajectories" 116 <<
": You should probably use the DualBzeroTrajectoryFactory\n" 117 <<
"or fix this code to switch automatically as the ReferenceTrajectoryFactory does.";
120 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
121 ExternalPredictionCollection::const_iterator itExternal = external.begin();
123 while (itTracks != tracks.end()) {
127 if ((*itExternal).isValid()) {
142 ptr->setParameterErrors(externalParamErrors);
143 trajectories.push_back(ptr);
151 trajectories.push_back(ptr);
169 Trajectory::DataContainer::iterator itM;
171 for (itM = allTrajMeas.begin(); itM != allTrajMeas.end(); itM++) {
173 usedTrajMeas.push_back(*itM);
176 unsigned int iMeas = 0;
177 unsigned int nMeas = usedTrajMeas.size();
178 unsigned int nRefStateMeas = nMeas / 2;
180 for (itM = usedTrajMeas.begin(); itM != usedTrajMeas.end(); itM++, iMeas++) {
183 if (iMeas < nRefStateMeas) {
185 }
else if (iMeas > nRefStateMeas) {
188 if ((*itM).updatedState().isValid()) {
189 input.
refTsos = (*itM).updatedState();
210 const std::pair<TrajectoryStateOnSurface, double> tsosWithPath = propagator.
propagateWithPath(external, surface);
211 return tsosWithPath.first;
const TrajectoryStateOnSurface propagateExternal(const TrajectoryStateOnSurface &external, const Surface &surface, const MagneticField *magField) const
const DualTrajectoryInput referenceStateAndRecHits(const ConstTrajTrackPair &track) const
MaterialEffects materialEffects(void) const
Global3DPoint GlobalPoint
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
def setup(process, global_tag, zero_tesla=False)
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
static std::string const input
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the reference trajectories.
const SurfaceType & surface() const
std::vector< TrajectoryMeasurement > DataContainer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const bool allowZeroMaterial_
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
std::vector< ConstRecHitPointer > ConstRecHitContainer
DualTrajectoryFactory(const edm::ParameterSet &config)
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
~DualTrajectoryFactory() override
DualTrajectoryFactory * clone() const override
PropagationDirection propagationDirection(void) const
CLHEP::HepSymMatrix AlgebraicSymMatrix
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
A factory that produces instances of class ReferenceTrajectory from a given TrajTrackPairCollection.
T const * product() const
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &fts, const Plane &plane) const override
propagation to plane with path length