CMS 3D CMS Logo

bLayer.h
Go to the documentation of this file.
1 #ifndef bLayer_H
2 #define bLayer_H
3 
11 #include "bSector.h"
12 
13 class MagBLayer;
14 
15 namespace magneticfield {
16 
17  class bLayer {
18  public:
20  bLayer(handles::const_iterator begin, handles::const_iterator end, bool debugFlag = false);
21 
23  ~bLayer() = default;
24 
26  const float RN() const { return theVolumes.front()->RN(); }
27 
29  const handles& volumes() const { return theVolumes; }
30 
32  // const bSector & sector(int i) const;
33 
35  double minR() const;
36 
37  // Depends on volumeHandle::maxR(), which actually returns max RN.
38  // (should be changed?)
39  // double maxR() const;
40 
42  MagBLayer* buildMagBLayer() const;
43 
44  private:
45  int size; //< the number of volumes
46 
47  // Check periodicity;
48  int bin(int i) const;
49 
50  std::vector<bSector> sectors; // the sectors in this layer
51  handles theVolumes; // pointer to all volumes in this layer
52 
53  mutable MagBLayer* mlayer;
54  const bool debug;
55  };
56 } // namespace magneticfield
57 
58 #endif
magneticfield::bLayer::bLayer
bLayer(handles::const_iterator begin, handles::const_iterator end, bool debugFlag=false)
Constructor from list of volumes.
Definition: bLayer.cc:20
mps_fire.i
i
Definition: mps_fire.py:428
magneticfield
Definition: MagFieldConfig.h:22
magneticfield::bLayer::theVolumes
handles theVolumes
Definition: bLayer.h:51
mps_fire.end
end
Definition: mps_fire.py:242
magneticfield::bLayer::minR
double minR() const
Return sector at i (handling periodicity)
Definition: bLayer.cc:120
magneticfield::bLayer::~bLayer
~bLayer()=default
Destructor.
bSector.h
magneticfield::bLayer::size
int size
Definition: bLayer.h:45
magneticfield::handles
std::vector< BaseVolumeHandle * > handles
Definition: BaseVolumeHandle.h:154
magneticfield::bLayer::sectors
std::vector< bSector > sectors
Definition: bLayer.h:50
magneticfield::bLayer
Definition: bLayer.h:17
magneticfield::bLayer::mlayer
MagBLayer * mlayer
Definition: bLayer.h:53
magneticfield::bLayer::volumes
const handles & volumes() const
Return the list of all volumes.
Definition: bLayer.h:29
magneticfield::bLayer::buildMagBLayer
MagBLayer * buildMagBLayer() const
Construct the MagBLayer upon request.
Definition: bLayer.cc:130
magneticfield::bLayer::RN
const float RN() const
Distance from center along normal of sectors.
Definition: bLayer.h:26
BeamSplash_cfg.debugFlag
debugFlag
Definition: BeamSplash_cfg.py:21
MagBLayer
Definition: MagBLayer.h:24
magneticfield::bLayer::bin
int bin(int i) const
Definition: bLayer.cc:109
magneticfield::bLayer::debug
const bool debug
Definition: bLayer.h:54