4 // Author: I. Hrivnacova, 12.10.2000
8 // See the class description in the header file.
10 #include "TG4Polyhedra.h"
11 #include "TG4Globals.h"
13 //_____________________________________________________________________________
14 TG4Polyhedra::TG4Polyhedra(const G4Polyhedra& rhs)
19 //_____________________________________________________________________________
20 TG4Polyhedra::~TG4Polyhedra() {
26 //_____________________________________________________________________________
27 void TG4Polyhedra::CheckOrigin()
29 // Checks if polycone was created in a "historical way"
30 // and give exception otherwise.
33 if (!original_parameters) {
34 G4String text = "TG4Polyhedra::CheckOrigin: \n";
35 text = text + " Polycone has not defined original parameters.";
36 TG4Globals::Exception(text);
43 //_____________________________________________________________________________
44 G4int TG4Polyhedra::GetNofZPlanes()
46 // Returns nof z planes.
51 return original_parameters->Num_z_planes;
55 //_____________________________________________________________________________
56 G4double* TG4Polyhedra::GetRmin()
58 // Returns array of rmin parameters of the planes.
63 return original_parameters->Rmin;
66 //_____________________________________________________________________________
67 G4double* TG4Polyhedra::GetRmax()
69 // Returns array of rmax parameters of the planes.
74 return original_parameters->Rmax;
77 //_____________________________________________________________________________
78 G4double* TG4Polyhedra::GetZ()
80 // Returns array of z parameters of the planes.
85 return original_parameters->Z_values;