Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 <iosfwd>
5
#include "
Solid.h
"
6
#include <
DataFormats/GeometryVector/interface/Pi.h
>
7
8
namespace
DDI {
9
10
class
Ellipsoid
:
public
Solid
11
{
12
public
:
13
Ellipsoid
(
double
xSemiAxis,
14
double
ySemiAxis,
15
double
zSemiAxis,
16
double
zBottomCut=0,
17
double
zTopCut=0
18
)
19
:
Solid
(
ddellipsoid
)
20
{
21
p_
.push_back(xSemiAxis);
22
p_
.push_back(ySemiAxis);
23
p_
.push_back(zSemiAxis);
24
p_
.push_back(zBottomCut);
25
p_
.push_back(zTopCut);
26
}
27
~Ellipsoid
() { }
28
30
double
volume
()
const
;
31
double
halfVol
(
double
dz,
double
maxz)
const
;
32
void
stream
(std::ostream & os)
const
;
33
};
34
35
}
36
#endif // DDI_Ellipsoid_h
DDI::Ellipsoid::volume
double volume() const
Not as flexible and possibly less accurate than G4 volume.
Definition:
Ellipsoid.cc:44
DDI::Ellipsoid::halfVol
double halfVol(double dz, double maxz) const
Definition:
Ellipsoid.cc:15
DDI::Ellipsoid::stream
void stream(std::ostream &os) const
Definition:
Ellipsoid.cc:6
ddellipsoid
Definition:
DDSolidShapes.h:15
DDI::Ellipsoid::~Ellipsoid
~Ellipsoid()
Definition:
Ellipsoid.h:27
Solid.h
Pi.h
DDI::Ellipsoid::Ellipsoid
Ellipsoid(double xSemiAxis, double ySemiAxis, double zSemiAxis, double zBottomCut=0, double zTopCut=0)
Definition:
Ellipsoid.h:13
DDI::Solid
Definition:
Solid.h:10
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
DDI::Ellipsoid
Definition:
Ellipsoid.h:10
Generated for CMSSW Reference Manual by
1.8.5