Geant4-11
Public Member Functions | Data Fields
G4PolyhedraHistorical Class Reference

#include <G4PolyhedraHistorical.hh>

Public Member Functions

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

Data Fields

G4int Num_z_planes = 0
 
G4int numSide = 0
 
G4double Opening_angle = 0.0
 
G4doubleRmax = nullptr
 
G4doubleRmin = nullptr
 
G4double Start_angle = 0.0
 
G4doubleZ_values = nullptr
 

Detailed Description

Definition at line 39 of file G4PolyhedraHistorical.hh.

Constructor & Destructor Documentation

◆ G4PolyhedraHistorical() [1/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( )

Definition at line 33 of file G4PolyhedraHistorical.cc.

34{
35}

◆ G4PolyhedraHistorical() [2/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( G4int  z_planes)

Definition at line 37 of file G4PolyhedraHistorical.cc.

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

References Rmax, Rmin, and Z_values.

◆ ~G4PolyhedraHistorical()

G4PolyhedraHistorical::~G4PolyhedraHistorical ( )

Definition at line 52 of file G4PolyhedraHistorical.cc.

53{
54 delete [] Z_values;
55 delete [] Rmin;
56 delete [] Rmax;
57}

References Rmax, Rmin, and Z_values.

◆ G4PolyhedraHistorical() [3/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( const G4PolyhedraHistorical source)

Definition at line 59 of file G4PolyhedraHistorical.cc.

61{
62 Start_angle = source.Start_angle;
63 Opening_angle = source.Opening_angle;
64 numSide = source.numSide;
65 Num_z_planes = source.Num_z_planes;
66
70
71 for( G4int i = 0; i < Num_z_planes; ++i)
72 {
73 Z_values[i] = source.Z_values[i];
74 Rmin[i] = source.Rmin[i];
75 Rmax[i] = source.Rmax[i];
76 }
77}

References Num_z_planes, numSide, Opening_angle, Rmax, Rmin, Start_angle, and Z_values.

Member Function Documentation

◆ operator=()

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

Definition at line 80 of file G4PolyhedraHistorical.cc.

81{
82 if ( &right == this ) return *this;
83
86 numSide = right.numSide;
88
89 delete [] Z_values;
90 delete [] Rmin;
91 delete [] Rmax;
95
96 for( G4int i = 0; i < Num_z_planes; ++i)
97 {
98 Z_values[i] = right.Z_values[i];
99 Rmin[i] = right.Rmin[i];
100 Rmax[i] = right.Rmax[i];
101 }
102
103 return *this;
104}

References Num_z_planes, numSide, Opening_angle, Rmax, Rmin, Start_angle, and Z_values.

Field Documentation

◆ Num_z_planes

G4int G4PolyhedraHistorical::Num_z_planes = 0

◆ numSide

G4int G4PolyhedraHistorical::numSide = 0

◆ Opening_angle

G4double G4PolyhedraHistorical::Opening_angle = 0.0

◆ Rmax

G4double* G4PolyhedraHistorical::Rmax = nullptr

◆ Rmin

G4double* G4PolyhedraHistorical::Rmin = nullptr

◆ Start_angle

G4double G4PolyhedraHistorical::Start_angle = 0.0

◆ Z_values

G4double* G4PolyhedraHistorical::Z_values = nullptr

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