27 for (vector<MagELayer *>::const_iterator ilay =
theLayers.begin();
41 for(vector<MagELayer*>::const_reverse_iterator ilay =
theLayers.rbegin();
44 if (Z+tolerance>(*ilay)->minZ()) {
45 if (Z-tolerance<(*ilay)->maxZ()) {
48 result = (*ilay)->findVolume(gp, tolerance);
58 if (result!=0)
return result;
const double Z[kNumberCalorimeter]
std::vector< MagELayer * > theLayers
MagESector(std::vector< MagELayer * > &layers, Geom::Phi< float > phiMin)
Constructor.
virtual ~MagESector()
Destructor.
MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.