VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VTrap.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 VTrap
14
// ---------------
15
// The ABC for trap solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VTrap.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::ITrap
& trap)
23
{
24
const
VGM::ISolid
& trapSolid = trap;
25
out << trapSolid;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VTrap::VTrap
() :
VGM
::ITrap()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VTrap::~VTrap
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VTrap::Put
(std::ostream& out)
const
43
{
44
out <<
" hz = "
<<
ZHalfLength
() <<
"mm"
45
<<
" theta = "
<<
Theta
() <<
"deg"
46
<<
" phi = "
<<
Phi
() <<
"deg"
47
<<
" hy1 = "
<<
YHalfLengthMinusZ
() <<
"mm"
48
<<
" hx1 = "
<<
XHalfLengthMinusZMinusY
() <<
"mm"
49
<<
" hx2 = "
<<
XHalfLengthMinusZPlusY
() <<
"mm"
50
<<
" alpha1 = "
<<
AlphaMinusZ
() <<
"deg"
51
<<
" hy2 = "
<<
YHalfLengthPlusZ
() <<
"mm"
52
<<
" hx3 = "
<<
XHalfLengthPlusZMinusY
() <<
"mm"
53
<<
" hx4 = "
<<
XHalfLengthPlusZPlusY
() <<
"mm"
54
<<
" alpha2 = "
<<
AlphaPlusZ
() <<
"deg"
;
55
return
out;
56
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::ITrap &trap)
Definition
VTrap.cxx:22
VTrap.h
BaseVGM::VTrap::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VTrap.cxx:42
BaseVGM::VTrap::~VTrap
virtual ~VTrap()
Definition
VTrap.cxx:36
BaseVGM::VTrap::VTrap
VTrap()
Definition
VTrap.cxx:30
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM::ITrap
The VGM interface to trap solids.
Definition
ITrap.h:30
VGM::ITrap::Phi
virtual double Phi() const =0
Return the azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
VGM::ITrap::XHalfLengthPlusZMinusY
virtual double XHalfLengthPlusZMinusY() const =0
Return the half-length along x of the side at -hy of the face at +hz in m.
VGM::ITrap::AlphaPlusZ
virtual double AlphaPlusZ() const =0
Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy o...
VGM::ITrap::ZHalfLength
virtual double ZHalfLength() const =0
Return the half-length along the z axis in mm.
VGM::ITrap::YHalfLengthMinusZ
virtual double YHalfLengthMinusZ() const =0
Return the half-length along y of the face at -hz in mm.
VGM::ITrap::XHalfLengthMinusZMinusY
virtual double XHalfLengthMinusZMinusY() const =0
Return the half-length along x of the side at -hy of the face at -hz in mm.
VGM::ITrap::YHalfLengthPlusZ
virtual double YHalfLengthPlusZ() const =0
Return the half-length along y of the face at +hz in m.
VGM::ITrap::XHalfLengthPlusZPlusY
virtual double XHalfLengthPlusZPlusY() const =0
Return the half-length along x of the side at +hy of the face at +hz in m.
VGM::ITrap::Theta
virtual double Theta() const =0
Return the polar angle of the line joining the centres of the faces at -hz and +hz in deg.
VGM::ITrap::AlphaMinusZ
virtual double AlphaMinusZ() const =0
Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy o...
VGM::ITrap::XHalfLengthMinusZPlusY
virtual double XHalfLengthMinusZPlusY() const =0
Return the half-length along x of the side at +hy of the face at +hz in mm.
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0