|
 |
Go to the documentation of this file.
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);
T const * product() const
std::vector< TrajectoryMeasurement > measurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
GlobalPoint globalPosition() const
TrackingRegion::Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const override
get hits from layer compatible with region constraints
bool isUndef(TrackingRecHit const &hit)
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
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
FreeTrajectoryState const * freeState(bool withErrors=true) const
SeedingLayerSetsHits::Hits Hits
static PlanePointer build(Args &&... args)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
Geom::Phi< T > phi() const