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()) {
35 cout <<
" Trying elayer at Z " << (*ilay)->minZ() <<
" " << Z << endl;
37 result = (*ilay)->findVolume(gp, tolerance);
39 cout <<
"***In elayer " << (result == 0 ?
" failed " :
" OK ") << endl;
45 if (result !=
nullptr)
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.