CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/MagneticField/Layers/interface/MagELayer.h

Go to the documentation of this file.
00001 #ifndef MagELayer_H
00002 #define MagELayer_H
00003 
00012 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00013 
00014 #include <vector>
00015 
00016 class MagVolume;
00017 
00018 class MagELayer {
00019 public:
00021   MagELayer(std::vector<MagVolume*> volumes, double zMin, double zMax);
00022 
00024   virtual ~MagELayer();
00025 
00027   MagVolume * findVolume(const GlobalPoint & gp, double tolerance) const;
00028 
00030   double minZ() const {return theZMin;}
00031 
00033   double maxZ() const {return theZMax;}
00034 
00035 private:
00036   std::vector<MagVolume*> theVolumes;
00037   double theZMin;
00038   double theZMax;
00039 };
00040 #endif
00041