Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PolyhedraHistorical Class Reference

#include <G4Polyhedra.hh>

Public Member Functions

 G4PolyhedraHistorical ()
 
 ~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 70 of file G4Polyhedra.hh.

Constructor & Destructor Documentation

◆ G4PolyhedraHistorical() [1/2]

G4PolyhedraHistorical::G4PolyhedraHistorical ( )

Definition at line 1170 of file G4Polyhedra.cc.

1171 : Start_angle(0.), Opening_angle(0.), numSide(0), Num_z_planes(0),
1172 Z_values(0), Rmin(0), Rmax(0)
1173{
1174}

◆ ~G4PolyhedraHistorical()

G4PolyhedraHistorical::~G4PolyhedraHistorical ( )

Definition at line 1176 of file G4Polyhedra.cc.

1177{
1178 delete [] Z_values;
1179 delete [] Rmin;
1180 delete [] Rmax;
1181}

◆ G4PolyhedraHistorical() [2/2]

G4PolyhedraHistorical::G4PolyhedraHistorical ( const G4PolyhedraHistorical source)

Definition at line 1183 of file G4Polyhedra.cc.

1185{
1186 Start_angle = source.Start_angle;
1188 numSide = source.numSide;
1189 Num_z_planes = source.Num_z_planes;
1190
1192 Rmin = new G4double[Num_z_planes];
1193 Rmax = new G4double[Num_z_planes];
1194
1195 for( G4int i = 0; i < Num_z_planes; i++)
1196 {
1197 Z_values[i] = source.Z_values[i];
1198 Rmin[i] = source.Rmin[i];
1199 Rmax[i] = source.Rmax[i];
1200 }
1201}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66

Member Function Documentation

◆ operator=()

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

Definition at line 1204 of file G4Polyhedra.cc.

1205{
1206 if ( &right == this ) return *this;
1207
1208 if (&right)
1209 {
1210 Start_angle = right.Start_angle;
1212 numSide = right.numSide;
1213 Num_z_planes = right.Num_z_planes;
1214
1215 delete [] Z_values;
1216 delete [] Rmin;
1217 delete [] Rmax;
1219 Rmin = new G4double[Num_z_planes];
1220 Rmax = new G4double[Num_z_planes];
1221
1222 for( G4int i = 0; i < Num_z_planes; i++)
1223 {
1224 Z_values[i] = right.Z_values[i];
1225 Rmin[i] = right.Rmin[i];
1226 Rmax[i] = right.Rmax[i];
1227 }
1228 }
1229 return *this;
1230}

Member Data Documentation

◆ Num_z_planes

◆ numSide

◆ Opening_angle

◆ Rmax

◆ Rmin

◆ Start_angle

◆ Z_values


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