|
|
Go to the documentation of this file.
29 edm::LogError(
"MTDDetTray") <<
"temporary dummy implementation of MTDDetTray::components()!!" << endl;
30 static const vector<const GeometricSearchDet*>
result;
41 return make_pair(
false, ms);
54 vector<DetWithState>
result;
57 pair<bool, TrajectoryStateOnSurface> compat =
compatible(startingState, prop, est);
61 <<
" (should not have been selected!)";
70 LogTrace(
metname) <<
" MTDDetTray::compatibleDets, closest det: " << closest
71 <<
" pos: " << dets[closest]->surface().position() <<
" impact " << startPos;
78 int nclosest =
result.size();
89 float detHalfLen = closestPlane.bounds().length() / 2.;
91 for (
unsigned int idet = closest + 1; idet < dets.size(); idet++) {
94 LogTrace(
metname) <<
" negativeZ: det:" << idet <<
" pos " << nextPos.
y() <<
" maxDistance "
106 for (
int idet = closest - 1; idet >= 0; idet--) {
109 LogTrace(
metname) <<
" positiveZ: det:" << idet <<
" pos " << nextPos.
y() <<
" maxDistance "
123 LogTrace(
metname) <<
" MTDDetTray::compatibleDets, size: " <<
result.size() <<
" on closest: " << nclosest
124 <<
" # checked dets: " << nnextdet + 1;
127 LogTrace(
metname) <<
" ***Rod not compatible---should have been discarded before!!!";
136 cout <<
"dummy implementation of MTDDetTray::groupedCompatibleDets()" << endl;
GlobalPoint globalPosition() const
BinFinderType theBinFinder
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est) const override
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
const std::vector< const GeometricSearchDet * > & components() const override
Returns basic components, if any.
int binIndex(T z) const override
returns an index in the valid range for the bin closest to Z
GenericBinFinderInZ< float, GeomDet > BinFinderType
MTDDetTray(std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
Construct from iterators on GeomDet*.
virtual const Plane & specificSurface() const final
Return the rod surface as a Plane.
~MTDDetTray() override
Destructor.
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
bool add(int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
Query detector idet for compatible and add the output to result.
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
const PositionType & position() const
const std::vector< const GeomDet * > & basicComponents() const override
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
Geom::Phi< T > phi() const
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const =0
const std::string metname