41 for (vector<const DetRod*>::const_iterator it=rods.begin();
42 it!=rods.end(); it++) {
43 vector<const GeomDet*> tmp2 = (*it)->basicComponents();
61 LogTrace(metname) <<
"Constructing MuRodBarrelLayer: " 64 <<
" R: " << specificSurface().radius()
72 for (vector <const DetRod*>::iterator
i =
theRods.begin();
77 vector<GeometricSearchDet::DetWithState>
83 vector<DetWithState>
result;
86 LogTrace(metname) <<
"MuRodBarrelLayer::compatibleDets, Cyl R: " 87 << specificSurface().radius()
91 pair<bool, TrajectoryStateOnSurface> compat =
92 compatible(startingState, prop, est);
94 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets: not compatible" 95 <<
" (should not have been selected!)";
96 return vector<DetWithState>();
101 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets, reached layer at: " 102 << tsos.globalPosition()
103 <<
" R = " << tsos.globalPosition().perp()
104 <<
" phi = " << tsos.globalPosition().phi();
110 LogTrace(metname) <<
" MuRodBarrelLayer::compatibleDets, closestRod: " << closest
112 <<
" FTS phi: " << tsos.globalPosition().phi();
116 int nclosest = result.size();
118 bool checknext =
false ;
121 if (!result.empty()) {
124 float xErr =
xError(predictedState, est);
133 if (fabs(dist) + xErr > halfWid) {
152 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets, none on closest rod!";
157 if (dist<0.) next = closest+1;
158 else next = closest-1;
164 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets, next-to closest" 165 <<
" rod: " << next <<
" dist " << dist
167 <<
" FTS phi: " << tsos.globalPosition().phi();
169 vector<DetWithState> nextRodDets =
171 result.insert(result.end(),
172 nextRodDets.begin(), nextRodDets.end());
176 LogTrace(metname) <<
" MuRodBarrelLayer::fastCompatibleDets: found: " 178 <<
" on closest: " << nclosest
179 <<
" # checked rods: " << 1 +
int(checknext);
190 cout <<
"dummy implementation of MuRodBarrelLayer::groupedCompatibleDets()" << endl;
191 return vector<DetGroup>();
200 const vector<const GeometricSearchDet*>&
207 const float nSigmas = 3.f;
211 else return nSigmas * 0.5;
virtual int binIndex(T pos) const =0
Return the index of bin at given position.
virtual void initialize()
const std::string metname
LocalPoint localPosition() const
Geom::Phi< T > phi() const
GlobalPoint globalPosition() const
const Bounds & bounds() const
LocalError positionError() const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual float width() const =0
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
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)
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
virtual SubDetector subDetector() const
const PositionType & position() const
MuRodBarrelLayer(std::vector< const DetRod * > &rods)
Constructor, takes ownership of pointers.
virtual const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
virtual ~MuRodBarrelLayer()