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
double
DDI::Reflection::volume
()
const
13
{
14
return
s_
.
isDefined
().second ?
s_
.
volume
() : -1.;
15
}
16
17
void
DDI::Reflection::stream
(std::ostream & os)
const
18
{
19
os <<
" reflection solid of "
<<
s_
;
20
}
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
DDSolidShapes.h
Solid.h
DDI::Reflection::volume
double volume() const override
Definition:
Reflection.cc:12
DDI::Reflection::s_
DDSolid s_
Definition:
Reflection.h:18
DDI::Reflection::stream
void stream(std::ostream &) const override
Definition:
Reflection.cc:17
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:138
Generated for CMSSW Reference Manual by
1.8.11