CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
bLayer.h
Go to the documentation of this file.
1 #ifndef bLayer_H
2 #define bLayer_H
3 
16 
17 class MagBLayer;
18 
20 public:
22  bLayer(handles::const_iterator begin, handles::const_iterator end);
23 
25  ~bLayer();
26 
28  const float RN() const {
29  return theVolumes.front()->RN();
30  }
31 
33  const handles & volumes() const {return theVolumes;}
34 
36  // const bSector & sector(int i) const;
37 
39  double minR() const;
40 
41  // Depends on volumeHandle::maxR(), which actually returns max RN.
42  // (should be changed?)
43  // double maxR() const;
44 
46  MagBLayer * buildMagBLayer() const;
47 
48 private:
49  int size; //< the number of volumes
50 
51  // Check periodicity;
52  int bin(int i) const;
53 
54  std::vector<bSector> sectors; // the sectors in this layer
55  handles theVolumes; // pointer to all volumes in this layer
56 
57  mutable MagBLayer * mlayer;
58 };
59 #endif
60 
std::vector< volumeHandle * > handles
int i
Definition: DBlmapReader.cc:9
const float RN() const
Distance from center along normal of sectors.
Definition: bLayer.h:28
int bin(int i) const
Definition: bLayer.cc:118
#define end
Definition: vmac.h:38
std::vector< bSector > sectors
Definition: bLayer.h:54
#define begin
Definition: vmac.h:31
MagBLayer * buildMagBLayer() const
Construct the MagBLayer upon request.
Definition: bLayer.cc:140
const handles & volumes() const
Return the list of all volumes.
Definition: bLayer.h:33
bLayer(handles::const_iterator begin, handles::const_iterator end)
Constructor from list of volumes.
Definition: bLayer.cc:21
double minR() const
Return sector at i (handling periodicity)
Definition: bLayer.cc:130