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