#include <MagELayer.h>
Public Member Functions | |
MagVolume * | findVolume (const GlobalPoint &gp, double tolerance) const |
Find the volume containing a point, with a given tolerance. | |
MagELayer (const std::vector< MagVolume * > &volumes, double zMin, double zMax) | |
Constructor. | |
double | maxZ () const |
Upper Z bound. | |
double | minZ () const |
Lower Z bound. | |
virtual | ~MagELayer () |
Destructor. | |
Private Attributes | |
std::vector< MagVolume * > | theVolumes |
double | theZMax |
double | theZMin |
A layer of volumes in an endcap sector.
Definition at line 18 of file MagELayer.h.
MagELayer::MagELayer | ( | const std::vector< MagVolume * > & | volumes, |
double | zMin, | ||
double | zMax | ||
) |
Constructor.
Definition at line 21 of file MagELayer.cc.
: theVolumes(volumes), theZMin(zMin), theZMax(zMax) {}
MagELayer::~MagELayer | ( | ) | [virtual] |
Destructor.
Definition at line 27 of file MagELayer.cc.
References theVolumes.
{ for (vector<MagVolume *>::const_iterator ivol = theVolumes.begin(); ivol != theVolumes.end(); ++ivol) { delete (*ivol); } }
MagVolume * MagELayer::findVolume | ( | const GlobalPoint & | gp, |
double | tolerance | ||
) | const |
Find the volume containing a point, with a given tolerance.
Definition at line 36 of file MagELayer.cc.
References theVolumes.
{ for(vector<MagVolume*>::const_iterator ivol = theVolumes.begin(); ivol != theVolumes.end(); ++ivol) { // FIXME : use a binfinder // TOFIX // if (verbose.debugOut) cout << " Trying volume " // << (static_cast<MagVolume6Faces*> (*ivol))->name << endl; if ( (*ivol)->inside(gp,tolerance) ) return (*ivol); } return 0; }
double MagELayer::maxZ | ( | ) | const [inline] |
double MagELayer::minZ | ( | ) | const [inline] |
std::vector<MagVolume*> MagELayer::theVolumes [private] |
Definition at line 36 of file MagELayer.h.
Referenced by findVolume(), and ~MagELayer().
double MagELayer::theZMax [private] |
Definition at line 38 of file MagELayer.h.
Referenced by maxZ().
double MagELayer::theZMin [private] |
Definition at line 37 of file MagELayer.h.
Referenced by minZ().