Main Page
Namespaces
Classes
Package Documentation
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_
.push_back(rMax);
20
}
21
~Orb
() { }
22
23
double
volume
()
const
{
return
(4.*
Geom::pi
()*
p_
[0]*
p_
[0]*
p_
[0])/3.; }
24
void
stream
(std::ostream & os)
const
;
25
};
26
27
}
28
#endif // DDI_Orb_h
DDI::Orb::volume
double volume() const
Definition:
Orb.h:23
DDI::Orb::stream
void stream(std::ostream &os) const
Definition:
Orb.cc:8
DDI::Orb::~Orb
~Orb()
Definition:
Orb.h:21
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
Geom::pi
constexpr double pi()
Definition:
Pi.h:31
Generated for CMSSW Reference Manual by
1.8.11