CMS 3D CMS Logo

Division.h
Go to the documentation of this file.
1 #ifndef DDI_Division_h
2 #define DDI_Division_h
3 
4 #include <iostream>
5 #include <map>
6 #include <utility>
7 #include <vector>
8 
11 
12 namespace DDI {
13  class Division {
14 
15  public:
17  const DDAxes axis,
18  const int nReplicas,
19  const double width,
20  const double offset );
21 
22 
23  // Constructor with number of divisions
24  Division(const DDLogicalPart & parent,
25  const DDAxes axis,
26  const int nReplicas,
27  const double offset );
28 
29  // Constructor with width
30  Division(const DDLogicalPart & parent,
31  const DDAxes axis,
32  const double width,
33  const double offset );
34 
35  DDAxes axis() const;
36  int nReplicas() const;
37  double width() const;
38  double offset() const;
39  const DDLogicalPart & parent() const;
40  void stream(std::ostream &);
41 
42  private:
46  double width_;
47  double offset_;
48 
49  };
50 }
51 #endif
double offset_
Definition: Division.h:47
double offset() const
Definition: Division.cc:34
const DDLogicalPart & parent() const
Definition: Division.cc:35
void stream(std::ostream &)
Definition: Division.cc:37
int nReplicas() const
Definition: Division.cc:32
int nReplicas_
Definition: Division.h:45
DDAxes axis() const
Definition: Division.cc:31
double width() const
Definition: Division.cc:33
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:92
Division(const DDLogicalPart &parent, const DDAxes axis, const int nReplicas, const double width, const double offset)
Definition: Division.cc:9
DDLogicalPart parent_
Definition: Division.h:43
DDAxes axis_
Definition: Division.h:44
double width_
Definition: Division.h:46
Definition: rep_type.h:4
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11