32 cout <<
"temporary dummy implementation of MuDetRing::components()!!" << endl;
33 static const vector<const GeometricSearchDet*>
result;
50 LogTrace(metname) <<
" DEST: not valid" << endl;
55 return make_pair(
false, ms);
68 vector<DetWithState>
result;
71 pair<bool, TrajectoryStateOnSurface> compat =
compatible(startingState, prop, est);
73 LogTrace(metname) <<
" MuDetRing::compatibleDets: not compatible" 74 <<
" (should not have been selected!)";
83 LogTrace(metname) <<
" MuDetRing::compatibleDets, closest det: " << closest
84 <<
" Phi: " << dets[closest]->surface().position().phi() <<
" impactPhi " << startPos.
phi();
88 add(closest, result, tsos, prop, est);
90 int nclosest = result.size();
95 if (!result.empty()) {
97 if (result.back().second.hasError()) {
98 dphi = nSigmas * atan(
sqrt(result.back().second.localError().positionError().xx()) /
99 result.back().second.globalPosition().perp());
102 LogTrace(metname) <<
" MuDetRing::compatibleDets, closest not compatible!";
106 for (
int idet = closest + 1; idet < closest +
int(dets.size()) / 4 + 1; idet++) {
111 LogTrace(metname) <<
" next det:" << idetp <<
" at Z: " << dets[idetp]->position().z()
112 <<
" phi: " << dets[idetp]->position().phi() <<
" FTS phi " << startPos.
phi() <<
" max dphi " 115 if (!
add(idetp, result, tsos, prop, est))
120 for (
int idet = closest - 1; idet > closest -
int(dets.size()) / 4 - 1; idet--) {
125 LogTrace(metname) <<
" previous det:" << idetp <<
" " << idet <<
" " << closest - dets.size() / 4 - 1
126 <<
" at Z: " << dets[idetp]->position().z() <<
" phi: " << dets[idetp]->position().phi()
127 <<
" FTS phi " << startPos.
phi() <<
" max dphi" << dphi;
129 if (!
add(idetp, result, tsos, prop, est))
134 LogTrace(metname) <<
" MuDetRing::compatibleDets, size: " << result.size() <<
" on closest: " << nclosest
135 <<
" # checked dets: " << nnextdet + 1;
137 if (result.empty()) {
138 LogTrace(metname) <<
" ***Ring not compatible,should have been discarded before!!!";
149 cout <<
"dummy implementation of MuDetRod::groupedCompatibleDets()" << endl;
const std::string metname
LocalPoint localPosition() const
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
Geom::Phi< T > phi() const
int binIndex(T phi) const override
returns an index in the valid range for the bin that contains phi
GlobalPoint globalPosition() const
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est) const override
PeriodicBinFinderInPhi< float > BinFinderType
const std::vector< const GeometricSearchDet * > & components() const override
Returns basic components, if any.
virtual const Surface::PositionType & position() const
Returns position of the surface.
const std::vector< const GeomDet * > & basicComponents() const override
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
MuDetRing(std::vector< const GeomDet * >::const_iterator first, std::vector< const GeomDet * >::const_iterator last)
Construct from iterators on GeomDet*.
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
bool add(int idet, std::vector< DetWithState > &result, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est) const
const PositionType & position() const
const BoundDisk & specificSurface() const
Return the ring surface as a BoundDisk.
BinFinderType theBinFinder