Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
src
Reflection.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/src/Reflection.h
"
2
3
#include <utility>
4
5
#include "
DetectorDescription/Core/interface/DDSolidShapes.h
"
6
#include "
DetectorDescription/Core/src/Solid.h
"
7
8
DDI::Reflection::Reflection
(
const
DDSolid
&
s
)
9
:
Solid
(
ddreflected
), s_(s)
10
{ }
11
12
13
double
DDI::Reflection::volume
()
const
14
{
15
return
s_
.
isDefined
().second ?
s_
.
volume
() : -1.;
16
}
17
18
19
void
DDI::Reflection::stream
(std::ostream & os)
const
20
{
21
os <<
" reflection solid of "
<<
s_
;
22
}
DDBase::isDefined
def_type isDefined() const
Definition:
DDBase.h:110
ddreflected
Definition:
DDSolidShapes.h:12
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
DDSolid
A DDSolid represents the shape of a part.
Definition:
DDSolid.h:38
DDI::Reflection::stream
void stream(std::ostream &) const
Definition:
Reflection.cc:19
DDI::Reflection::volume
double volume() const
Definition:
Reflection.cc:13
DDSolidShapes.h
Solid.h
DDI::Reflection::s_
DDSolid s_
Definition:
Reflection.h:18
DDI::Reflection::Reflection
Reflection(const DDSolid &s)
Definition:
Reflection.cc:8
DDI::Solid
Definition:
Solid.h:10
Reflection.h
DDSolid::volume
double volume(void) const
Returns the volume of the given solid (does not work with boolean soids !)
Definition:
DDSolid.cc:135
Generated for CMSSW Reference Manual by
1.8.11