3 // by I. Hrivnacova, 12.10.2000
5 // See the class description in the header file.
7 #include "TG4Polyhedra.h"
8 #include "TG4Globals.h"
10 //_____________________________________________________________________________
11 TG4Polyhedra::TG4Polyhedra(const G4Polyhedra& rhs)
16 //_____________________________________________________________________________
17 TG4Polyhedra::~TG4Polyhedra() {
23 //_____________________________________________________________________________
24 void TG4Polyhedra::CheckOrigin()
26 // Checks if polycone was created in a "historical way"
27 // and give exception otherwise.
30 if (!original_parameters) {
31 G4String text = "TG4Polyhedra::CheckOrigin: \n";
32 text = text + " Polycone has not defined original parameters.";
33 TG4Globals::Exception(text);
40 //_____________________________________________________________________________
41 G4int TG4Polyhedra::GetNofZPlanes()
43 // Returns nof z planes.
48 return original_parameters->Num_z_planes;
52 //_____________________________________________________________________________
53 G4double* TG4Polyhedra::GetRmin()
55 // Returns array of rmin parameters of the planes.
60 return original_parameters->Rmin;
63 //_____________________________________________________________________________
64 G4double* TG4Polyhedra::GetRmax()
66 // Returns array of rmax parameters of the planes.
71 return original_parameters->Rmax;
74 //_____________________________________________________________________________
75 G4double* TG4Polyhedra::GetZ()
77 // Returns array of z parameters of the planes.
82 return original_parameters->Z_values;