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 
20 #include <vector>
21 
22 class MagVolume;
24 
25 class MagBSlab {
26 public:
28  MagBSlab(std::vector<MagVolume*> volumes, double zMin);
29 
31  virtual ~MagBSlab();
32 
34  MagVolume * findVolume(const GlobalPoint & gp, double tolerance) const;
35 
37  double minZ() const { return theZMin;}
38 
39 private:
40  std::vector<MagVolume*> theVolumes;
41  double theZMin;
42 
43 };
44 #endif
45 
double minZ() const
Lower Z bound.
Definition: MagBSlab.h:37
MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition: MagBSlab.cc:33
virtual ~MagBSlab()
Destructor.
Definition: MagBSlab.cc:25
std::vector< MagVolume * > theVolumes
Definition: MagBSlab.h:40
MagBSlab(std::vector< MagVolume * > volumes, double zMin)
Constructor.
Definition: MagBSlab.cc:20
double theZMin
Definition: MagBSlab.h:41