Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 = 0.0
 
G4double Opening_angle = 0.0
 
G4int numSide = 0
 
G4int Num_z_planes = 0
 
G4doubleZ_values = nullptr
 
G4doubleRmin = nullptr
 
G4doubleRmax = nullptr
 

Detailed Description

Definition at line 39 of file G4PolyhedraHistorical.hh.

Constructor & Destructor Documentation

◆ G4PolyhedraHistorical() [1/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( )
default

◆ G4PolyhedraHistorical() [2/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( G4int z_planes)

Definition at line 35 of file G4PolyhedraHistorical.cc.

36 : Num_z_planes(z_planes)
37{
38 Z_values = new G4double[z_planes];
39 Rmin = new G4double[z_planes];
40 Rmax = new G4double[z_planes];
41
42 for( G4int i = 0; i < z_planes; ++i)
43 {
44 Z_values[i] = 0.0;
45 Rmin[i] = 0.0;
46 Rmax[i] = 0.0;
47 }
48}
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85

◆ ~G4PolyhedraHistorical()

G4PolyhedraHistorical::~G4PolyhedraHistorical ( )

Definition at line 50 of file G4PolyhedraHistorical.cc.

51{
52 delete [] Z_values;
53 delete [] Rmin;
54 delete [] Rmax;
55}

◆ G4PolyhedraHistorical() [3/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( const G4PolyhedraHistorical & source)

Definition at line 57 of file G4PolyhedraHistorical.cc.

59{
60 Start_angle = source.Start_angle;
62 numSide = source.numSide;
64
68
69 for( G4int i = 0; i < Num_z_planes; ++i)
70 {
71 Z_values[i] = source.Z_values[i];
72 Rmin[i] = source.Rmin[i];
73 Rmax[i] = source.Rmax[i];
74 }
75}

Member Function Documentation

◆ operator=()

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

Definition at line 78 of file G4PolyhedraHistorical.cc.

79{
80 if ( &right == this ) return *this;
81
84 numSide = right.numSide;
86
87 delete [] Z_values;
88 delete [] Rmin;
89 delete [] Rmax;
93
94 for( G4int i = 0; i < Num_z_planes; ++i)
95 {
96 Z_values[i] = right.Z_values[i];
97 Rmin[i] = right.Rmin[i];
98 Rmax[i] = right.Rmax[i];
99 }
100
101 return *this;
102}

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: