19 template <
class T>
T sqr(
T t) {
return t*
t;}
23 using namespace ctfseeding;
39 LogDebug(
"CosmicTrackingRegion") <<
"Looking at hits on subdet/layer " << layer->
name();
50 LogDebug(
"CosmicTrackingRegion") <<
"The initial region characteristics are:" <<
"\n"
51 <<
" Origin = " << origin() <<
"\n"
52 <<
" Direction = " << direction() <<
"\n"
53 <<
" Eta = " << origin().eta() <<
"\n"
54 <<
" Phi = " << origin().phi();
66 <<
"The state used to find measurement with the measurement tracker is:\n" << tsos;
80 LogDebug(
"CosmicTrackingRegion") <<
"The initial state propagates to the layer surface: \n" << stateOnLayer
87 LogDebug(
"CosmicTrackingRegion") <<
"The initial state does not propagate to the layer surface.";
92 vector<DetWithState> compatDets = detLayer->
compatibleDets(tsos, prop, est);
93 LogDebug(
"CosmicTrackingRegion") <<
"Compatible dets = " << compatDets.size();
103 measurementTracker->update(ev);
105 vector<TrajectoryMeasurement> meas = lm.
measurements(*detLayer, tsos, prop, est);
106 LogDebug(
"CosmicTrackingRegion") <<
"Number of Trajectory measurements = " << meas.size()
107 <<
" but the last one is always an invalid hit, by construction.";
110 typedef vector<TrajectoryMeasurement>::const_iterator IM;
112 for (IM im = meas.begin(); im != meas.end(); im++) {
115 if (ptrHit->isValid()) {
116 LogDebug(
"CosmicTrackingRegion") <<
"Hit found in the region at position: "<<ptrHit->globalPosition();
117 result.push_back( ptrHit );
120 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.
TrajectoryStateOnSurface propagate(const FreeTrajectoryState &fts, const Plane &plane) const
propagation to plane
virtual TrackingRegion::Hits hits(const edm::Event &ev, const edm::EventSetup &es, const ctfseeding::SeedingLayer *layer) const
allowed eta range [eta_min, eta_max] interval
const DetLayer * detLayer() const
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
GlobalPoint globalPosition() const
static PlanePointer build(const PositionType &pos, const RotationType &rot, MediumProperties *mp=0)
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
FreeTrajectoryState * freeState(bool withErrors=true) const
Cos< T >::type cos(const T &t)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
T const * product() const
Square< F >::type sqr(const F &f)
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState