20 template <
class T>
T sqr(
T t) {
return t*
t;}
24 using namespace ctfseeding;
40 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer->
name();
51 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:" <<
"\n"
52 <<
" Origin = " << origin() <<
"\n"
53 <<
" Direction = " << direction() <<
"\n"
54 <<
" Eta = " << origin().eta() <<
"\n"
55 <<
" Phi = " << origin().phi();
67 <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
81 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n" << stateOnLayer
88 LogDebug(
"CosmicTrackingRegion") <<
"The initial state does not propagate to the layer surface.";
93 vector<DetWithState> compatDets = detLayer->
compatibleDets(tsos, prop, est);
94 LogDebug(
"CosmicTrackingRegion") <<
"Compatible dets = " << compatDets.size();
107 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
108 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
109 <<
" but the last one is always an invalid hit, by construction.";
112 typedef vector<TrajectoryMeasurement>::const_iterator IM;
114 for (IM im = meas.begin(); im != meas.end(); im++) {
117 if (ptrHit->isValid()) {
118 LogDebug(
"CosmicTrackingRegion") <<
"Hit found in the region at position: "<<ptrHit->globalPosition();
119 result.push_back( ptrHit );
122 else LogDebug(
"CosmicTrackingRegion") <<
"No valid hit";
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.
virtual TrackingRegion::Hits hits(const edm::Event &ev, const edm::EventSetup &es, const ctfseeding::SeedingLayer *layer) const
get hits from layer compatible with region constraints
const DetLayer * detLayer() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
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)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
Square< F >::type sqr(const F &f)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
tuple AnalyticalPropagator