40 for (vector<const DetRod*>::const_iterator it=rods.begin();
41 it!=rods.end(); it++) {
42 vector<const GeomDet*> tmp2 = (*it)->basicComponents();
60 LogTrace(metname) <<
"Constructing MuRodBarrelLayer: "
71 for (vector <const DetRod*>::iterator
i =
theRods.begin();
76 vector<GeometricSearchDet::DetWithState>
82 vector<DetWithState>
result;
85 LogTrace(metname) <<
"MuRodBarrelLayer::compatibleDets, Cyl R: "
90 pair<bool, TrajectoryStateOnSurface> compat =
93 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets: not compatible"
94 <<
" (should not have been selected!)";
95 return vector<DetWithState>();
100 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets, reached layer at: "
109 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets, closestRod: " << closest
115 int nclosest = result.size();
117 bool checknext =
false ;
120 if (!result.empty()) {
123 float xErr =
xError(predictedState, est);
132 if (fabs(dist) + xErr > halfWid) {
151 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets, none on closest rod!";
156 if (dist<0.) next = closest+1;
157 else next = closest-1;
163 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets, next-to closest"
164 <<
" rod: " << next <<
" dist " << dist
168 vector<DetWithState> nextRodDets =
170 result.insert(result.end(),
171 nextRodDets.begin(), nextRodDets.end());
175 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets: found: "
177 <<
" on closest: " << nclosest
178 <<
" # checked rods: " << 1 + int(checknext);
189 cout <<
"dummy implementation of MuRodBarrelLayer::groupedCompatibleDets()" << endl;
190 return vector<DetGroup>();
204 const vector<const GeometricSearchDet*>&
211 const float nSigmas = 3.f;
215 else return nSigmas * 0.5;
virtual void initialize()
const std::string metname
LocalPoint localPosition() const
Geom::Phi< T > phi() const
virtual int binIndex(T pos) const =0
Return the index of bin at given position.
GlobalPoint globalPosition() const
const Bounds & bounds() const
virtual bool hasGroups() const
LocalError positionError() const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
std::vector< const GeomDet * > theBasicComps
BaseBinFinder< double > * theBinFinder
std::vector< const GeometricSearchDet * > theComponents
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
std::vector< const DetRod * > theRods
const LocalTrajectoryError & localError() const
virtual const std::vector< const GeometricSearchDet * > & components() const
Returns basic components, if any.
virtual const BoundSurface & surface() const GCC11_FINAL
The surface of the GeometricSearchDet.
float xError(const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const
bool isPhiPeriodic() const
Returns true if the Dets are periodic in phi.
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const GCC11_FINAL
bool isPhiOverlapping() const
Returns true if any 2 of the Det overlap in phi.
virtual const std::vector< const GeomDet * > & basicComponents() const
virtual std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
volatile std::atomic< bool > shutdown_flag false
virtual SubDetector subDetector() const
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
virtual float width() const =0
const PositionType & position() const
virtual const BoundCylinder & specificSurface() const GCC11_FINAL
Extension of the interface.
MuRodBarrelLayer(std::vector< const DetRod * > &rods)
Constructor, takes ownership of pointers.
virtual ~MuRodBarrelLayer()