VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VSphere.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 VSphere
14
// ---------------
15
// The ABC for sphere solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VSphere.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::ISphere
& sphere)
23
{
24
const
VGM::ISolid
& sphereSolid = sphere;
25
out << sphereSolid;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VSphere::VSphere
() :
VGM
::ISphere()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VSphere::~VSphere
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VSphere::Put
(std::ostream& out)
const
43
{
44
out <<
" rin = "
<<
InnerRadius
() <<
"mm"
45
<<
" rout = "
<<
OuterRadius
() <<
"mm"
46
<<
" sphi = "
<<
StartPhi
() <<
"deg"
47
<<
" dphi = "
<<
DeltaPhi
() <<
"deg"
48
<<
" stheta = "
<<
StartTheta
() <<
"deg"
49
<<
" dtheta = "
<<
DeltaTheta
() <<
"deg"
;
50
return
out;
51
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::ISphere &sphere)
Definition
VSphere.cxx:22
VSphere.h
BaseVGM::VSphere::VSphere
VSphere()
Definition
VSphere.cxx:30
BaseVGM::VSphere::~VSphere
virtual ~VSphere()
Definition
VSphere.cxx:36
BaseVGM::VSphere::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VSphere.cxx:42
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM::ISphere
The VGM interface to sphere solids.
Definition
ISphere.h:30
VGM::ISphere::StartPhi
virtual double StartPhi() const =0
Return the starting azimuthal angle of the segment in deg.
VGM::ISphere::DeltaPhi
virtual double DeltaPhi() const =0
Return the opening azimuthal angle of the segment in deg.
VGM::ISphere::StartTheta
virtual double StartTheta() const =0
Return the starting polar angle of the segment in deg.
VGM::ISphere::DeltaTheta
virtual double DeltaTheta() const =0
Return the opening polar angle of the segment in deg.
VGM::ISphere::OuterRadius
virtual double OuterRadius() const =0
Return the outside radius of the shell in mm.
VGM::ISphere::InnerRadius
virtual double InnerRadius() const =0
Return the inside radius of the shell in mm.
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0