Geant4 11.1.1
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 ( )

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

◆ ~G4PolyhedraHistorical()

G4PolyhedraHistorical::~G4PolyhedraHistorical ( )

Definition at line 52 of file G4PolyhedraHistorical.cc.

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

◆ G4PolyhedraHistorical() [3/3]

G4PolyhedraHistorical::G4PolyhedraHistorical ( const G4PolyhedraHistorical source)

Definition at line 59 of file G4PolyhedraHistorical.cc.

61{
62 Start_angle = source.Start_angle;
64 numSide = source.numSide;
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}

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}

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: