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