CMS 3D CMS Logo

Division.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_CORE_DDI_DIVISION_H
2 #define DETECTOR_DESCRIPTION_CORE_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:
16  Division( const DDLogicalPart & parent,
17  DDAxes axis,
18  int nReplicas,
19  double width,
20  double offset );
21 
22 
23  // Constructor with number of divisions
24  Division( const DDLogicalPart & parent,
25  DDAxes axis,
26  int nReplicas,
27  double offset );
28 
29  // Constructor with width
30  Division( const DDLogicalPart & parent,
31  DDAxes axis,
32  double width,
33  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 
52 #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, DDAxes axis, int nReplicas, double width, 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