53 nplanes, zstart, zvalues,
55 new
G4Tubs(
"IntersectionTubs",
56 0., 1., 1., sangle, oangle ) )
60 constructorParams.start_angle = sangle;
61 constructorParams.opening_angle = oangle;
62 constructorParams.num_z_planes = nplanes;
63 constructorParams.z_start = zstart;
64 constructorParams.z_values = 0;
65 constructorParams.RMIN = 0;
66 constructorParams.RMAX = 0;
69 constructorParams.z_values =
new G4double[nplanes];
70 constructorParams.RMIN =
new G4double[nplanes];
71 constructorParams.RMAX =
new G4double[nplanes];
72 for (
G4int i = 0; i < nplanes; ++i )
74 constructorParams.z_values[i] = zvalues[i];
75 constructorParams.RMIN[i] = radmin[i];
76 constructorParams.RMAX[i] = radmax[i];
88 constructorParams.start_angle = 0.;
89 constructorParams.opening_angle = 0.;
90 constructorParams.num_z_planes = 0;
91 constructorParams.z_start = 0.;
92 constructorParams.z_values = 0;
93 constructorParams.RMIN = 0;
94 constructorParams.RMAX = 0;
99 if( constructorParams.num_z_planes > 0 )
101 delete [] constructorParams.z_values;
102 delete [] constructorParams.RMIN;
103 delete [] constructorParams.RMAX;
110 rhs.constructorParams.opening_angle,
111 rhs.constructorParams.num_z_planes,
112 rhs.constructorParams.z_start,
113 rhs.constructorParams.z_values,
114 rhs.constructorParams.RMIN,
115 rhs.constructorParams.RMAX ),
116 new
G4Tubs(
"IntersectionTubs", 0., 1., 1.,
117 rhs.constructorParams.start_angle,
118 rhs.constructorParams.opening_angle ) )
122 constructorParams.start_angle = rhs.constructorParams.start_angle;
123 constructorParams.opening_angle = rhs.constructorParams.opening_angle;
124 constructorParams.num_z_planes = rhs.constructorParams.num_z_planes;
125 constructorParams.z_start = rhs.constructorParams.z_start;
126 constructorParams.z_values = 0;
127 constructorParams.RMIN = 0;
128 constructorParams.RMAX = 0;
129 G4int nplanes = constructorParams.num_z_planes;
132 constructorParams.z_values =
new G4double[nplanes];
133 constructorParams.RMIN =
new G4double[nplanes];
134 constructorParams.RMAX =
new G4double[nplanes];
135 for (
G4int i = 0; i < nplanes; ++i )
137 constructorParams.z_values[i] = rhs.constructorParams.z_values[i];
138 constructorParams.RMIN[i] = rhs.constructorParams.RMIN[i];
139 constructorParams.RMAX[i] = rhs.constructorParams.RMAX[i];
150 if (
this == &rhs) {
return *
this; }
159 constructorParams.start_angle = rhs.constructorParams.start_angle;
160 constructorParams.opening_angle = rhs.constructorParams.opening_angle;
161 constructorParams.num_z_planes = rhs.constructorParams.num_z_planes;
162 constructorParams.z_start = rhs.constructorParams.z_start;
163 G4int nplanes = constructorParams.num_z_planes;
166 delete [] constructorParams.z_values;
167 delete [] constructorParams.RMIN;
168 delete [] constructorParams.RMAX;
169 constructorParams.z_values =
new G4double[nplanes];
170 constructorParams.RMIN =
new G4double[nplanes];
171 constructorParams.RMAX =
new G4double[nplanes];
172 for(
G4int idx = 0; idx < nplanes; ++idx )
174 constructorParams.z_values[idx] = rhs.constructorParams.z_values[idx];
175 constructorParams.RMIN[idx] = rhs.constructorParams.RMIN[idx];
176 constructorParams.RMAX[idx] = rhs.constructorParams.RMAX[idx];
184void G4BREPSolidOpenPCone::InitializeOPCone()
187 for (
G4int i = 0; i < constructorParams.num_z_planes; ++i )
188 if ( constructorParams.RMAX[i] > MaxRMAX )
189 MaxRMAX = constructorParams.RMAX[i];
192 constructorParams.z_values[constructorParams.num_z_planes-1]
193 - constructorParams.z_values[0];
std::ostream & StreamInfo(std::ostream &os) const
G4BREPSolidOpenPCone & operator=(const G4BREPSolidOpenPCone &rhs)
G4BREPSolidOpenPCone(const G4String &name, G4double start_angle, G4double opening_angle, G4int num_z_planes, G4double z_start, G4double z_values[], G4double RMIN[], G4double RMAX[])
void DescribeYourselfTo(G4VGraphicsScene &scene) const
G4IntersectionSolid & operator=(const G4IntersectionSolid &rhs)
virtual void AddSolid(const G4Box &)=0
virtual std::ostream & StreamInfo(std::ostream &os) const =0
void SetName(const G4String &name)