Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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 <iosfwd>
5
#include "
Solid.h
"
6
#include <
DataFormats/GeometryVector/interface/Pi.h
>
7
8
namespace
DDI {
9
10
class
Parallelepiped
:
public
Solid
11
{
12
public
:
13
Parallelepiped
(
double
xHalf,
double
yHalf,
double
zHalf,
14
double
alpha
,
double
theta
,
double
phi
)
15
:
Solid
(
ddparallelepiped
)
16
{
17
p_
.push_back(xHalf);
18
p_
.push_back(yHalf);
19
p_
.push_back(zHalf);
20
p_
.push_back(alpha);
21
p_
.push_back(theta);
22
p_
.push_back(phi);
23
}
24
~Parallelepiped
() { }
25
27
double
volume
()
const
;
28
void
stream
(std::ostream & os)
const
;
29
};
30
31
}
32
#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:24
DDI::Parallelepiped
Definition:
Parallelepiped.h:10
ddparallelepiped
Definition:
DDSolidShapes.h:16
Solid.h
Pi.h
DDI::Parallelepiped::Parallelepiped
Parallelepiped(double xHalf, double yHalf, double zHalf, double alpha, double theta, double phi)
Definition:
Parallelepiped.h:13
DDI::Solid
Definition:
Solid.h:10
DDI::Parallelepiped::stream
void stream(std::ostream &os) const
Definition:
Parallelepiped.cc:7
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:18
phi
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5