|
|
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++) {
70 vector<DetWithState>
result;
72 LogTrace(
metname) <<
"MTDTrayBarrelLayer::compatibleDets, Cyl R: " << specificSurface().radius()
76 pair<bool, TrajectoryStateOnSurface> compat = compatible(startingState, prop, est);
78 LogTrace(
metname) <<
" MTDTrayBarrelLayer::compatibleDets: not compatible"
79 <<
" (should not have been selected!)";
80 return vector<DetWithState>();
92 LogTrace(
metname) <<
" MTDTrayBarrelLayer::compatibleDets, closestRod: " << closest
99 int nclosest =
result.size();
102 bool checknext =
false;
108 float xErr =
xError(predictedState, est);
118 if (fabs(dist) + xErr > halfWid) {
135 LogTrace(
metname) <<
" MTDTrayBarrelLayer::fastCompatibleDets, none on closest rod!";
148 LogTrace(
metname) <<
" MTDTrayBarrelLayer::fastCompatibleDets, next-to closest"
152 vector<DetWithState> nextRodDets = nextRod->
compatibleDets(tsos, prop, est);
153 result.insert(
result.end(), nextRodDets.begin(), nextRodDets.end());
158 <<
" on closest: " << nclosest <<
" # checked rods: " << 1 +
int(checknext);
168 cout <<
"dummy implementation of MTDTrayBarrelLayer::groupedCompatibleDets()" << endl;
169 return vector<DetGroup>();
177 const float nSigmas = 3.f;
181 return nSigmas * 0.5;
std::vector< const DetRod * > theRods
const std::vector< const GeometricSearchDet * > & components() const override
virtual float width() const =0
std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
LocalError positionError() const
GlobalPoint globalPosition() const
virtual void initialize()
virtual const std::vector< const DetRod * > & rods() const
Return the vector of rods.
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
SubDetector subDetector() const override
bool isPhiPeriodic() const
Returns true if the Dets are periodic in phi.
const Bounds & bounds() const
std::vector< const GeometricSearchDet * > theComponents
LocalPoint localPosition() const
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
const std::vector< const GeomDet * > & basicComponents() const override
MTDTrayBarrelLayer(std::vector< const DetRod * > &rods)
Constructor, takes ownership of pointers.
const PositionType & position() const
std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const override
~MTDTrayBarrelLayer() override
BaseBinFinder< double > * theBinFinder
std::vector< const GeomDet * > theBasicComps
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
float xError(const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est) 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