]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4Polycone.cxx
Updated class description: added class name title, author
[u/mrichter/AliRoot.git] / TGeant4 / TG4Polycone.cxx
1 // $Id$
2 // Category: geometry
3 //
4 // Author: I. Hrivnacova, 12.10.2000 
5 //
6 // Class TG4Polycone
7 // -----------------
8 // See the class description in the header file.
9
10 #include "TG4Polycone.h"
11 #include "TG4Globals.h"
12
13 //_____________________________________________________________________________
14 TG4Polycone::TG4Polycone(const G4Polycone& rhs) 
15   : G4Polycone(rhs) {
16 //
17 }
18
19 //_____________________________________________________________________________
20 TG4Polycone::~TG4Polycone() {
21 //
22 }
23
24 // private methods
25
26 //_____________________________________________________________________________
27 void TG4Polycone::CheckOrigin() 
28 {
29 // Checks if polycone was created in a "historical way"
30 // and give exception otherwise.
31 // ---
32
33   if (!original_parameters) {
34     G4String text = "TG4Polycone::CheckOrigin: \n";
35     text = text + "    Polycone has not defined original parameters.";
36     TG4Globals::Exception(text);
37   }  
38 }
39
40
41 // public methods
42
43 //_____________________________________________________________________________
44 G4int TG4Polycone::GetNofZPlanes()
45 {
46 // Returns nof z planes.
47 // ----
48   
49   CheckOrigin();
50
51   return original_parameters->Num_z_planes;
52 }  
53
54 //_____________________________________________________________________________
55 G4double* TG4Polycone::GetRmin()
56 {
57 // Returns array of rmin parameters of the planes.
58 // ----
59   
60   CheckOrigin();
61
62   return original_parameters->Rmin;
63 }  
64
65 //_____________________________________________________________________________
66 G4double* TG4Polycone::GetRmax()
67 {
68 // Returns array of rmax parameters of the planes.
69 // ----
70
71   CheckOrigin();
72   
73   return original_parameters->Rmax;
74 }  
75
76 //_____________________________________________________________________________
77 G4double* TG4Polycone::GetZ()
78 {
79 // Returns array of z parameters of the planes.
80 // ----
81
82   CheckOrigin();
83   
84   return original_parameters->Z_values;
85 }