]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Polyhedra.cxx
added copy constructor and assignement operator (giving exception only); comment...
[u/mrichter/AliRoot.git] / TGeant4 / TG4Polyhedra.cxx
CommitLineData
c41ca2c7 1// $Id$
2// Category: geometry
3// by I. Hrivnacova, 12.10.2000
4//
5// See the class description in the header file.
6
7#include "TG4Polyhedra.h"
8#include "TG4Globals.h"
9
72095f7c 10//_____________________________________________________________________________
c41ca2c7 11TG4Polyhedra::TG4Polyhedra(const G4Polyhedra& rhs)
12 : G4Polyhedra(rhs) {
13//
14}
15
72095f7c 16//_____________________________________________________________________________
c41ca2c7 17TG4Polyhedra::~TG4Polyhedra() {
18//
19}
20
21// private methods
72095f7c 22
23//_____________________________________________________________________________
c41ca2c7 24void TG4Polyhedra::CheckOrigin()
25{
26// Checks if polycone was created in a "historical way"
27// and give exception otherwise.
28// ---
29
30 if (!original_parameters) {
31 G4String text = "TG4Polyhedra::CheckOrigin: \n";
32 text = text + " Polycone has not defined original parameters.";
33 TG4Globals::Exception(text);
34 }
35}
36
37
38// public methods
39
72095f7c 40//_____________________________________________________________________________
c41ca2c7 41G4int TG4Polyhedra::GetNofZPlanes()
42{
43// Returns nof z planes.
44// ----
45
46 CheckOrigin();
47
48 return original_parameters->Num_z_planes;
49}
50
51
72095f7c 52//_____________________________________________________________________________
c41ca2c7 53G4double* TG4Polyhedra::GetRmin()
54{
55// Returns array of rmin parameters of the planes.
56// ----
57
58 CheckOrigin();
59
60 return original_parameters->Rmin;
61}
62
72095f7c 63//_____________________________________________________________________________
c41ca2c7 64G4double* TG4Polyhedra::GetRmax()
65{
66// Returns array of rmax parameters of the planes.
67// ----
68
69 CheckOrigin();
70
71 return original_parameters->Rmax;
72}
73
72095f7c 74//_____________________________________________________________________________
c41ca2c7 75G4double* TG4Polyhedra::GetZ()
76{
77// Returns array of z parameters of the planes.
78// ----
79
80 CheckOrigin();
81
82 return original_parameters->Z_values;
83}