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 //_____________________________________________________________________________
11 TG4Polycone::TG4Polycone(const G4Polycone& rhs)
16 //_____________________________________________________________________________
17 TG4Polycone::~TG4Polycone() {
23 //_____________________________________________________________________________
24 void TG4Polycone::CheckOrigin()
26 // Checks if polycone was created in a "historical way"
27 // and give exception otherwise.
30 if (!original_parameters) {
31 G4String text = "TG4Polycone::CheckOrigin: \n";
32 text = text + " Polycone has not defined original parameters.";
33 TG4Globals::Exception(text);
40 //_____________________________________________________________________________
41 G4int TG4Polycone::GetNofZPlanes()
43 // Returns nof z planes.
48 return original_parameters->Num_z_planes;
51 //_____________________________________________________________________________
52 G4double* TG4Polycone::GetRmin()
54 // Returns array of rmin parameters of the planes.
59 return original_parameters->Rmin;
62 //_____________________________________________________________________________
63 G4double* TG4Polycone::GetRmax()
65 // Returns array of rmax parameters of the planes.
70 return original_parameters->Rmax;
73 //_____________________________________________________________________________
74 G4double* TG4Polycone::GetZ()
76 // Returns array of z parameters of the planes.
81 return original_parameters->Z_values;