18 MagBSlab::MagBSlab(
const vector<MagVolume*>& volumes,
double zMin) : theVolumes(volumes), theZMin(zMin) {}
21 for (vector<MagVolume*>::const_iterator ivol =
theVolumes.begin(); ivol !=
theVolumes.end(); ++ivol) {
27 for (vector<MagVolume*>::const_iterator ivol =
theVolumes.begin(); ivol !=
theVolumes.end(); ++ivol) {
30 if ((*ivol)->inside(gp, tolerance))
MagBSlab(const std::vector< MagVolume * > &volumes, double zMin)
Constructor.
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
virtual ~MagBSlab()
Destructor.
std::vector< MagVolume * > theVolumes