DetectorDescription
Core
src
Solid.h
Go to the documentation of this file.
1
#ifndef DDI_Solid_h
2
#define DDI_Solid_h
3
4
#include <iosfwd>
5
#include <vector>
6
#include "
DetectorDescription/Core/interface/DDSolidShapes.h
"
7
8
namespace
DDI
{
9
10
class
Solid
{
11
public
:
12
Solid
() :
shape_
(
DDSolidShape
::
dd_not_init
) {}
13
14
Solid
(
DDSolidShape
shape
) :
shape_
(
shape
) {}
15
16
virtual
~Solid
() {}
17
18
const
std::vector<double> &
parameters
()
const
{
return
p_
; }
19
20
virtual
double
volume
()
const
{
return
0; }
21
22
DDSolidShape
shape
()
const
{
return
shape_
; }
23
24
virtual
void
stream
(std::ostream &)
const
;
25
26
void
setParameters
(std::vector<double>
const
&
p
) {
p_
=
p
; }
27
28
protected
:
29
DDSolidShape
shape_
;
30
std::vector<double>
p_
;
31
};
32
}
// namespace DDI
33
34
#endif // DDI_Solid_h
DDSolidShapes.h
DDI
Definition:
DDCompactView.h:25
DDSolidShape
DDSolidShape
Definition:
DDSolidShapes.h:6
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
DDI::Solid::Solid
Solid(DDSolidShape shape)
Definition:
Solid.h:14
DDI::Solid::Solid
Solid()
Definition:
Solid.h:12
DDI::Solid::shape_
DDSolidShape shape_
Definition:
Solid.h:29
DDI::Solid
Definition:
Solid.h:10
DDSolidShape::dd_not_init
DDI::Solid::stream
virtual void stream(std::ostream &) const
Definition:
Solid.cc:5
DDI::Solid::~Solid
virtual ~Solid()
Definition:
Solid.h:16
DDI::Solid::volume
virtual double volume() const
Definition:
Solid.h:20
DDI::Solid::shape
DDSolidShape shape() const
Definition:
Solid.h:22
DDI::Solid::parameters
const std::vector< double > & parameters() const
Definition:
Solid.h:18
DDI::Solid::setParameters
void setParameters(std::vector< double > const &p)
Definition:
Solid.h:26
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:30
Generated for CMSSW Reference Manual by
1.8.16