VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VPara.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 VPara
14
// ---------------
15
// The ABC for para solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VPara.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IPara
& para)
23
{
24
const
VGM::ISolid
& paraSolid = para;
25
out << paraSolid;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VPara::VPara
() :
VGM
::IPara()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VPara::~VPara
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VPara::Put
(std::ostream& out)
const
43
{
44
out <<
" hx = "
<<
XHalfLength
() <<
"mm"
45
<<
" hy = "
<<
YHalfLength
() <<
"mm"
46
<<
" hz = "
<<
ZHalfLength
() <<
"mm"
47
<<
" alpha = "
<<
Alpha
() <<
"deg"
48
<<
" theta = "
<<
Theta
() <<
"deg"
49
<<
" phi = "
<<
Phi
() <<
"deg"
;
50
return
out;
51
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IPara ¶)
Definition
VPara.cxx:22
VPara.h
BaseVGM::VPara::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VPara.cxx:42
BaseVGM::VPara::VPara
VPara()
Definition
VPara.cxx:30
BaseVGM::VPara::~VPara
virtual ~VPara()
Definition
VPara.cxx:36
VGM::IPara
The VGM interface to para solids.
Definition
IPara.h:30
VGM::IPara::Alpha
virtual double Alpha() const =0
Return angle formed by the y axis and by the plane joining the centre of the faces parallel to the z-...
VGM::IPara::Theta
virtual double Theta() const =0
Return polar angle of the line joining the centres of the faces at -hz and +hz in deg.
VGM::IPara::YHalfLength
virtual double YHalfLength() const =0
Return half-length along the y axis in mm.
VGM::IPara::ZHalfLength
virtual double ZHalfLength() const =0
Return half-length along the z axis in mm.
VGM::IPara::XHalfLength
virtual double XHalfLength() const =0
Return half-length along the x axis in mm.
VGM::IPara::Phi
virtual double Phi() const =0
Return azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
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