|
|
Go to the documentation of this file.
20 theDeltaEta(conf.getParameter<double>(
"deltaEta")),
21 theDeltaPhi(conf.getParameter<double>(
"deltaPhi")),
22 theProximityPropagatorName(conf.getParameter<
std::
string>(
"propagatorProximity")),
23 theProximityPropagator(nullptr),
24 theEtaPhiEstimator(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";
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.";
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"
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 TrackerGeomDet * idToDet(DetId) const override
const std::string theProximityPropagatorName
T const * product() const
MuonCkfTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector &iC)
PropagationDirection direction() const
std::unique_ptr< Chi2MeasurementEstimatorBase > theEtaPhiEstimator
GlobalPoint globalPosition() const
const Chi2MeasurementEstimatorBase * theEstimator
const TrackerGeometry * geomTracker() const
TrajectoryStateOnSurface const & updatedState() const
void collectMeasurement(const DetLayer *layer, const std::vector< const DetLayer * > &nl, const TrajectoryStateOnSurface ¤tState, std::vector< TM > &result, int &invalidHits, const Propagator *) const
void findCompatibleMeasurements(const TrajectorySeed &seed, const TempTrajectory &traj, std::vector< TrajectoryMeasurement > &result) const override
unsigned int detId() const
std::vector< const DetLayer * > nextLayers(const DetLayer &detLayer, Args &&... args) const
FreeTrajectoryState const * freeState(bool withErrors=true) const
static std::string dumpMeasurements(const std::vector< TrajectoryMeasurement > &v)
const TrajectoryMeasurement & lastMeasurement() const
const DetLayer * detLayer(const DetId &id) const
obsolete method. Use idToLayer() instead.
const MeasurementTrackerEvent * theMeasurementTracker
constexpr std::array< uint8_t, layerIndexSize > layer
const MeasurementTracker & measurementTracker() const
const Propagator * theProximityPropagator
double theRescaleErrorIfFail
const GeometricSearchTracker * geometricSearchTracker() const
void setEvent_(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
const NavigationSchool * theNavigationSchool
const Propagator * forwardPropagator(const TrajectorySeed &seed) const
edm::ESWatcher< BaseCkfTrajectoryBuilder::Chi2MeasurementEstimatorRecord > theEstimatorWatcher
Log< level::Error, false > LogError
void rescaleError(double factor)
ConstRecHitPointer const & recHit() const
void setEvent_(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
GlobalVector globalMomentum() const
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
T getParameter(std::string const &) const
~MuonCkfTrajectoryBuilder() override
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
bool empty() const
True if trajectory has no measurements.