#include <MagBLayer.h>
Public Member Functions | |
const MagVolume * | findVolume (const GlobalPoint &gp, double tolerance) const |
Find the volume containing a point, with a given tolerance. More... | |
MagBLayer (std::vector< MagBSector * > §ors, double rMin) | |
Constructor. More... | |
MagBLayer (MagVolume *aVolume, double rMin) | |
Constructor for a trivial layer consisting of one single volume. More... | |
double | minR () const |
Lowest radius of the layer. More... | |
virtual | ~MagBLayer () |
Destructor. More... | |
Private Attributes | |
PeriodicBinFinderInPhi< float > * | theBinFinder |
double | theRMin |
std::vector< MagBSector * > | theSectors |
MagVolume * | theSingleVolume |
A barrel layer (MagBLayer) groups volumes at the same distance to the origin. It consists of either 1 single volume (a cylinder) or 12 sectors in phi (MagBSector). Each sector consists of one or more rods (MagBRods) of equal width in phi. Rods consist of one or more slabs (MagBSlab); each one consisting of one or, in few cases, several volumes with the same lenght in Z.
Definition at line 23 of file MagBLayer.h.
MagBLayer::MagBLayer | ( | std::vector< MagBSector * > & | sectors, |
double | rMin | ||
) |
Constructor.
Definition at line 21 of file MagBLayer.cc.
References Geom::pi(), theBinFinder, and theSectors.
MagBLayer::MagBLayer | ( | MagVolume * | aVolume, |
double | rMin | ||
) |
Constructor for a trivial layer consisting of one single volume.
Definition at line 36 of file MagBLayer.cc.
|
virtual |
Destructor.
Definition at line 48 of file MagBLayer.cc.
References theBinFinder, theSectors, and theSingleVolume.
const MagVolume * MagBLayer::findVolume | ( | const GlobalPoint & | gp, |
double | tolerance | ||
) | const |
Find the volume containing a point, with a given tolerance.
Definition at line 60 of file MagBLayer.cc.
References newFWLiteAna::bin, PeriodicBinFinderInPhi< T >::binIndex(), gather_cfg::cout, verbose::debugOut, MagVolume::inside(), phi, PV3DBase< T, PVType, FrameType >::phi(), mps_fire::result, theBinFinder, theSectors, and theSingleVolume.
|
inline |
|
private |
Definition at line 48 of file MagBLayer.h.
Referenced by findVolume(), MagBLayer(), and ~MagBLayer().
|
private |
Definition at line 46 of file MagBLayer.h.
Referenced by minR().
|
private |
Definition at line 44 of file MagBLayer.h.
Referenced by findVolume(), MagBLayer(), and ~MagBLayer().
|
private |
Definition at line 45 of file MagBLayer.h.
Referenced by findVolume(), and ~MagBLayer().