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
DDI
Definition: DDCompactView.h:25
DDI::Division::axis_
DDAxes axis_
Definition: Division.h:32
DDAxes.h
DDI::Division::width_
double width_
Definition: Division.h:34
DDI::Division::Division
Division(const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
Definition: Division.cc:9
DDI::Division::parent
const DDLogicalPart & parent() const
Definition: Division.cc:22
DDAxes
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDI::Division::offset
double offset() const
Definition: Division.cc:21
DDI::Division::nReplicas
int nReplicas() const
Definition: Division.cc:19
DDLogicalPart.h
DDI::Division::stream
void stream(std::ostream &)
Definition: Division.cc:24
DDI::Division::nReplicas_
int nReplicas_
Definition: Division.h:33
DDI::Division::axis
DDAxes axis() const
Definition: Division.cc:18
DDI::Division
Definition: Division.h:13
DDI::Division::parent_
DDLogicalPart parent_
Definition: Division.h:31
DDI::Division::width
double width() const
Definition: Division.cc:20
DDI::Division::offset_
double offset_
Definition: Division.h:35