|
|
Go to the documentation of this file.
28 const math::XYZPoint regOrigin(origin().x(), origin().y(), origin().z());
64 const DetLayer* detLayer = layer.detLayer();
65 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer.name();
76 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:"
78 <<
" Origin = " << origin() <<
"\n"
79 <<
" Direction = " << direction() <<
"\n"
80 <<
" Eta = " << origin().eta() <<
"\n"
81 <<
" Phi = " << origin().phi();
84 float phi =
dir.phi();
90 LogDebug(
"CosmicTrackingRegion") <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
103 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n"
109 LogDebug(
"CosmicTrackingRegion") <<
"The initial state does not propagate to the layer surface.";
114 vector<DetWithState> compatDets = detLayer->
compatibleDets(tsos, prop, est);
115 LogDebug(
"CosmicTrackingRegion") <<
"Compatible dets = " << compatDets.size();
121 LayerMeasurements lm(theMeasurementTracker_->measurementTracker(), *theMeasurementTracker_);
122 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
123 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
124 <<
" but the last one is always an invalid hit, by construction.";
131 for (
auto const& im : meas) {
132 if (!im.recHit()->isValid())
136 cache.emplace_back(ptrHit);
137 result.emplace_back(ptrHit);
T const * product() const
void checkTracks(reco::TrackCollection const &tracks, std::vector< bool > &mask) const override
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)
XYZPointD XYZPoint
point in space with cartesian internal representation
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
Abs< T >::type abs(const T &t)
std::vector< Track > TrackCollection
collection of Tracks
Geom::Phi< T > phi() const