VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
solids
VTrd.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 VTrd
14
// ---------------
15
// The ABC for trd solids.
16
//
17
// Author: Ivana Hrivnacova; IPN Orsay
18
19
#include "
BaseVGM/solids/VTrd.h
"
20
21
//_____________________________________________________________________________
22
std::ostream&
operator<<
(std::ostream& out,
const
VGM::ITrd
& trd)
23
{
24
const
VGM::ISolid
& trdSolid = trd;
25
out << trdSolid;
26
return
out;
27
}
28
29
//_____________________________________________________________________________
30
BaseVGM::VTrd::VTrd
() :
VGM
::ITrd()
31
{
33
}
34
35
//_____________________________________________________________________________
36
BaseVGM::VTrd::~VTrd
()
37
{
38
//
39
}
40
41
//_____________________________________________________________________________
42
std::ostream&
BaseVGM::VTrd::Put
(std::ostream& out)
const
43
{
44
out <<
" hx1 = "
<<
XHalfLengthMinusZ
() <<
"mm"
45
<<
" hx2 = "
<<
XHalfLengthPlusZ
() <<
"mm"
46
<<
" hy1 = "
<<
YHalfLengthMinusZ
() <<
"mm"
47
<<
" hy2 = "
<<
YHalfLengthPlusZ
() <<
"mm"
48
<<
" hz = "
<<
ZHalfLength
() <<
"mm"
;
49
return
out;
50
}
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::ITrd &trd)
Definition
VTrd.cxx:22
VTrd.h
BaseVGM::VTrd::Put
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition
VTrd.cxx:42
BaseVGM::VTrd::~VTrd
virtual ~VTrd()
Definition
VTrd.cxx:36
BaseVGM::VTrd::VTrd
VTrd()
Definition
VTrd.cxx:30
VGM::ISolid
The VGM interface to solids.
Definition
ISolid.h:58
VGM::ITrd
The VGM interface to trd solids.
Definition
ITrd.h:30
VGM::ITrd::XHalfLengthPlusZ
virtual double XHalfLengthPlusZ() const =0
Return the half-length along x at the surface positioned at +hz in mm.
VGM::ITrd::YHalfLengthPlusZ
virtual double YHalfLengthPlusZ() const =0
Return thehalf-length along y at the surface positioned at +hz in mm.
VGM::ITrd::XHalfLengthMinusZ
virtual double XHalfLengthMinusZ() const =0
Return the half-length along x at the surface positioned at -hz in mm.
VGM::ITrd::ZHalfLength
virtual double ZHalfLength() const =0
Return the half-length along the z axis in mm.
VGM::ITrd::YHalfLengthMinusZ
virtual double YHalfLengthMinusZ() const =0
Return the half-length along y at the surface positioned at -hz in mm.
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0