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 
18 
19 class MagBSlab;
20 
21 namespace magneticfield {
22 
23  class bSlab {
24  public:
26  bSlab(handles::const_iterator startIter, handles::const_iterator endIter, bool debugVal = false);
27 
29  ~bSlab() = default;
30 
32  const float RN() const { return volumes.front()->RN(); }
33 
35  // FIXME: use volumeHandle [max|min]Phi, which returns phi at median of
36  // phi plane (not absolute limits). Used by: bRod ctor (only for dphi)
37  Geom::Phi<float> minPhi() const;
38 
40  Geom::Phi<float> maxPhi() const;
41 
43  MagBSlab* buildMagBSlab() const;
44 
45  private:
46  handles volumes; // pointers to all volumes in the slab
47  mutable MagBSlab* mslab;
48  bool debug; // Allow assignment
49  };
50 } // namespace magneticfield
51 
52 #endif
const float RN() const
Distance from center along sector normal.
Definition: bSlab.h:32
bSlab(handles::const_iterator startIter, handles::const_iterator endIter, bool debugVal=false)
Constructor from list of volumes.
Definition: bSlab.cc:19
Geom::Phi< float > maxPhi() const
Boundary in phi.
Definition: bSlab.cc:47
std::vector< BaseVolumeHandle * > handles
~bSlab()=default
Destructor.
MagBSlab * mslab
Definition: bSlab.h:47
handles volumes
Definition: bSlab.h:46
MagBSlab * buildMagBSlab() const
Construct the MagBSlab upon request.
Definition: bSlab.cc:49
Geom::Phi< float > minPhi() const
Boundary in phi.
Definition: bSlab.cc:45