21 for (vector<MagELayer*>::const_iterator ilay =
theLayers.begin(); ilay !=
theLayers.end(); ++ilay) {
31 for (vector<MagELayer*>::const_reverse_iterator ilay =
theLayers.rbegin(); ilay !=
theLayers.rend(); ++ilay) {
32 if (Z + tolerance > (*ilay)->minZ()) {
33 if (Z - tolerance < (*ilay)->maxZ()) {
34 LogTrace(
"MagGeometry") <<
" Trying elayer at Z " << (*ilay)->minZ() <<
" " << Z << endl;
35 result = (*ilay)->findVolume(gp, tolerance);
36 LogTrace(
"MagGeometry") <<
"***In elayer " << (result ==
nullptr ?
" failed " :
" OK ") << endl;
41 if (result !=
nullptr)
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
std::vector< MagELayer * > theLayers
MagESector(std::vector< MagELayer * > &layers, Geom::Phi< float > phiMin)
Constructor.
virtual ~MagESector()
Destructor.