|
|
Go to the documentation of this file.
36 for (vector<const DetRod*>::const_iterator it =
rods.begin(); it !=
rods.end(); it++) {
37 vector<const GeomDet*> tmp2 = (*it)->basicComponents();
56 <<
" R: " << specificSurface().radius() <<
" Per.: " << bf.
isPhiPeriodic()
62 for (vector<const DetRod*>::iterator
i =
theRods.begin();
i <
theRods.end();
i++) {
71 vector<DetWithState>
result;
73 LogTrace(
metname) <<
"MuRodBarrelLayer::compatibleDets, Cyl R: " << specificSurface().radius()
77 pair<bool, TrajectoryStateOnSurface> compat = compatible(startingState, prop, est);
79 LogTrace(
metname) <<
" MuRodBarrelLayer::compatibleDets: not compatible"
80 <<
" (should not have been selected!)";
81 return vector<DetWithState>();
93 LogTrace(
metname) <<
" MuRodBarrelLayer::compatibleDets, closestRod: " << closest
99 int nclosest =
result.size();
101 bool checknext =
false;
107 float xErr =
xError(predictedState, est);
117 if (fabs(dist) + xErr > halfWid) {
134 LogTrace(
metname) <<
" MuRodBarrelLayer::fastCompatibleDets, none on closest rod!";
147 LogTrace(
metname) <<
" MuRodBarrelLayer::fastCompatibleDets, next-to closest"
151 vector<DetWithState> nextRodDets = nextRod->
compatibleDets(tsos, prop, est);
152 result.insert(
result.end(), nextRodDets.begin(), nextRodDets.end());
156 <<
" on closest: " << nclosest <<
" # checked rods: " << 1 +
int(checknext);
165 cout <<
"dummy implementation of MuRodBarrelLayer::groupedCompatibleDets()" << endl;
166 return vector<DetGroup>();
174 const float nSigmas = 3.f;
178 return nSigmas * 0.5;
float xError(const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) const
std::vector< const GeometricSearchDet * > theComponents
virtual float width() const =0
LocalError positionError() const
GlobalPoint globalPosition() const
std::vector< const DetRod * > theRods
virtual void initialize()
~MuRodBarrelLayer() override
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
bool isPhiPeriodic() const
Returns true if the Dets are periodic in phi.
const Bounds & bounds() const
const std::vector< const GeometricSearchDet * > & components() const override
virtual const std::vector< const DetRod * > & rods() const
Return the vector of rods.
LocalPoint localPosition() const
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
MuRodBarrelLayer(std::vector< const DetRod * > &rods)
Constructor, takes ownership of pointers.
const std::vector< const GeomDet * > & basicComponents() const override
SubDetector subDetector() const override
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
const PositionType & position() const
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
std::vector< const GeomDet * > theBasicComps
BaseBinFinder< double > * theBinFinder
bool isPhiOverlapping() const
Returns true if any 2 of the Det overlap in phi.
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr, const Compare &comp)
const LocalTrajectoryError & localError() const
Geom::Phi< T > phi() const
virtual int binIndex(T pos) const =0
Return the index of bin at given position.
const std::string metname