VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VPolycone.cxx
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The BaseVGM package of the Virtual Geometry Model
5
// Copyright (C) 2007, Ivana Hrivnacova
6
// All rights reserved.
7
//
8
// For the licensing terms see vgm/LICENSE.
9
// Contact: ivana@ipno.in2p3.fr
10
// -----------------------------------------------------------------------
11
12
//
13
// Class VPolycone
14
// ---------------
15
// The ABC for polycone solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VPolycone.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IPolycone
& polycone)
23
{
24
const
VGM::ISolid
& polyconeSolid = polycone;
25
out << polyconeSolid;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VPolycone::VPolycone
() :
VGM
::IPolycone()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VPolycone::~VPolycone
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VPolycone::Put
(std::ostream& out)
const
43
{
44
out <<
" sphi = "
<<
StartPhi
() <<
"deg"
45
<<
" dphi = "
<<
DeltaPhi
() <<
"deg"
46
<<
" nz = "
<<
NofZPlanes
() << std::endl;
47
48
double
* zvalues =
ZValues
();
49
double
* rinvalues =
InnerRadiusValues
();
50
double
* routvalues =
OuterRadiusValues
();
51
52
for
(
int
i = 0; i <
NofZPlanes
(); i++) {
53
out <<
" "
<< i <<
"th plane: "
54
<<
" z = "
<< zvalues[i] <<
"mm"
55
<<
" rin = "
<< rinvalues[i] <<
"mm"
56
<<
" rout = "
<< routvalues[i] <<
"mm"
;
57
58
if
(i <
NofZPlanes
() - 1) out << std::endl;
59
}
60
61
return
out;
62
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IPolycone &polycone)
Definition
VPolycone.cxx:22
VPolycone.h
BaseVGM::VPolycone::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VPolycone.cxx:42
BaseVGM::VPolycone::VPolycone
VPolycone()
Definition
VPolycone.cxx:30
BaseVGM::VPolycone::~VPolycone
virtual ~VPolycone()
Definition
VPolycone.cxx:36
VGM::IPolycone
The VGM interface to polycone solids.
Definition
IPolycone.h:30
VGM::IPolycone::StartPhi
virtual double StartPhi() const =0
Return starting phi angle of the segment in deg.
VGM::IPolycone::NofZPlanes
virtual int NofZPlanes() const =0
Return number of planes perpendicular to the z axis.
VGM::IPolycone::ZValues
virtual double * ZValues() const =0
Return the array of z positions of the planes in mm.
VGM::IPolycone::DeltaPhi
virtual double DeltaPhi() const =0
Return opening phi angle of the segment in deg.
VGM::IPolycone::InnerRadiusValues
virtual double * InnerRadiusValues() const =0
Return the array of inner radius of the planes in mm.
VGM::IPolycone::OuterRadiusValues
virtual double * OuterRadiusValues() const =0
Return the array of outer radius of the planes in mm.
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0