CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MagBSlab.h
Go to the documentation of this file.
1 #ifndef MagBSlab_H
2 #define MagBSlab_H
3 
18 #include <vector>
19 
20 class MagVolume;
22 
23 class MagBSlab {
24 public:
26  MagBSlab(const std::vector<MagVolume*>& volumes, double zMin);
27 
29  virtual ~MagBSlab();
30 
32  const MagVolume * findVolume(const GlobalPoint & gp, double tolerance) const;
33 
35  double minZ() const { return theZMin;}
36 
37 private:
38  std::vector<MagVolume*> theVolumes;
39  double theZMin;
40 
41 };
42 #endif
43 
MagBSlab(const std::vector< MagVolume * > &volumes, double zMin)
Constructor.
Definition: MagBSlab.cc:18
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition: MagBSlab.cc:31
double minZ() const
Lower Z bound.
Definition: MagBSlab.h:35
virtual ~MagBSlab()
Destructor.
Definition: MagBSlab.cc:23
std::vector< MagVolume * > theVolumes
Definition: MagBSlab.h:38
double theZMin
Definition: MagBSlab.h:39