Main Page
Namespaces
Classes
Package Documentation
src
DetectorDescription
Core
src
Orb.h
Go to the documentation of this file.
1
#ifndef DDI_Orb_h
2
#define DDI_Orb_h
3
4
#include <
DataFormats/GeometryVector/interface/Pi.h
>
5
#include <iosfwd>
6
#include <vector>
7
8
#include "
DetectorDescription/Core/interface/DDSolidShapes.h
"
9
#include "
Solid.h
"
10
11
namespace
DDI
{
12
13
class
Orb
:
public
Solid
14
{
15
public
:
16
Orb
(
double
rMax
)
17
:
Solid
(
ddorb
)
18
{
19
p_
.emplace_back(rMax);
20
}
21
~Orb
()
override
{ }
22
23
double
volume
()
const override
{
return
(4.*
Geom::pi
()*
p_
[0]*
p_
[0]*
p_
[0])/3.; }
24
void
stream
(std::ostream & os)
const override
;
25
};
26
27
}
28
#endif // DDI_Orb_h
DDI::Orb::stream
void stream(std::ostream &os) const override
Definition:
Orb.cc:8
DDI::Orb
Definition:
Orb.h:13
DDSolidShapes.h
Solid.h
Pi.h
conversionPostprocessing_cfi.rMax
rMax
Definition:
conversionPostprocessing_cfi.py:29
ddorb
Definition:
DDSolidShapes.h:15
DDI::Orb::Orb
Orb(double rMax)
Definition:
Orb.h:16
DDI
Definition:
DDCompactView.h:26
DDI::Solid
Definition:
Solid.h:10
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
DDI::Orb::volume
double volume() const override
Definition:
Orb.h:23
Geom::pi
constexpr double pi()
Definition:
Pi.h:31
DDI::Orb::~Orb
~Orb() override
Definition:
Orb.h:21
Generated for CMSSW Reference Manual by
1.8.11