#include <G4ParameterisationPolycone.hh>
|
| G4ParameterisationPolyconeRho (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *motherSolid, DivisionType divType) |
|
| ~G4ParameterisationPolyconeRho () override |
|
void | CheckParametersValidity () override |
|
G4double | GetMaxParameter () const override |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const override |
|
void | ComputeDimensions (G4Polycone &pcone, const G4int copyNo, const G4VPhysicalVolume *physVol) const override |
|
| G4VParameterisationPolycone (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) |
|
| ~G4VParameterisationPolycone () override |
|
| G4VDivisionParameterisation (EAxis axis, G4int nDiv, G4double width, G4double offset, DivisionType divType, G4VSolid *motherSolid=nullptr) |
|
| ~G4VDivisionParameterisation () override |
|
G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) override |
|
const G4String & | GetType () const |
|
EAxis | GetAxis () const |
|
G4int | GetNoDiv () const |
|
G4double | GetWidth () const |
|
G4double | GetOffset () const |
|
G4VSolid * | GetMotherSolid () const |
|
void | SetType (const G4String &type) |
|
G4int | VolumeFirstCopyNo () const |
|
void | SetHalfGap (G4double hg) |
|
G4double | GetHalfGap () const |
|
| G4VPVParameterisation ()=default |
|
virtual | ~G4VPVParameterisation ()=default |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr) |
|
virtual G4bool | IsNested () const |
|
virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
|
◆ G4ParameterisationPolyconeRho()
Definition at line 96 of file G4ParameterisationPolycone.cc.
101{
103 SetType(
"DivisionPolyconeRho" );
104
107
109 {
111 - origparamMother->
Rmin[0], width, offset );
112 }
114 {
116 - origparamMother->
Rmin[0], nDiv, offset );
117 }
118
119#ifdef G4DIVDEBUG
121 {
122 G4cout <<
" G4ParameterisationPolyconeRho - # divisions " <<
fnDiv
123 <<
" = " << nDiv <<
G4endl
126 }
127#endif
128}
G4GLOB_DLL std::ostream G4cout
void CheckParametersValidity() override
void SetType(const G4String &type)
G4double CalculateWidth(G4double motherDim, G4int nDiv, G4double offset) const
G4int CalculateNDiv(G4double motherDim, G4double width, G4double offset) const
static const G4int verbose
G4VParameterisationPolycone(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
◆ ~G4ParameterisationPolyconeRho()
G4ParameterisationPolyconeRho::~G4ParameterisationPolyconeRho |
( |
| ) |
|
|
overridedefault |
◆ CheckParametersValidity()
void G4ParameterisationPolyconeRho::CheckParametersValidity |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4VDivisionParameterisation.
Definition at line 134 of file G4ParameterisationPolycone.cc.
135{
137
139
141 {
142 std::ostringstream message;
143 message <<
"In solid " << msol->GetName() <<
G4endl
144 << "Division along R will be done with a width "
145 <<
"different for each solid section." <<
G4endl
146 << "WIDTH will not be used !";
147 G4Exception(
"G4VParameterisationPolycone::CheckParametersValidity()",
149 }
151 {
152 std::ostringstream message;
153 message <<
"In solid " << msol->GetName() <<
G4endl
154 << "Division along R will be done with a width "
155 <<
"different for each solid section." <<
G4endl
156 << "OFFSET will not be used !";
157 G4Exception(
"G4VParameterisationPolycone::CheckParametersValidity()",
159 }
160}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual void CheckParametersValidity()
DivisionType fDivisionType
Referenced by G4ParameterisationPolyconeRho().
◆ ComputeDimensions()
Reimplemented from G4VPVParameterisation.
Definition at line 208 of file G4ParameterisationPolycone.cc.
211{
213
217
219 for(
G4int ii = 0; ii < nZplanes; ++ii )
220 {
223 origparam.Rmin[ii] = origparamMother->
Rmin[ii]+
foffset+width*copyNo;
224 origparam.Rmax[ii] = origparamMother->
Rmin[ii]+
foffset+width*(copyNo+1);
225 }
226
229
230#ifdef G4DIVDEBUG
232 {
233 G4cout <<
"G4ParameterisationPolyconeRho::ComputeDimensions()" <<
G4endl
234 <<
"-- Parametrised pcone copy-number: " << copyNo <<
G4endl;
236 }
237#endif
238}
void SetOriginalParameters(G4PolyconeHistorical *pars)
◆ ComputeTransformation()
void G4ParameterisationPolyconeRho::ComputeTransformation |
( |
const G4int | copyNo, |
|
|
G4VPhysicalVolume * | physVol ) const |
|
overridevirtual |
Implements G4VDivisionParameterisation.
Definition at line 173 of file G4ParameterisationPolycone.cc.
175{
176
178
180
181
182
183#ifdef G4DIVDEBUG
185 {
189 }
190#endif
191
193
194#ifdef G4DIVDEBUG
196 {
197 G4cout << std::setprecision(8) <<
" G4ParameterisationPolyconeRho "
199 << " Position: (0,0,0)"
200 <<
" - Width: " <<
fwidth/CLHEP::deg
202 }
203#endif
204}
void ChangeRotMatrix(G4VPhysicalVolume *physVol, G4double rotZ=0.0) const
void SetTranslation(const G4ThreeVector &v)
◆ GetMaxParameter()
G4double G4ParameterisationPolyconeRho::GetMaxParameter |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: