CMS 3D CMS Logo

bSlab.h
Go to the documentation of this file.
1 #ifndef bSlab_H
2 #define bSlab_H
3 
12 #include "BaseVolumeHandle.h"
13 
15 
19 
20 class MagBSlab;
21 
22 namespace magneticfield {
23 
24  class bSlab {
25  public:
27  bSlab(handles::const_iterator startIter, handles::const_iterator endIter, bool debugVal = false);
28 
30  ~bSlab() = default;
31 
33  const float RN() const { return volumes.front()->RN(); }
34 
36  // FIXME: use volumeHandle [max|min]Phi, which returns phi at median of
37  // phi plane (not absolute limits). Used by: bRod ctor (only for dphi)
38  Geom::Phi<float> minPhi() const;
39 
41  Geom::Phi<float> maxPhi() const;
42 
44  MagBSlab* buildMagBSlab() const;
45 
46  private:
47  handles volumes; // pointers to all volumes in the slab
48  mutable MagBSlab* mslab;
49  bool debug; // Allow assignment
50  };
51 } // namespace magneticfield
52 
53 #endif
Geom::Phi< float > maxPhi() const
Boundary in phi.
Definition: bSlab.cc:48
const float RN() const
Distance from center along sector normal.
Definition: bSlab.h:33
bSlab(handles::const_iterator startIter, handles::const_iterator endIter, bool debugVal=false)
Constructor from list of volumes.
Definition: bSlab.cc:20
std::vector< BaseVolumeHandle * > handles
~bSlab()=default
Destructor.
MagBSlab * mslab
Definition: bSlab.h:48
handles volumes
Definition: bSlab.h:47
Geom::Phi< float > minPhi() const
Boundary in phi.
Definition: bSlab.cc:46
MagBSlab * buildMagBSlab() const
Construct the MagBSlab upon request.
Definition: bSlab.cc:50