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  public:
15  Division(const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset);
16 
17  // Constructor with number of divisions
18  Division(const DDLogicalPart &parent, DDAxes axis, int nReplicas, double offset);
19 
20  // Constructor with width
21  Division(const DDLogicalPart &parent, DDAxes axis, double width, double offset);
22 
23  DDAxes axis() const;
24  int nReplicas() const;
25  double width() const;
26  double offset() const;
27  const DDLogicalPart &parent() const;
28  void stream(std::ostream &);
29 
30  private:
34  double width_;
35  double offset_;
36  };
37 } // namespace DDI
38 
39 #endif
double offset_
Definition: Division.h:35
double offset() const
Definition: Division.cc:21
const DDLogicalPart & parent() const
Definition: Division.cc:22
void stream(std::ostream &)
Definition: Division.cc:24
int nReplicas() const
Definition: Division.cc:19
int nReplicas_
Definition: Division.h:33
DDAxes axis() const
Definition: Division.cc:18
double width() const
Definition: Division.cc:20
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
Division(const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
Definition: Division.cc:9
DDLogicalPart parent_
Definition: Division.h:31
DDAxes axis_
Definition: Division.h:32
double width_
Definition: Division.h:34
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11