Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DetectorDescription
Core
src
TruncTubs.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/src/TruncTubs.h
"
2
3
#include "CLHEP/Units/GlobalSystemOfUnits.h"
4
5
DDI::TruncTubs::TruncTubs
(
double
zHalf,
6
double
rIn,
double
rOut,
7
double
startPhi,
8
double
deltaPhi
,
9
double
cutAtStart,
10
double
cutAtDelta,
11
bool
cutInside)
12
:
Solid
(
ddtrunctubs
)
13
{
14
p_
.push_back(zHalf);
15
p_
.push_back(rIn);
16
p_
.push_back(rOut);
17
p_
.push_back(startPhi);
18
p_
.push_back(deltaPhi);
19
p_
.push_back(cutAtStart);
20
p_
.push_back(cutAtDelta);
21
p_
.push_back(cutInside);
22
}
23
24
25
void
DDI::TruncTubs::stream
(std::ostream & os)
const
26
{
27
os <<
" zHalf="
<< p_[0]/cm
28
<<
"cm rIn="
<< p_[1]/cm
29
<<
"cm rOut="
<< p_[2]/cm
30
<<
"cm startPhi="
<< p_[3]/deg
31
<<
"deg deltaPhi="
<< p_[4]/deg
32
<<
"deg cutAtStart="
<< p_[5]/cm
33
<<
"cm cutAtDelta="
<< p_[6]/cm
34
<<
"cm cutInside="
<< p_[7];
35
}
36
Geom::deltaPhi
double deltaPhi(float phi1, float phi2)
Definition:
VectorUtil.h:30
DDI::TruncTubs::stream
void stream(std::ostream &os) const
Definition:
TruncTubs.cc:25
TruncTubs.h
ddtrunctubs
Definition:
DDSolidShapes.h:13
DDI::TruncTubs::TruncTubs
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition:
TruncTubs.cc:5
DDI::Solid
Definition:
Solid.h:14
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:41
Generated for CMSSW Reference Manual by
1.8.5