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

#include <G4PolyconeHistorical.hh>

Public Member Functions

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

Data Fields

G4int Num_z_planes = 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 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

References Rmax, Rmin, and Z_values.

◆ ~G4PolyconeHistorical()

G4PolyconeHistorical::~G4PolyconeHistorical ( )

Definition at line 53 of file G4PolyconeHistorical.cc.

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

References Rmax, Rmin, and Z_values.

◆ G4PolyconeHistorical() [3/3]

G4PolyconeHistorical::G4PolyconeHistorical ( const G4PolyconeHistorical source)

Definition at line 60 of file G4PolyconeHistorical.cc.

62{
63 Start_angle = source.Start_angle;
64 Opening_angle = source.Opening_angle;
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, Opening_angle, Rmax, Rmin, Start_angle, and Z_values.

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}

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

Field Documentation

◆ Num_z_planes

G4int G4PolyconeHistorical::Num_z_planes = 0

◆ Opening_angle

G4double G4PolyconeHistorical::Opening_angle = 0.0

◆ Rmax

G4double* G4PolyconeHistorical::Rmax = nullptr

◆ Rmin

G4double* G4PolyconeHistorical::Rmin = nullptr

◆ Start_angle

G4double G4PolyconeHistorical::Start_angle = 0.0

◆ Z_values

G4double* G4PolyconeHistorical::Z_values = nullptr

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