Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PolyhedraHistorical Class Reference

#include <G4PolyhedraHistorical.hh>

Public Member Functions

 G4PolyhedraHistorical ()
 
 G4PolyhedraHistorical (G4int z_planes)
 
 ~G4PolyhedraHistorical ()
 
 G4PolyhedraHistorical (const G4PolyhedraHistorical &source)
 
G4PolyhedraHistoricaloperator= (const G4PolyhedraHistorical &right)
 

Public Attributes

G4double Start_angle
 
G4double Opening_angle
 
G4int numSide
 
G4int Num_z_planes
 
G4doubleZ_values
 
G4doubleRmin
 
G4doubleRmax
 

Detailed Description

Definition at line 47 of file G4PolyhedraHistorical.hh.

Constructor & Destructor Documentation

G4PolyhedraHistorical::G4PolyhedraHistorical ( )
G4PolyhedraHistorical::G4PolyhedraHistorical ( G4int  z_planes)

Definition at line 48 of file G4PolyhedraHistorical.cc.

49  : Start_angle(0.), Opening_angle(0.), numSide(0),
50  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
G4PolyhedraHistorical::~G4PolyhedraHistorical ( )

Definition at line 64 of file G4PolyhedraHistorical.cc.

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

Definition at line 72 of file G4PolyhedraHistorical.cc.

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

Member Function Documentation

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

Definition at line 92 of file G4PolyhedraHistorical.cc.

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

Member Data Documentation

G4int G4PolyhedraHistorical::Num_z_planes

Definition at line 60 of file G4PolyhedraHistorical.hh.

G4int G4PolyhedraHistorical::numSide

Definition at line 59 of file G4PolyhedraHistorical.hh.

G4double G4PolyhedraHistorical::Opening_angle

Definition at line 58 of file G4PolyhedraHistorical.hh.

G4double* G4PolyhedraHistorical::Rmax

Definition at line 63 of file G4PolyhedraHistorical.hh.

G4double* G4PolyhedraHistorical::Rmin

Definition at line 62 of file G4PolyhedraHistorical.hh.

G4double G4PolyhedraHistorical::Start_angle

Definition at line 57 of file G4PolyhedraHistorical.hh.

G4double* G4PolyhedraHistorical::Z_values

Definition at line 61 of file G4PolyhedraHistorical.hh.


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