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

Definition at line 33 of file G4PolyconeHistorical.cc.

34{
35}

◆ G4PolyconeHistorical() [2/3]

G4PolyconeHistorical::G4PolyconeHistorical ( G4int  z_planes)

Definition at line 37 of file G4PolyconeHistorical.cc.

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

◆ ~G4PolyconeHistorical()

G4PolyconeHistorical::~G4PolyconeHistorical ( )

Definition at line 53 of file G4PolyconeHistorical.cc.

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

◆ G4PolyconeHistorical() [3/3]

G4PolyconeHistorical::G4PolyconeHistorical ( const G4PolyconeHistorical source)

Definition at line 60 of file G4PolyconeHistorical.cc.

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

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

Definition at line 80 of file G4PolyconeHistorical.cc.

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

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: