|
|
Go to the documentation of this file.
32 edm::LogError(
"MTDDetRing") <<
"temporary dummy implementation of MTDDetRing::components()!!" << endl;
33 static const vector<const GeometricSearchDet*>
result;
55 return make_pair(
false, ms);
68 vector<DetWithState>
result;
71 pair<bool, TrajectoryStateOnSurface> compat =
compatible(startingState, prop, est);
74 <<
" (should not have been selected!)";
83 LogTrace(
metname) <<
" MTDDetRing::compatibleDets, closest det: " << closest
84 <<
" Phi: " << dets[closest]->surface().position().phi() <<
" impactPhi " << startPos.
phi();
91 int nclosest =
result.size();
99 if (
result.back().second.hasError()) {
100 dphi = nSigmas * atan(
sqrt(
result.back().second.localError().positionError().xx()) /
101 result.back().second.globalPosition().perp());
104 LogTrace(
metname) <<
" MTDDetRing::compatibleDets, closest not compatible!";
108 for (
int idet = closest + 1; idet < closest +
int(dets.size()) / 4 + 1; idet++) {
113 LogTrace(
metname) <<
" next det:" << idetp <<
" at Z: " << dets[idetp]->position().z()
114 <<
" phi: " << dets[idetp]->position().phi() <<
" FTS phi " << startPos.
phi() <<
" max dphi "
119 if (!
add(idetp,
result, tsos, prop, est))
124 for (
int idet = closest - 1; idet > closest -
int(dets.size()) / 4 - 1; idet--) {
129 LogTrace(
metname) <<
" previous det:" << idetp <<
" " << idet <<
" " << closest - dets.size() / 4 - 1
130 <<
" at Z: " << dets[idetp]->position().z() <<
" phi: " << dets[idetp]->position().phi()
131 <<
" FTS phi " << startPos.
phi() <<
" max dphi" << dphi;
135 if (!
add(idetp,
result, tsos, prop, est))
141 LogTrace(
metname) <<
" MTDDetRing::compatibleDets, size: " <<
result.size() <<
" on closest: " << nclosest
142 <<
" # checked dets: " << nnextdet + 1;
146 LogTrace(
metname) <<
" ***Ring not compatible,should have been discarded before!!!";
157 cout <<
"dummy implementation of MTDDetRod::groupedCompatibleDets()" << endl;
const BoundDisk & specificSurface() const
Return the ring surface as a BoundDisk.
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
GlobalPoint globalPosition() const
const std::vector< const GeometricSearchDet * > & components() const override
Returns basic components, if any.
virtual const Surface::PositionType & position() const
Returns position of the surface.
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est) const override
const std::vector< const GeomDet * > & basicComponents() const override
bool add(int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est) const
PeriodicBinFinderInPhi< float > BinFinderType
LocalPoint localPosition() const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
const PositionType & position() const
MTDDetRing(std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
Construct from iterators on GeomDet*.
int binIndex(T phi) const override
returns an index in the valid range for the bin that contains phi
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
BinFinderType theBinFinder
Geom::Phi< T > phi() const
const std::string metname