77 theResidMethod(config.getParameter<int>(
"ResidualMethod"))
80 edm::LogInfo(
"Alignment") <<
"@SUB=DualKalmanFactory" <<
"Factory created.";
99 ConstTrajTrackPairCollection::const_iterator itTracks = tracks.begin();
101 while (itTracks != tracks.end()) {
114 trajectories.push_back(ptr);
131 edm::LogError(
"Alignment") <<
"@SUB=DualKalmanFactory::trajectories"
132 <<
"Not implemented with ExternalPrediction.";
136 if (tracks.size() != external.size()) {
137 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=DualKalmanFactory::trajectories"
138 <<
"Inconsistent input:\n"
139 <<
"\tnumber of tracks = " << tracks.size()
140 <<
"\tnumber of external predictions = " << external.size();
209 std::vector<unsigned int> usedTrajMeasNums;
213 unsigned int nRefStateMeas = usedTrajMeasNums.size()/2;
216 for (
unsigned int iMeas = 0; iMeas < usedTrajMeasNums.size(); ++iMeas) {
217 if (iMeas < nRefStateMeas) {
219 }
else if (iMeas > nRefStateMeas) {
222 if (input.
trajMeasurements[usedTrajMeasNums[iMeas]].updatedState().isValid()) {
virtual const Trajectory::DataContainer orderedTrajectoryMeasurements(const Trajectory &trajectory) const
AlignmentAlgorithmBase::ConstTrajTrackPair ConstTrajTrackPair
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const
Produce the reference trajectories.
bool useRecHit(const TransientTrackingRecHit::ConstRecHitPointer &hitPtr) const
std::vector< TrajectoryMeasurement > DataContainer
const MaterialEffects materialEffects(void) const
virtual DualKalmanFactory * clone() const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
virtual ~DualKalmanFactory()
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
T const * product() const
DualKalmanFactory(const edm::ParameterSet &config)
const PropagationDirection propagationDirection(void) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
const DualKalmanInput referenceStateAndRecHits(const ConstTrajTrackPair &track) const