20 theDeltaEta(conf.getParameter<double>(
"deltaEta")),
21 theDeltaPhi(conf.getParameter<double>(
"deltaPhi")),
22 theProximityPropagatorName(conf.getParameter<
std::
string>(
"propagatorProximity")),
23 theProximityPropagator(
nullptr),
75 const std::vector<const DetLayer*>& nl,
80 for (std::vector<const DetLayer*>::const_iterator il = nl.begin(); il != nl.end(); il++) {
81 TSOS stateToUse = currentState;
84 LogDebug(
"CkfPattern") <<
" self propagating in findCompatibleMeasurements.\n from: \n" << stateToUse;
89 stateToUse = middle.
extrapolate(stateToUse, center, *prop);
93 LogDebug(
"CkfPattern") <<
"to: " << stateToUse;
97 std::vector<TM>
tmp = layerMeasurements.measurements((**il), stateToUse, *prop, *
theEstimator);
100 LogDebug(
"CkfPattern") <<
"only an invalid hit is found. trying differently";
103 LogDebug(
"CkfPattern") << tmp.size() <<
" measurements returned by LayerMeasurements";
114 result.insert(result.end() - invalidHits, tmp.begin(), tmp.end());
120 LogDebug(
"CkfPattern") <<
"starting from:\n" 128 std::vector<TrajectoryMeasurement>&
result)
const {
131 std::vector<const DetLayer*> nl;
134 LogDebug(
"CkfPattern") <<
"using JR patch for no measurement case";
141 const Surface* surface = &g->surface();
152 LogDebug(
"CkfPattern") <<
"using the layer of the seed first.";
169 if (result.empty() || (
unsigned int)invalidHits == result.size()) {
171 LogDebug(
"CkfPattern") <<
"Need to go to next layer to get measurements";
175 LogDebug(
"CkfPattern") <<
" there was no next layer with wellInside. Use the next with no check.";
188 <<
" to find measurements on next layers.";
201 LogDebug(
"CkfPattern") <<
" no next layers... going " << traj.
direction() <<
"\n from: \n" 211 if (result.size() > 1) {
216 bool afterInvalid =
false;
217 for (std::vector<TM>::const_iterator
i = result.begin();
i != result.end();
i++) {
218 if (!
i->recHit().isValid())
220 if (afterInvalid &&
i->recHit().isValid()) {
221 edm::LogError(
"CkfPattern") <<
"CkfTrajectoryBuilder error: valid hit after invalid!";
const Propagator * theProximityPropagator
void rescaleError(double factor)
T getParameter(std::string const &) const
const TrackingGeometry * geomTracker() const
ConstRecHitPointer const & recHit() const
bool empty() const
True if trajectory has no measurements.
double theRescaleErrorIfFail
const Propagator * forwardPropagator(const TrajectorySeed &seed) const
GlobalPoint globalPosition() const
virtual const GeomDet * idToDet(DetId) const =0
static std::string dumpMeasurements(const std::vector< TrajectoryMeasurement > &v)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
const TrajectoryMeasurement & lastMeasurement() const
PropagationDirection direction() const
void findCompatibleMeasurements(const TrajectorySeed &seed, const TempTrajectory &traj, std::vector< TrajectoryMeasurement > &result) const override
const std::string theProximityPropagatorName
FreeTrajectoryState const * freeState(bool withErrors=true) const
void setEvent_(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
~MuonCkfTrajectoryBuilder() override
const DetLayer * detLayer(const DetId &id) const
obsolete method. Use idToLayer() instead.
unsigned int detId() const
MuonCkfTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
const MeasurementTracker & measurementTracker() const
const MeasurementTrackerEvent * theMeasurementTracker
void collectMeasurement(const DetLayer *layer, const std::vector< const DetLayer * > &nl, const TrajectoryStateOnSurface ¤tState, std::vector< TM > &result, int &invalidHits, const Propagator *) const
PTrajectoryStateOnDet const & startingState() const
std::unique_ptr< Chi2MeasurementEstimatorBase > theEtaPhiEstimator
std::vector< const DetLayer * > nextLayers(const DetLayer &detLayer, Args &&...args) const
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< BaseCkfTrajectoryBuilder::Chi2MeasurementEstimatorRecord > theEstimatorWatcher
GlobalVector globalMomentum() const
const NavigationSchool * theNavigationSchool
TrajectoryStateOnSurface const & updatedState() const
void setEvent_(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
T const * product() const
const GeometricSearchTracker * geometricSearchTracker() const
const Chi2MeasurementEstimatorBase * theEstimator