src
DetectorDescription
Core
src
TruncTubs.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/interface/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/interface/Solid.h
"
8
9
using namespace
geant_units::operators
;
10
11
DDI::TruncTubs::TruncTubs
(
double
zHalf,
12
double
rIn,
13
double
rOut,
14
double
startPhi,
15
double
deltaPhi
,
16
double
cutAtStart,
17
double
cutAtDelta,
18
bool
cutInside)
19
:
Solid
(
DDSolidShape
::
ddtrunctubs
) {
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
void
DDI::TruncTubs::stream
(std::ostream&
os
)
const
{
31
os
<<
" zHalf="
<<
convertMmToCm
(p_[0]) <<
"cm rIn="
<<
convertMmToCm
(p_[1]) <<
"cm rOut="
<<
convertMmToCm
(p_[2])
32
<<
"cm startPhi="
<<
convertRadToDeg
(p_[3]) <<
"deg deltaPhi="
<<
convertRadToDeg
(p_[4])
33
<<
"deg cutAtStart="
<<
convertMmToCm
(p_[5]) <<
"cm cutAtDelta="
<<
convertMmToCm
(p_[6])
34
<<
"cm cutInside="
<< p_[7];
35
}
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition:
angle_units.h:21
DDSolidShape::ddtrunctubs
DDSolidShapes.h
Solid.h
l1tGTMenu_BTagSeeds_cff.os
os
Definition:
l1tGTMenu_BTagSeeds_cff.py:34
geant_units::operators
Definition:
GeantUnits.h:18
angle_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition:
angle_units.h:44
GeantUnits.h
DDI::TruncTubs::stream
void stream(std::ostream &os) const override
Definition:
TruncTubs.cc:30
DDSolidShape
DDSolidShape
Definition:
DDSolidShapes.h:6
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:30
srCondWrite_cfg.deltaPhi
deltaPhi
Definition:
srCondWrite_cfg.py:54
Generated for CMSSW Reference Manual by
1.8.14