CMS 3D CMS Logo

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 #endif
MagBSlab::~MagBSlab
virtual ~MagBSlab()
Destructor.
Definition: MagBSlab.cc:20
MagBSlab::theVolumes
std::vector< MagVolume * > theVolumes
Definition: MagBSlab.h:38
MagBSlab::findVolume
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
Definition: MagBSlab.cc:26
MagBSlab
Definition: MagBSlab.h:23
MagBSlab::theZMin
double theZMin
Definition: MagBSlab.h:39
MagBSlab::minZ
double minZ() const
Lower Z bound.
Definition: MagBSlab.h:35
volumeBasedMagneticField_160812_cfi.volumes
volumes
Definition: volumeBasedMagneticField_160812_cfi.py:57
Point3DBase< float, GlobalTag >
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
photonAnalyzer_cfi.zMin
zMin
Definition: photonAnalyzer_cfi.py:94
MagBSlab::MagBSlab
MagBSlab(const std::vector< MagVolume * > &volumes, double zMin)
Constructor.
Definition: MagBSlab.cc:18
MagVolume
Definition: MagVolume.h:13
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:29
GlobalPoint.h