Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4PolyconeHistorical Class Reference

#include <G4PolyconeHistorical.hh>

Public Member Functions

 G4PolyconeHistorical ()
 
 G4PolyconeHistorical (G4int z_planes)
 
 ~G4PolyconeHistorical ()
 
 G4PolyconeHistorical (const G4PolyconeHistorical &source)
 
G4PolyconeHistoricaloperator= (const G4PolyconeHistorical &right)
 

Public Attributes

G4double Start_angle
 
G4double Opening_angle
 
G4int Num_z_planes
 
G4doubleZ_values
 
G4doubleRmin
 
G4doubleRmax
 

Detailed Description

Definition at line 47 of file G4PolyconeHistorical.hh.

Constructor & Destructor Documentation

G4PolyconeHistorical::G4PolyconeHistorical ( )
G4PolyconeHistorical::G4PolyconeHistorical ( G4int  z_planes)

Definition at line 49 of file G4PolyconeHistorical.cc.

50  : Start_angle(0.), Opening_angle(0.), Num_z_planes(z_planes)
51 {
52  Z_values = new G4double[z_planes];
53  Rmin = new G4double[z_planes];
54  Rmax = new G4double[z_planes];
55 
56  for( G4int i = 0; i < z_planes; i++)
57  {
58  Z_values[i] = 0.0;
59  Rmin[i] = 0.0;
60  Rmax[i] = 0.0;
61  }
62 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
G4PolyconeHistorical::~G4PolyconeHistorical ( )

Definition at line 64 of file G4PolyconeHistorical.cc.

65 {
66  delete [] Z_values;
67  delete [] Rmin;
68  delete [] Rmax;
69 }
G4PolyconeHistorical::G4PolyconeHistorical ( const G4PolyconeHistorical source)

Definition at line 72 of file G4PolyconeHistorical.cc.

73 {
74  Start_angle = source.Start_angle;
76  Num_z_planes = source.Num_z_planes;
77 
79  Rmin = new G4double[Num_z_planes];
80  Rmax = new G4double[Num_z_planes];
81 
82  for( G4int i = 0; i < Num_z_planes; i++)
83  {
84  Z_values[i] = source.Z_values[i];
85  Rmin[i] = source.Rmin[i];
86  Rmax[i] = source.Rmax[i];
87  }
88 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Member Function Documentation

G4PolyconeHistorical & G4PolyconeHistorical::operator= ( const G4PolyconeHistorical right)

Definition at line 91 of file G4PolyconeHistorical.cc.

92 {
93  if ( &right == this ) return *this;
94 
95  Start_angle = right.Start_angle;
97  Num_z_planes = right.Num_z_planes;
98 
99  delete [] Z_values;
100  delete [] Rmin;
101  delete [] Rmax;
103  Rmin = new G4double[Num_z_planes];
104  Rmax = new G4double[Num_z_planes];
105 
106  for( G4int i = 0; i < Num_z_planes; i++)
107  {
108  Z_values[i] = right.Z_values[i];
109  Rmin[i] = right.Rmin[i];
110  Rmax[i] = right.Rmax[i];
111  }
112 
113  return *this;
114 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Member Data Documentation

G4int G4PolyconeHistorical::Num_z_planes

Definition at line 58 of file G4PolyconeHistorical.hh.

G4double G4PolyconeHistorical::Opening_angle

Definition at line 57 of file G4PolyconeHistorical.hh.

G4double* G4PolyconeHistorical::Rmax

Definition at line 61 of file G4PolyconeHistorical.hh.

G4double* G4PolyconeHistorical::Rmin

Definition at line 60 of file G4PolyconeHistorical.hh.

G4double G4PolyconeHistorical::Start_angle

Definition at line 56 of file G4PolyconeHistorical.hh.

G4double* G4PolyconeHistorical::Z_values

Definition at line 59 of file G4PolyconeHistorical.hh.


The documentation for this class was generated from the following files: