]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4Polycone.cxx
Access function to local momenta renamed.
[u/mrichter/AliRoot.git] / TGeant4 / TG4Polycone.cxx
CommitLineData
c41ca2c7 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
10TG4Polycone::TG4Polycone(const G4Polycone& rhs)
11 : G4Polycone(rhs) {
12//
13}
14
15TG4Polycone::~TG4Polycone() {
16//
17}
18
19// private methods
20void TG4Polycone::CheckOrigin()
21{
22// Checks if polycone was created in a "historical way"
23// and give exception otherwise.
24// ---
25
26 if (!original_parameters) {
27 G4String text = "TG4Polycone::CheckOrigin: \n";
28 text = text + " Polycone has not defined original parameters.";
29 TG4Globals::Exception(text);
30 }
31}
32
33
34// public methods
35
36G4int TG4Polycone::GetNofZPlanes()
37{
38// Returns nof z planes.
39// ----
40
41 CheckOrigin();
42
43 return original_parameters->Num_z_planes;
44}
45
46
47G4double* TG4Polycone::GetRmin()
48{
49// Returns array of rmin parameters of the planes.
50// ----
51
52 CheckOrigin();
53
54 return original_parameters->Rmin;
55}
56
57G4double* TG4Polycone::GetRmax()
58{
59// Returns array of rmax parameters of the planes.
60// ----
61
62 CheckOrigin();
63
64 return original_parameters->Rmax;
65}
66
67G4double* TG4Polycone::GetZ()
68{
69// Returns array of z parameters of the planes.
70// ----
71
72 CheckOrigin();
73
74 return original_parameters->Z_values;
75}