CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MagELayer.h
Go to the documentation of this file.
1 #ifndef MagELayer_H
2 #define MagELayer_H
3 
13 
14 #include <vector>
15 
16 class MagVolume;
17 
18 class MagELayer {
19 public:
21  MagELayer(std::vector<MagVolume*> volumes, double zMin, double zMax);
22 
24  virtual ~MagELayer();
25 
27  MagVolume * findVolume(const GlobalPoint & gp, double tolerance) const;
28 
30  double minZ() const {return theZMin;}
31 
33  double maxZ() const {return theZMax;}
34 
35 private:
36  std::vector<MagVolume*> theVolumes;
37  double theZMin;
38  double theZMax;
39 };
40 #endif
41 
double theZMin
Definition: MagELayer.h:37
double theZMax
Definition: MagELayer.h:38
double minZ() const
Lower Z bound.
Definition: MagELayer.h:30
std::vector< MagVolume * > theVolumes
Definition: MagELayer.h:36
virtual ~MagELayer()
Destructor.
Definition: MagELayer.cc:27
MagELayer(std::vector< MagVolume * > volumes, double zMin, double zMax)
Constructor.
Definition: MagELayer.cc:21
double maxZ() const
Upper Z bound.
Definition: MagELayer.h:33
MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition: MagELayer.cc:36