test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Division.h
Go to the documentation of this file.
1 #ifndef DDI_Division_h
2 #define DDI_Division_h
3 
6 
7 #include <iostream>
8 #include <vector>
9 #include <utility>
10 #include <map>
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:88
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
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11