30 hits_(es, layer, result);
40 const DetLayer* detLayer = layer.detLayer();
41 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer.name();
52 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:" 54 <<
" Origin = " << origin() <<
"\n" 55 <<
" Direction = " << direction() <<
"\n" 56 <<
" Eta = " << origin().eta() <<
"\n" 57 <<
" Phi = " << origin().phi();
60 float phi = dir.
phi();
66 LogDebug(
"CosmicTrackingRegion") <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
79 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n" 85 LogDebug(
"CosmicTrackingRegion") <<
"The initial state does not propagate to the layer surface.";
90 vector<DetWithState> compatDets = detLayer->
compatibleDets(tsos, prop, est);
91 LogDebug(
"CosmicTrackingRegion") <<
"Compatible dets = " << compatDets.size();
97 LayerMeasurements lm(theMeasurementTracker_->measurementTracker(), *theMeasurementTracker_);
98 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
99 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
100 <<
" but the last one is always an invalid hit, by construction.";
107 for (
auto const& im : meas) {
108 if (!im.recHit()->isValid())
112 cache.emplace_back(ptrHit);
113 result.emplace_back(ptrHit);
std::vector< TrajectoryMeasurement > measurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
TrackingRegion::Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const override
get hits from layer compatible with region constraints
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
GlobalPoint globalPosition() const
void hits_(const edm::EventSetup &es, const T &layer, TrackingRegion::Hits &result) const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
static PlanePointer build(Args &&...args)
FreeTrajectoryState const * freeState(bool withErrors=true) const
Cos< T >::type cos(const T &t)
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
SeedingLayerSetsHits::Hits Hits
Square< F >::type sqr(const F &f)
bool isUndef(TrackingRecHit const &hit)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
T const * product() const