19 template <
class T>
T sqr(
T t) {
return t*
t;}
29 hits_(es, layer, result);
43 const DetLayer * detLayer = layer.detLayer();
44 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer.name();
55 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:" <<
"\n" 56 <<
" Origin = " << origin() <<
"\n" 57 <<
" Direction = " << direction() <<
"\n" 58 <<
" Eta = " << origin().eta() <<
"\n" 59 <<
" Phi = " << origin().phi();
62 float phi = dir.
phi();
71 <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
85 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n" << stateOnLayer
92 LogDebug(
"CosmicTrackingRegion") <<
"The initial state does not propagate to the layer surface.";
97 vector<DetWithState> compatDets = detLayer->
compatibleDets(tsos, prop, est);
98 LogDebug(
"CosmicTrackingRegion") <<
"Compatible dets = " << compatDets.size();
105 LayerMeasurements lm(theMeasurementTracker_->measurementTracker(), *theMeasurementTracker_);
106 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
107 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
108 <<
" but the last one is always an invalid hit, by construction.";
115 for (
auto const & im : meas) {
116 if(!im.recHit()->isValid())
continue;
119 cache.emplace_back(ptrHit);
120 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
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.
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
SeedingLayerSetsHits::Hits Hits
Square< F >::type sqr(const F &f)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
bool isUndef(TrackingRecHit const &hit)
T const * product() const