VGM Version 5.3
Loading...
Searching...
No Matches
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
20
21//_____________________________________________________________________________
22std::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//_____________________________________________________________________________
31{
33}
34
35//_____________________________________________________________________________
40
41//_____________________________________________________________________________
42std::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}
std::ostream & operator<<(std::ostream &out, const VGM::IPolycone &polycone)
Definition VPolycone.cxx:22
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
Definition VPolycone.cxx:42
virtual ~VPolycone()
Definition VPolycone.cxx:36
The VGM interface to polycone solids.
Definition IPolycone.h:30
The VGM interface to solids.
Definition ISolid.h:58
VGM interfaces.
Definition VMedium.h:28