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

#include <G4Polycone.hh>

Public Member Functions

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

Public Attributes

G4double Start_angle
 
G4double Opening_angle
 
G4int Num_z_planes
 
G4doubleZ_values
 
G4doubleRmin
 
G4doubleRmax
 

Detailed Description

Definition at line 69 of file G4Polycone.hh.

Constructor & Destructor Documentation

◆ G4PolyconeHistorical() [1/2]

G4PolyconeHistorical::G4PolyconeHistorical ( )

Definition at line 1201 of file G4Polycone.cc.

1202 : Start_angle(0.), Opening_angle(0.), Num_z_planes(0),
1203 Z_values(0), Rmin(0), Rmax(0)
1204{
1205}
G4double Opening_angle
Definition: G4Polycone.hh:78
G4double * Z_values
Definition: G4Polycone.hh:80

◆ ~G4PolyconeHistorical()

G4PolyconeHistorical::~G4PolyconeHistorical ( )

Definition at line 1207 of file G4Polycone.cc.

1208{
1209 delete [] Z_values;
1210 delete [] Rmin;
1211 delete [] Rmax;
1212}

◆ G4PolyconeHistorical() [2/2]

G4PolyconeHistorical::G4PolyconeHistorical ( const G4PolyconeHistorical source)

Definition at line 1214 of file G4Polycone.cc.

1216{
1217 Start_angle = source.Start_angle;
1219 Num_z_planes = source.Num_z_planes;
1220
1222 Rmin = new G4double[Num_z_planes];
1223 Rmax = new G4double[Num_z_planes];
1224
1225 for( G4int i = 0; i < Num_z_planes; i++)
1226 {
1227 Z_values[i] = source.Z_values[i];
1228 Rmin[i] = source.Rmin[i];
1229 Rmax[i] = source.Rmax[i];
1230 }
1231}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66

Member Function Documentation

◆ operator=()

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

Definition at line 1234 of file G4Polycone.cc.

1235{
1236 if ( &right == this ) return *this;
1237
1238 if (&right)
1239 {
1240 Start_angle = right.Start_angle;
1242 Num_z_planes = right.Num_z_planes;
1243
1244 delete [] Z_values;
1245 delete [] Rmin;
1246 delete [] Rmax;
1248 Rmin = new G4double[Num_z_planes];
1249 Rmax = new G4double[Num_z_planes];
1250
1251 for( G4int i = 0; i < Num_z_planes; i++)
1252 {
1253 Z_values[i] = right.Z_values[i];
1254 Rmin[i] = right.Rmin[i];
1255 Rmax[i] = right.Rmax[i];
1256 }
1257 }
1258 return *this;
1259}

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: