CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
const bool debug
Definition: bLayer.h:54
std::vector< bSector > sectors
Definition: bLayer.h:50
double minR() const
Return sector at i (handling periodicity)
Definition: bLayer.cc:120
const handles & volumes() const
Return the list of all volumes.
Definition: bLayer.h:29
std::vector< BaseVolumeHandle * > handles
~bLayer()=default
Destructor.
bLayer(handles::const_iterator begin, handles::const_iterator end, bool debugFlag=false)
Constructor from list of volumes.
Definition: bLayer.cc:20
handles theVolumes
Definition: bLayer.h:51
const float RN() const
Distance from center along normal of sectors.
Definition: bLayer.h:26
MagBLayer * buildMagBLayer() const
Construct the MagBLayer upon request.
Definition: bLayer.cc:130
string end
Definition: dataset.py:937
MagBLayer * mlayer
Definition: bLayer.h:53
int bin(int i) const
Definition: bLayer.cc:109