Main Page
Namespaces
Classes
Package Documentation
src
DetectorDescription
Core
src
TruncTubs.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/src/TruncTubs.h
"
2
3
#include <vector>
4
5
#include "CLHEP/Units/GlobalSystemOfUnits.h"
6
#include "CLHEP/Units/SystemOfUnits.h"
7
#include "
DetectorDescription/Core/interface/DDSolidShapes.h
"
8
#include "
DetectorDescription/Core/src/Solid.h
"
9
10
DDI::TruncTubs::TruncTubs
(
double
zHalf,
11
double
rIn,
double
rOut,
12
double
startPhi,
13
double
deltaPhi
,
14
double
cutAtStart,
15
double
cutAtDelta,
16
bool
cutInside)
17
:
Solid
(
ddtrunctubs
)
18
{
19
p_
.emplace_back(zHalf);
20
p_
.emplace_back(rIn);
21
p_
.emplace_back(rOut);
22
p_
.emplace_back(startPhi);
23
p_
.emplace_back(deltaPhi);
24
p_
.emplace_back(cutAtStart);
25
p_
.emplace_back(cutAtDelta);
26
p_
.emplace_back(cutInside);
27
}
28
29
30
void
DDI::TruncTubs::stream
(std::ostream & os)
const
31
{
32
os <<
" zHalf="
<<
p_
[0]/cm
33
<<
"cm rIn="
<<
p_
[1]/cm
34
<<
"cm rOut="
<<
p_
[2]/cm
35
<<
"cm startPhi="
<<
p_
[3]/deg
36
<<
"deg deltaPhi="
<<
p_
[4]/deg
37
<<
"deg cutAtStart="
<<
p_
[5]/cm
38
<<
"cm cutAtDelta="
<<
p_
[6]/cm
39
<<
"cm cutInside="
<<
p_
[7];
40
}
41
DDI::TruncTubs::stream
void stream(std::ostream &os) const override
Definition:
TruncTubs.cc:30
DDSolidShapes.h
Solid.h
TruncTubs.h
ddtrunctubs
Definition:
DDSolidShapes.h:14
DDI::TruncTubs::TruncTubs
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition:
TruncTubs.cc:10
DDI::Solid
Definition:
Solid.h:10
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
hiPixelPairStep_cff.deltaPhi
deltaPhi
Definition:
hiPixelPairStep_cff.py:87
Generated for CMSSW Reference Manual by
1.8.11