]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4Polyhedra.cxx
attribute fSDConstruction and its getter added; added comment lines separating methods
[u/mrichter/AliRoot.git] / TGeant4 / TG4Polyhedra.cxx
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
10 //_____________________________________________________________________________
11 TG4Polyhedra::TG4Polyhedra(const G4Polyhedra& rhs) 
12   : G4Polyhedra(rhs) {
13 //
14 }
15
16 //_____________________________________________________________________________
17 TG4Polyhedra::~TG4Polyhedra() {
18 //
19 }
20
21 // private methods
22
23 //_____________________________________________________________________________
24 void 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
40 //_____________________________________________________________________________
41 G4int TG4Polyhedra::GetNofZPlanes()
42 {
43 // Returns nof z planes.
44 // ----
45   
46   CheckOrigin();
47
48   return original_parameters->Num_z_planes;
49 }  
50
51
52 //_____________________________________________________________________________
53 G4double* TG4Polyhedra::GetRmin()
54 {
55 // Returns array of rmin parameters of the planes.
56 // ----
57   
58   CheckOrigin();
59
60   return original_parameters->Rmin;
61 }  
62
63 //_____________________________________________________________________________
64 G4double* TG4Polyhedra::GetRmax()
65 {
66 // Returns array of rmax parameters of the planes.
67 // ----
68
69   CheckOrigin();
70   
71   return original_parameters->Rmax;
72 }  
73
74 //_____________________________________________________________________________
75 G4double* TG4Polyhedra::GetZ()
76 {
77 // Returns array of z parameters of the planes.
78 // ----
79
80   CheckOrigin();
81   
82   return original_parameters->Z_values;
83 }