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 
14 
15 class MagBLayer;
16 
18 public:
20  bLayer(handles::const_iterator begin, handles::const_iterator end);
21 
23  ~bLayer();
24 
26  const float RN() const {
27  return theVolumes.front()->RN();
28  }
29 
31  const handles & volumes() const {return theVolumes;}
32 
34  // const bSector & sector(int i) const;
35 
37  double minR() const;
38 
39  // Depends on volumeHandle::maxR(), which actually returns max RN.
40  // (should be changed?)
41  // double maxR() const;
42 
44  MagBLayer * buildMagBLayer() const;
45 
46 private:
47  int size; //< the number of volumes
48 
49  // Check periodicity;
50  int bin(int i) const;
51 
52  std::vector<bSector> sectors; // the sectors in this layer
53  handles theVolumes; // pointer to all volumes in this layer
54 
55  mutable MagBLayer * mlayer;
56 };
57 #endif
58 
std::vector< volumeHandle * > handles
int i
Definition: DBlmapReader.cc:9
const float RN() const
Distance from center along normal of sectors.
Definition: bLayer.h:26
int bin(int i) const
Definition: bLayer.cc:116
#define end
Definition: vmac.h:37
std::vector< bSector > sectors
Definition: bLayer.h:52
#define begin
Definition: vmac.h:30
MagBLayer * buildMagBLayer() const
Construct the MagBLayer upon request.
Definition: bLayer.cc:138
const handles & volumes() const
Return the list of all volumes.
Definition: bLayer.h:31
bLayer(handles::const_iterator begin, handles::const_iterator end)
Constructor from list of volumes.
Definition: bLayer.cc:19
double minR() const
Return sector at i (handling periodicity)
Definition: bLayer.cc:128