20 template <
class T>
T sqr(
T t) {
return t*
t;}
24 using namespace ctfseeding;
33 hits_(ev, es, *layer, tmp);
34 result.reserve(tmp.size());
35 for (
auto h : tmp) result.emplace_back(*
h);
44 hits_(ev, es, layer, result);
60 const DetLayer * detLayer = layer.detLayer();
61 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer.name();
72 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:" <<
"\n"
73 <<
" Origin = " << origin() <<
"\n"
74 <<
" Direction = " << direction() <<
"\n"
75 <<
" Eta = " << origin().eta() <<
"\n"
76 <<
" Phi = " << origin().phi();
88 <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
102 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n" << stateOnLayer
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();
128 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
129 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
130 <<
" but the last one is always an invalid hit, by construction.";
137 for (
auto const & im : meas) {
138 if(!im.recHit()->isValid())
continue;
141 cache.emplace_back(ptrHit);
142 result.emplace_back(ptrHit);
std::vector< TrajectoryMeasurement > measurements(const DetLayer &layer, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
ctfseeding::SeedingLayer::Hits ctfHits
GlobalPoint globalPosition() 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)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual TrackingRegion::ctfHits hits(const edm::Event &ev, const edm::EventSetup &es, const ctfseeding::SeedingLayer *layer) const
void hits_(const edm::Event &ev, const edm::EventSetup &es, const T &layer, TrackingRegion::Hits &result) const
SeedingLayerSetsHits::Hits Hits
T const * product() const
std::vector< std::vector< double > > tmp
Square< F >::type sqr(const F &f)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
bool isUndef(TrackingRecHit const &hit)
tuple AnalyticalPropagator