test
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 
11 
12 #include <vector>
13 
14 class MagVolume;
15 
16 class MagELayer {
17 public:
19  MagELayer(const std::vector<MagVolume*>& volumes, double zMin, double zMax);
20 
22  virtual ~MagELayer();
23 
25  MagVolume * findVolume(const GlobalPoint & gp, double tolerance) const;
26 
28  double minZ() const {return theZMin;}
29 
31  double maxZ() const {return theZMax;}
32 
33 private:
34  std::vector<MagVolume*> theVolumes;
35  double theZMin;
36  double theZMax;
37 };
38 #endif
39 
MagELayer(const std::vector< MagVolume * > &volumes, double zMin, double zMax)
Constructor.
Definition: MagELayer.cc:19
double theZMin
Definition: MagELayer.h:35
double theZMax
Definition: MagELayer.h:36
double minZ() const
Lower Z bound.
Definition: MagELayer.h:28
std::vector< MagVolume * > theVolumes
Definition: MagELayer.h:34
virtual ~MagELayer()
Destructor.
Definition: MagELayer.cc:25
double maxZ() const
Upper Z bound.
Definition: MagELayer.h:31
MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition: MagELayer.cc:34