src
DetectorDescription
Core
src
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
9
#include "
DetectorDescription/Core/interface/DDAxes.h
"
10
#include "
DetectorDescription/Core/interface/DDLogicalPart.h
"
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
:
31
DDLogicalPart
parent_
;
32
DDAxes
axis_
;
33
int
nReplicas_
;
34
double
width_
;
35
double
offset_
;
36
};
37
}
// namespace DDI
38
39
#endif
DDI::Division::offset_
double offset_
Definition:
Division.h:35
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::width
double width() const
Definition:
Division.cc:20
DDAxes.h
DDI::Division::offset
double offset() const
Definition:
Division.cc:21
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition:
DDLogicalPart.h:93
DDI::Division::Division
Division(const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
Definition:
Division.cc:9
DDI::Division::parent_
DDLogicalPart parent_
Definition:
Division.h:31
DDI::Division::axis_
DDAxes axis_
Definition:
Division.h:32
DDI::Division::parent
const DDLogicalPart & parent() const
Definition:
Division.cc:22
DDI::Division::width_
double width_
Definition:
Division.h:34
DDI
Definition:
Assembly.h:7
DDI::Division::nReplicas
int nReplicas() const
Definition:
Division.cc:19
DDLogicalPart.h
DDAxes
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition:
DDAxes.h:11
DDI::Division
Definition:
Division.h:13
Generated for CMSSW Reference Manual by
1.8.14