Main Page
Namespaces
Classes
Package Documentation
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 "
DetectorDescription/Core/interface/DDSolidShapes.h
"
6
#include "
DataFormats/Math/interface/GeantUnits.h
"
7
#include "
DetectorDescription/Core/src/Solid.h
"
8
9
using namespace
geant_units::operators
;
10
11
DDI::TruncTubs::TruncTubs
(
double
zHalf,
12
double
rIn,
double
rOut,
13
double
startPhi,
14
double
deltaPhi
,
15
double
cutAtStart,
16
double
cutAtDelta,
17
bool
cutInside)
18
:
Solid
(
DDSolidShape
::
ddtrunctubs
)
19
{
20
p_
.emplace_back(zHalf);
21
p_
.emplace_back(rIn);
22
p_
.emplace_back(rOut);
23
p_
.emplace_back(startPhi);
24
p_
.emplace_back(deltaPhi);
25
p_
.emplace_back(cutAtStart);
26
p_
.emplace_back(cutAtDelta);
27
p_
.emplace_back(cutInside);
28
}
29
30
31
void
DDI::TruncTubs::stream
(std::ostream & os)
const
32
{
33
os <<
" zHalf="
<<
convertMmToCm
(
p_
[0] )
34
<<
"cm rIn="
<<
convertMmToCm
(
p_
[1] )
35
<<
"cm rOut="
<<
convertMmToCm
(
p_
[2] )
36
<<
"cm startPhi="
<<
convertRadToDeg
(
p_
[3] )
37
<<
"deg deltaPhi="
<<
convertRadToDeg
(
p_
[4] )
38
<<
"deg cutAtStart="
<<
convertMmToCm
(
p_
[5] )
39
<<
"cm cutAtDelta="
<<
convertMmToCm
(
p_
[6] )
40
<<
"cm cutInside="
<<
p_
[7];
41
}
DDSolidShape
DDSolidShape
Definition:
DDSolidShapes.h:6
geant_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition:
GeantUnits.h:98
DDI::TruncTubs::stream
void stream(std::ostream &os) const override
Definition:
TruncTubs.cc:31
DDSolidShapes.h
Solid.h
geant_units::operators
Definition:
GeantUnits.h:21
GeantUnits.h
TruncTubs.h
DDI::TruncTubs::TruncTubs
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition:
TruncTubs.cc:11
DDI::Solid
Definition:
Solid.h:10
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
geant_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition:
GeantUnits.h:110
hiPixelPairStep_cff.deltaPhi
deltaPhi
Definition:
hiPixelPairStep_cff.py:87
DDSolidShape::ddtrunctubs
Generated for CMSSW Reference Manual by
1.8.11