Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
src
CutTubs.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/Core/src/CutTubs.h
"
2
3
#include <cmath>
4
#include <vector>
5
6
#include "CLHEP/Units/GlobalPhysicalConstants.h"
7
#include "CLHEP/Units/GlobalSystemOfUnits.h"
8
#include "CLHEP/Units/SystemOfUnits.h"
9
#include "
DetectorDescription/Core/interface/DDSolidShapes.h
"
10
#include "
DetectorDescription/Core/src/Solid.h
"
11
12
DDI::CutTubs::CutTubs
(
double
zhalf,
13
double
rIn,
double
rOut,
14
double
startPhi,
15
double
deltaPhi
,
16
double
lx,
double
ly,
double
lz,
17
double
tx,
double
ty,
double
tz)
18
:
Solid
(
ddcuttubs
)
19
{
20
p_
.push_back(zhalf);
21
p_
.push_back(rIn);
22
p_
.push_back(rOut);
23
p_
.push_back(startPhi);
24
p_
.push_back(deltaPhi);
25
p_
.push_back(lx);
26
p_
.push_back(ly);
27
p_
.push_back(lz);
28
p_
.push_back(tx);
29
p_
.push_back(ty);
30
p_
.push_back(tz);
31
}
32
33
void
DDI::CutTubs::stream
(std::ostream & os)
const
34
{
35
os <<
" zhalf="
<<
p_
[0]/cm
36
<<
" rIn="
<<
p_
[1]/cm
37
<<
" rOut="
<<
p_
[2]/cm
38
<<
" startPhi="
<<
p_
[3]/deg
39
<<
" deltaPhi="
<<
p_
[4]/deg
40
<<
" Outside Normal at -z ("
<<
p_
[5] <<
","
<<
p_
[6] <<
","
<<
p_
[7] <<
")"
41
<<
" Outside Normal at +z ("
<<
p_
[8] <<
","
<<
p_
[9] <<
","
<<
p_
[10] <<
")"
;
42
}
ddcuttubs
Definition:
DDSolidShapes.h:16
CutTubs.h
DDI::CutTubs::stream
void stream(std::ostream &os) const
Definition:
CutTubs.cc:33
DDI::CutTubs::CutTubs
CutTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double lx, double ly, double lz, double tx, double ty, double tz)
Definition:
CutTubs.cc:12
DDSolidShapes.h
Solid.h
DDI::Solid
Definition:
Solid.h:10
DDI::Solid::p_
std::vector< double > p_
Definition:
Solid.h:32
MuonCkfTrajectoryBuilder_cfi.deltaPhi
deltaPhi
Definition:
MuonCkfTrajectoryBuilder_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.11