3 // by I. Hrivnacova, 12.10.2000
5 // See the class description in the header file.
7 #include "TG4Polycone.h"
8 #include "TG4Globals.h"
10 TG4Polycone::TG4Polycone(const G4Polycone& rhs)
15 TG4Polycone::~TG4Polycone() {
20 void TG4Polycone::CheckOrigin()
22 // Checks if polycone was created in a "historical way"
23 // and give exception otherwise.
26 if (!original_parameters) {
27 G4String text = "TG4Polycone::CheckOrigin: \n";
28 text = text + " Polycone has not defined original parameters.";
29 TG4Globals::Exception(text);
36 G4int TG4Polycone::GetNofZPlanes()
38 // Returns nof z planes.
43 return original_parameters->Num_z_planes;
47 G4double* TG4Polycone::GetRmin()
49 // Returns array of rmin parameters of the planes.
54 return original_parameters->Rmin;
57 G4double* TG4Polycone::GetRmax()
59 // Returns array of rmax parameters of the planes.
64 return original_parameters->Rmax;
67 G4double* TG4Polycone::GetZ()
69 // Returns array of z parameters of the planes.
74 return original_parameters->Z_values;