Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
src
Parallelepiped.h
Go to the documentation of this file.
1
#ifndef DDI_Parallelepiped_h
2
#define DDI_Parallelepiped_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
Parallelepiped
:
public
Solid
14
{
15
public
:
16
Parallelepiped
(
double
xHalf,
double
yHalf,
double
zHalf,
17
double
alpha
,
double
theta
,
double
phi)
18
:
Solid
(
ddparallelepiped
)
19
{
20
p_
.push_back(xHalf);
21
p_
.push_back(yHalf);
22
p_
.push_back(zHalf);
23
p_
.push_back(alpha);
24
p_
.push_back(theta);
25
p_
.push_back(phi);
26
}
27
~Parallelepiped
() { }
28
30
double
volume
()
const
;
31
void
stream
(std::ostream & os)
const
;
32
};
33
34
}
35
#endif // DDI_Parallelepiped_h
alpha
float alpha
Definition:
AMPTWrapper.h:95
theta
Geom::Theta< T > theta() const
Definition:
Basic3DVectorLD.h:170
DDI::Parallelepiped::~Parallelepiped
~Parallelepiped()
Definition:
Parallelepiped.h:27
DDI::Parallelepiped
Definition:
Parallelepiped.h:13
ddparallelepiped
Definition:
DDSolidShapes.h:16
DDSolidShapes.h
Solid.h
Pi.h
DDI::Parallelepiped::Parallelepiped
Parallelepiped(double xHalf, double yHalf, double zHalf, double alpha, double theta, double phi)
Definition:
Parallelepiped.h:16
DDI
Definition:
DDCompactView.h:26
DDI::Solid
Definition:
Solid.h:10
DDI::Parallelepiped::stream
void stream(std::ostream &os) const
Definition:
Parallelepiped.cc:8
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
DDI::Parallelepiped::volume
double volume() const
Not as flexible and possibly less accurate than G4 volume.
Definition:
Parallelepiped.cc:19
Generated for CMSSW Reference Manual by
1.8.11