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

#include <G4PolyconeHistorical.hh>

Public Member Functions

 G4PolyconeHistorical ()
 
 G4PolyconeHistorical (G4int z_planes)
 
 ~G4PolyconeHistorical ()
 
 G4PolyconeHistorical (const G4PolyconeHistorical &source)
 
G4PolyconeHistoricaloperator= (const G4PolyconeHistorical &right)
 

Public Attributes

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

Detailed Description

Definition at line 39 of file G4PolyconeHistorical.hh.

Constructor & Destructor Documentation

◆ G4PolyconeHistorical() [1/3]

G4PolyconeHistorical::G4PolyconeHistorical ( )
default

◆ G4PolyconeHistorical() [2/3]

G4PolyconeHistorical::G4PolyconeHistorical ( G4int z_planes)

Definition at line 35 of file G4PolyconeHistorical.cc.

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

◆ ~G4PolyconeHistorical()

G4PolyconeHistorical::~G4PolyconeHistorical ( )

Definition at line 51 of file G4PolyconeHistorical.cc.

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

◆ G4PolyconeHistorical() [3/3]

G4PolyconeHistorical::G4PolyconeHistorical ( const G4PolyconeHistorical & source)

Definition at line 58 of file G4PolyconeHistorical.cc.

60{
61 Start_angle = source.Start_angle;
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=()

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

Definition at line 78 of file G4PolyconeHistorical.cc.

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

Member Data Documentation

◆ Num_z_planes

◆ Opening_angle

◆ Rmax

◆ Rmin

◆ Start_angle

◆ Z_values


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