Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
src
Ellipsoid.h
Go to the documentation of this file.
1
#ifndef DDI_Ellipsoid_h
2
#define DDI_Ellipsoid_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
Ellipsoid
:
public
Solid
14
{
15
public
:
16
Ellipsoid
(
double
xSemiAxis,
17
double
ySemiAxis,
18
double
zSemiAxis,
19
double
zBottomCut=0,
20
double
zTopCut=0
21
)
22
:
Solid
(
ddellipsoid
)
23
{
24
p_
.push_back(xSemiAxis);
25
p_
.push_back(ySemiAxis);
26
p_
.push_back(zSemiAxis);
27
p_
.push_back(zBottomCut);
28
p_
.push_back(zTopCut);
29
}
30
~Ellipsoid
() { }
31
33
double
volume
()
const
;
34
double
halfVol
(
double
dz
,
double
maxz)
const
;
35
void
stream
(std::ostream & os)
const
;
36
};
37
38
}
39
#endif // DDI_Ellipsoid_h
DDI::Ellipsoid::volume
double volume() const
Not as flexible and possibly less accurate than G4 volume.
Definition:
Ellipsoid.cc:50
DDI::Ellipsoid::halfVol
double halfVol(double dz, double maxz) const
Definition:
Ellipsoid.cc:20
allConversions_cfi.dz
dz
Definition:
allConversions_cfi.py:41
DDI::Ellipsoid::stream
void stream(std::ostream &os) const
Definition:
Ellipsoid.cc:11
ddellipsoid
Definition:
DDSolidShapes.h:15
DDI::Ellipsoid::~Ellipsoid
~Ellipsoid()
Definition:
Ellipsoid.h:30
DDSolidShapes.h
Solid.h
Pi.h
DDI::Ellipsoid::Ellipsoid
Ellipsoid(double xSemiAxis, double ySemiAxis, double zSemiAxis, double zBottomCut=0, double zTopCut=0)
Definition:
Ellipsoid.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::Ellipsoid
Definition:
Ellipsoid.h:13
Generated for CMSSW Reference Manual by
1.8.11