CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bSector.h
Go to the documentation of this file.
1 #ifndef bSector_H
2 #define bSector_H
3 
11 #include "bRod.h"
12 
13 class MagBSector;
14 
15 namespace magneticfield {
16 
17  class bSector {
18  public:
20  bSector();
21 
23  bSector(handles::const_iterator begin, handles::const_iterator end, bool debugVal = false);
24 
26  ~bSector() = default;
27 
29  const float RN() const { return volumes.front()->RN(); }
30 
32  const handles& getVolumes() const { return volumes; }
33 
35  MagBSector* buildMagBSector() const;
36 
37  private:
38  std::vector<bRod> rods; // the rods in this layer
39  handles volumes; // pointers to all volumes in the sector
40  mutable MagBSector* msector;
41  bool debug; // Allow assignment from other bSector objects
42  };
43 } // namespace magneticfield
44 
45 #endif
const float RN() const
Distance from center along normal of sectors.
Definition: bSector.h:29
MagBSector * msector
Definition: bSector.h:40
~bSector()=default
Destructor.
MagBSector * buildMagBSector() const
Construct the MagBSector upon request.
Definition: bSector.cc:133
std::vector< BaseVolumeHandle * > handles
bSector()
Default ctor is needed to have arrays.
Definition: bSector.cc:22
std::vector< bRod > rods
Definition: bSector.h:38
string end
Definition: dataset.py:937
const handles & getVolumes() const
Return all volumes in this sector.
Definition: bSector.h:32