Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
G4ParameterisationParaY Class Reference

#include <G4ParameterisationPara.hh>

Inheritance diagram for G4ParameterisationParaY:
G4VParameterisationPara G4VDivisionParameterisation G4VPVParameterisation

Public Member Functions

void ComputeDimensions (G4Para &para, const G4int copyNo, const G4VPhysicalVolume *pv) const
 
virtual G4MaterialComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr)
 
virtual G4VSolidComputeSolid (const G4int, G4VPhysicalVolume *)
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const
 
 G4ParameterisationParaY (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
 
EAxis GetAxis () const
 
G4double GetHalfGap () const
 
virtual G4VVolumeMaterialScannerGetMaterialScanner ()
 
G4double GetMaxParameter () const
 
G4VSolidGetMotherSolid () const
 
G4int GetNoDiv () const
 
G4double GetOffset () const
 
const G4StringGetType () const
 
G4double GetWidth () const
 
virtual G4bool IsNested () const
 
void SetHalfGap (G4double hg)
 
void SetType (const G4String &type)
 
G4int VolumeFirstCopyNo () const
 
 ~G4ParameterisationParaY ()
 

Protected Member Functions

G4int CalculateNDiv (G4double motherDim, G4double width, G4double offset) const
 
G4double CalculateWidth (G4double motherDim, G4int nDiv, G4double offset) const
 
void ChangeRotMatrix (G4VPhysicalVolume *physVol, G4double rotZ=0.0) const
 
void CheckNDivAndWidth (G4double maxPar)
 
void CheckOffset (G4double maxPar)
 
virtual void CheckParametersValidity ()
 
G4double OffsetZ () const
 

Protected Attributes

EAxis faxis
 
G4bool fDeleteSolid = false
 
DivisionType fDivisionType
 
G4double fhgap = 0.0
 
G4VSolidfmotherSolid = nullptr
 
G4int fnDiv = 0
 
G4double foffset = 0.0
 
G4bool fReflectedSolid = false
 
G4String ftype
 
G4double fwidth = 0.0
 
G4double kCarTolerance
 
G4int theVoluFirstCopyNo = 1
 

Static Protected Attributes

static G4ThreadLocal G4RotationMatrixfRot = nullptr
 
static const G4int verbose = 5
 

Private Member Functions

void ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 

Detailed Description

Definition at line 115 of file G4ParameterisationPara.hh.

Constructor & Destructor Documentation

◆ G4ParameterisationParaY()

G4ParameterisationParaY::G4ParameterisationParaY ( EAxis  axis,
G4int  nCopies,
G4double  offset,
G4double  step,
G4VSolid msolid,
DivisionType  divType 
)

Definition at line 184 of file G4ParameterisationPara.cc.

188 : G4VParameterisationPara( axis, nDiv, width, offset, msolid, divType )
189{
191 SetType( "DivisionParaY" );
192
193 G4Para* mpara = (G4Para*)(fmotherSolid);
194 if( divType == DivWIDTH )
195 {
196 fnDiv = CalculateNDiv( 2*mpara->GetYHalfLength(), width, offset );
197 }
198 else if( divType == DivNDIV )
199 {
200 fwidth = CalculateWidth( 2*mpara->GetYHalfLength(), nDiv, offset );
201 }
202
203#ifdef G4DIVDEBUG
204 if( verbose >= 1 )
205 {
206 G4cout << " G4ParameterisationParaY - # divisions " << fnDiv
207 << " = " << nDiv << G4endl
208 << " Offset " << foffset << " = " << offset << G4endl
209 << " Width " << fwidth << " = " << width << G4endl;
210 }
211#endif
212}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
Definition: G4Para.hh:79
G4double GetYHalfLength() const
void SetType(const G4String &type)
G4double CalculateWidth(G4double motherDim, G4int nDiv, G4double offset) const
G4int CalculateNDiv(G4double motherDim, G4double width, G4double offset) const
G4VParameterisationPara(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)

References G4VDivisionParameterisation::CalculateNDiv(), G4VDivisionParameterisation::CalculateWidth(), G4VDivisionParameterisation::CheckParametersValidity(), DivNDIV, DivWIDTH, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::fnDiv, G4VDivisionParameterisation::foffset, G4VDivisionParameterisation::fwidth, G4cout, G4endl, G4Para::GetYHalfLength(), G4VDivisionParameterisation::SetType(), and G4VDivisionParameterisation::verbose.

◆ ~G4ParameterisationParaY()

G4ParameterisationParaY::~G4ParameterisationParaY ( )

Definition at line 215 of file G4ParameterisationPara.cc.

216{
217}

Member Function Documentation

◆ CalculateNDiv()

G4int G4VDivisionParameterisation::CalculateNDiv ( G4double  motherDim,
G4double  width,
G4double  offset 
) const
protectedinherited

Definition at line 99 of file G4VDivisionParameterisation.cc.

101{
102#ifdef G4DIVDEBUG
103 G4cout << " G4VDivisionParameterisation::CalculateNDiv: "
104 << ( motherDim - offset ) / width
105 << " Motherdim: " << motherDim << ", Offset: " << offset
106 << ", Width: " << width << G4endl;
107#endif
108
109 return G4int( ( motherDim - offset ) / width );
110}
int G4int
Definition: G4Types.hh:85

References G4cout, and G4endl.

Referenced by G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyconeZ::G4ParameterisationPolyconeZ(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationPolyhedraZ::G4ParameterisationPolyhedraZ(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), and G4ParameterisationTubsZ::G4ParameterisationTubsZ().

◆ CalculateWidth()

G4double G4VDivisionParameterisation::CalculateWidth ( G4double  motherDim,
G4int  nDiv,
G4double  offset 
) const
protectedinherited

Definition at line 114 of file G4VDivisionParameterisation.cc.

116{
117#ifdef G4DIVDEBUG
118 G4cout << " G4VDivisionParameterisation::CalculateWidth: "
119 << ( motherDim - offset ) / nDiv
120 << ", Motherdim: " << motherDim << ", Offset: " << offset
121 << ", Number of divisions: " << nDiv << G4endl;
122#endif
123
124 return ( motherDim - offset ) / nDiv;
125}

References G4cout, and G4endl.

Referenced by G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationPolyconeRho::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), and G4ParameterisationTubsZ::G4ParameterisationTubsZ().

◆ ChangeRotMatrix()

void G4VDivisionParameterisation::ChangeRotMatrix ( G4VPhysicalVolume physVol,
G4double  rotZ = 0.0 
) const
protectedinherited

Definition at line 85 of file G4VDivisionParameterisation.cc.

87{
88 if (fRot == nullptr)
89 {
90 fRot = new G4RotationMatrix();
92 }
93 fRot->rotateZ( rotZ );
94 physVol->SetRotation(fRot);
95}
CLHEP::HepRotation G4RotationMatrix
HepRotation & rotateZ(double delta)
Definition: Rotation.cc:87
static G4ThreadLocal G4RotationMatrix * fRot
void SetRotation(G4RotationMatrix *)
void Register(T *inst)
Definition: G4AutoDelete.hh:65

References G4VDivisionParameterisation::fRot, G4AutoDelete::Register(), CLHEP::HepRotation::rotateZ(), and G4VPhysicalVolume::SetRotation().

Referenced by G4ParameterisationConsRho::ComputeTransformation(), G4ParameterisationConsPhi::ComputeTransformation(), G4ParameterisationConsZ::ComputeTransformation(), G4ParameterisationPolyconeRho::ComputeTransformation(), G4ParameterisationPolyconePhi::ComputeTransformation(), G4ParameterisationPolyconeZ::ComputeTransformation(), G4ParameterisationPolyhedraRho::ComputeTransformation(), G4ParameterisationPolyhedraPhi::ComputeTransformation(), G4ParameterisationPolyhedraZ::ComputeTransformation(), G4ParameterisationTubsRho::ComputeTransformation(), G4ParameterisationTubsPhi::ComputeTransformation(), and G4ParameterisationTubsZ::ComputeTransformation().

◆ CheckNDivAndWidth()

void G4VDivisionParameterisation::CheckNDivAndWidth ( G4double  maxPar)
protectedinherited

Definition at line 151 of file G4VDivisionParameterisation.cc.

152{
154 && (foffset + fwidth*fnDiv - maxPar > kCarTolerance ) )
155 {
156 std::ostringstream message;
157 message << "Configuration not supported." << G4endl
158 << "Division of solid " << fmotherSolid->GetName()
159 << " has too big offset + width*nDiv = " << G4endl
160 << " " << foffset + fwidth*fnDiv << " > "
161 << foffset << ". Width = "
162 << G4endl
163 << " " << fwidth << ". nDiv = " << fnDiv << " !";
164 G4Exception("G4VDivisionParameterisation::CheckNDivAndWidth()",
165 "GeomDiv0001", FatalException, message);
166 }
167}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
G4String GetName() const

References DivNDIVandWIDTH, FatalException, G4VDivisionParameterisation::fDivisionType, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::fnDiv, G4VDivisionParameterisation::foffset, G4VDivisionParameterisation::fwidth, G4endl, G4Exception(), G4VSolid::GetName(), and G4VDivisionParameterisation::kCarTolerance.

Referenced by G4VDivisionParameterisation::CheckParametersValidity().

◆ CheckOffset()

void G4VDivisionParameterisation::CheckOffset ( G4double  maxPar)
protectedinherited

Definition at line 136 of file G4VDivisionParameterisation.cc.

137{
138 if( foffset >= maxPar )
139 {
140 std::ostringstream message;
141 message << "Configuration not supported." << G4endl
142 << "Division of solid " << fmotherSolid->GetName()
143 << " has too big offset = " << G4endl
144 << " " << foffset << " > " << maxPar << " !";
145 G4Exception("G4VDivisionParameterisation::CheckOffset()",
146 "GeomDiv0001", FatalException, message);
147 }
148}

References FatalException, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::foffset, G4endl, G4Exception(), and G4VSolid::GetName().

Referenced by G4VDivisionParameterisation::CheckParametersValidity().

◆ CheckParametersValidity()

void G4VDivisionParameterisation::CheckParametersValidity ( )
protectedvirtualinherited

Reimplemented in G4ParameterisationPolyconeRho, G4ParameterisationPolyconeZ, G4ParameterisationPolyhedraRho, G4ParameterisationPolyhedraPhi, and G4ParameterisationPolyhedraZ.

Definition at line 128 of file G4VDivisionParameterisation.cc.

129{
130 G4double maxPar = GetMaxParameter();
131 CheckOffset( maxPar );
132 CheckNDivAndWidth( maxPar );
133}
double G4double
Definition: G4Types.hh:83
virtual G4double GetMaxParameter() const =0

References G4VDivisionParameterisation::CheckNDivAndWidth(), G4VDivisionParameterisation::CheckOffset(), and G4VDivisionParameterisation::GetMaxParameter().

Referenced by G4ParameterisationPolyconeRho::CheckParametersValidity(), G4ParameterisationPolyconeZ::CheckParametersValidity(), G4ParameterisationPolyhedraRho::CheckParametersValidity(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4ParameterisationPolyhedraZ::CheckParametersValidity(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), and G4ParameterisationTubsZ::G4ParameterisationTubsZ().

◆ ComputeDimensions() [1/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Box ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 136 of file G4ParameterisationPara.hh.

137 {}

◆ ComputeDimensions() [2/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Cons ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 134 of file G4ParameterisationPara.hh.

135 {}

◆ ComputeDimensions() [3/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Ellipsoid ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 142 of file G4ParameterisationPara.hh.

143 {}

◆ ComputeDimensions() [4/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Hype ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 150 of file G4ParameterisationPara.hh.

151 {}

◆ ComputeDimensions() [5/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Orb ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 140 of file G4ParameterisationPara.hh.

141 {}

◆ ComputeDimensions() [6/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Para para,
const G4int  copyNo,
const G4VPhysicalVolume pv 
) const
virtual

Reimplemented from G4VPVParameterisation.

Definition at line 256 of file G4ParameterisationPara.cc.

259{
260 //---- The division along Y of a Para will result a Para
261 G4Para* msol = (G4Para*)(fmotherSolid);
262
263 //---- Get
264 G4double pDx = msol->GetXHalfLength();
265 G4double pDy = fwidth/2. - fhgap;
266 G4double pDz = msol->GetZHalfLength();
267 G4double pAlpha = std::atan(msol->GetTanAlpha());
268 G4double pTheta = msol->GetSymAxis().theta();
269 G4double pPhi = msol->GetSymAxis().phi();
270
271 para.SetAllParameters ( pDx, pDy, pDz, pAlpha, pTheta, pPhi );
272
273#ifdef G4DIVDEBUG
274 if( verbose >= -1 )
275 {
276 G4cout << " G4ParameterisationParaY::ComputeDimensions()"
277 << " - Mother PARA " << G4endl;
278 msol->DumpInfo();
279 G4cout << " - Parameterised PARA: " << G4endl;
280 para.DumpInfo();
281 }
282#endif
283}
double phi() const
double theta() const
G4double GetTanAlpha() const
G4ThreeVector GetSymAxis() const
void SetAllParameters(G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: G4Para.cc:185
G4double GetZHalfLength() const
G4double GetXHalfLength() const
void DumpInfo() const

References G4VSolid::DumpInfo(), G4VDivisionParameterisation::fhgap, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::fwidth, G4cout, G4endl, G4Para::GetSymAxis(), G4Para::GetTanAlpha(), G4Para::GetXHalfLength(), G4Para::GetZHalfLength(), CLHEP::Hep3Vector::phi(), G4Para::SetAllParameters(), CLHEP::Hep3Vector::theta(), and G4VDivisionParameterisation::verbose.

◆ ComputeDimensions() [7/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Polycone ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 154 of file G4ParameterisationPara.hh.

155 {}

◆ ComputeDimensions() [8/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Polyhedra ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 156 of file G4ParameterisationPara.hh.

157 {}

◆ ComputeDimensions() [9/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Sphere ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 138 of file G4ParameterisationPara.hh.

139 {}

◆ ComputeDimensions() [10/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Torus ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 144 of file G4ParameterisationPara.hh.

145 {}

◆ ComputeDimensions() [11/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Trap ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 148 of file G4ParameterisationPara.hh.

149 {}

◆ ComputeDimensions() [12/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Trd ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 146 of file G4ParameterisationPara.hh.

147 {}

◆ ComputeDimensions() [13/13]

void G4ParameterisationParaY::ComputeDimensions ( G4Tubs ,
const  G4int,
const G4VPhysicalVolume  
) const
inlineprivatevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 152 of file G4ParameterisationPara.hh.

153 {}

◆ ComputeMaterial()

G4Material * G4VPVParameterisation::ComputeMaterial ( const G4int  repNo,
G4VPhysicalVolume currentVol,
const G4VTouchable parentTouch = nullptr 
)
virtualinherited

◆ ComputeSolid()

G4VSolid * G4VDivisionParameterisation::ComputeSolid ( const G4int  i,
G4VPhysicalVolume pv 
)
virtualinherited

Reimplemented from G4VPVParameterisation.

Definition at line 72 of file G4VDivisionParameterisation.cc.

74{
76 if (solid->GetEntityType() == "G4ReflectedSolid")
77 {
78 solid = ((G4ReflectedSolid*)solid)->GetConstituentMovedSolid();
79 }
80 return solid;
81}
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4GeometryType GetEntityType() const =0

References G4VPVParameterisation::ComputeSolid(), and G4VSolid::GetEntityType().

◆ ComputeTransformation()

void G4ParameterisationParaY::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume physVol 
) const
virtual

Implements G4VDivisionParameterisation.

Definition at line 228 of file G4ParameterisationPara.cc.

230{
231 G4Para* msol = (G4Para*)(fmotherSolid );
232 G4double mdy = msol->GetYHalfLength( );
233
234 //----- translation
235 G4ThreeVector origin(0.,0.,0.);
236 G4double posiY = -mdy + foffset+(copyNo+0.5)*fwidth;
237 origin.setY( posiY );
238 G4double posiX = posiY * msol->GetTanAlpha();
239 origin.setX( posiX );
240
241#ifdef G4DIVDEBUG
242 if( verbose >= 2 )
243 {
244 G4cout << std::setprecision(8) << " G4ParameterisationParaY "
245 << copyNo << G4endl
246 << " Position: " << origin << " - Axis: " << faxis << G4endl;
247 }
248#endif
249
250 //----- set translation
251 physVol->SetTranslation( origin );
252}
void SetTranslation(const G4ThreeVector &v)

References G4VDivisionParameterisation::faxis, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::foffset, G4VDivisionParameterisation::fwidth, G4cout, G4endl, G4Para::GetTanAlpha(), G4Para::GetYHalfLength(), G4VPhysicalVolume::SetTranslation(), CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), and G4VDivisionParameterisation::verbose.

◆ GetAxis()

EAxis G4VDivisionParameterisation::GetAxis ( ) const
inlineinherited

◆ GetHalfGap()

G4double G4VDivisionParameterisation::GetHalfGap ( ) const
inlineinherited

◆ GetMaterialScanner()

G4VVolumeMaterialScanner * G4VPVParameterisation::GetMaterialScanner ( )
virtualinherited

Reimplemented in G4VNestedParameterisation.

Definition at line 62 of file G4VPVParameterisation.cc.

63{
64 return nullptr;
65}

Referenced by G4Region::ScanVolumeTree().

◆ GetMaxParameter()

G4double G4ParameterisationParaY::GetMaxParameter ( ) const
virtual

Implements G4VDivisionParameterisation.

Definition at line 220 of file G4ParameterisationPara.cc.

221{
222 G4Para* msol = (G4Para*)(fmotherSolid);
223 return 2*msol->GetYHalfLength();
224}

References G4VDivisionParameterisation::fmotherSolid, and G4Para::GetYHalfLength().

◆ GetMotherSolid()

G4VSolid * G4VDivisionParameterisation::GetMotherSolid ( ) const
inlineinherited

◆ GetNoDiv()

G4int G4VDivisionParameterisation::GetNoDiv ( ) const
inlineinherited

◆ GetOffset()

G4double G4VDivisionParameterisation::GetOffset ( ) const
inlineinherited

◆ GetType()

const G4String & G4VDivisionParameterisation::GetType ( ) const
inlineinherited

◆ GetWidth()

G4double G4VDivisionParameterisation::GetWidth ( ) const
inlineinherited

◆ IsNested()

G4bool G4VPVParameterisation::IsNested ( ) const
virtualinherited

◆ OffsetZ()

G4double G4VDivisionParameterisation::OffsetZ ( ) const
protectedinherited

◆ SetHalfGap()

void G4VDivisionParameterisation::SetHalfGap ( G4double  hg)
inlineinherited

◆ SetType()

void G4VDivisionParameterisation::SetType ( const G4String type)
inlineinherited

◆ VolumeFirstCopyNo()

G4int G4VDivisionParameterisation::VolumeFirstCopyNo ( ) const
inlineinherited

Field Documentation

◆ faxis

EAxis G4VDivisionParameterisation::faxis
protectedinherited

◆ fDeleteSolid

G4bool G4VDivisionParameterisation::fDeleteSolid = false
protectedinherited

◆ fDivisionType

DivisionType G4VDivisionParameterisation::fDivisionType
protectedinherited

◆ fhgap

G4double G4VDivisionParameterisation::fhgap = 0.0
protectedinherited

◆ fmotherSolid

G4VSolid* G4VDivisionParameterisation::fmotherSolid = nullptr
protectedinherited

Definition at line 99 of file G4VDivisionParameterisation.hh.

Referenced by G4VDivisionParameterisation::CheckNDivAndWidth(), G4VDivisionParameterisation::CheckOffset(), G4ParameterisationPolyconeRho::CheckParametersValidity(), G4ParameterisationPolyconeZ::CheckParametersValidity(), G4ParameterisationPolyhedraRho::CheckParametersValidity(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4ParameterisationPolyhedraZ::CheckParametersValidity(), G4ParameterisationBoxX::ComputeDimensions(), G4ParameterisationBoxY::ComputeDimensions(), G4ParameterisationBoxZ::ComputeDimensions(), G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationConsPhi::ComputeDimensions(), G4ParameterisationConsZ::ComputeDimensions(), G4ParameterisationParaX::ComputeDimensions(), ComputeDimensions(), G4ParameterisationParaZ::ComputeDimensions(), G4ParameterisationPolyconeRho::ComputeDimensions(), G4ParameterisationPolyconePhi::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), G4ParameterisationTrdZ::ComputeDimensions(), G4ParameterisationTubsRho::ComputeDimensions(), G4ParameterisationTubsPhi::ComputeDimensions(), G4ParameterisationTubsZ::ComputeDimensions(), G4ParameterisationBoxX::ComputeTransformation(), G4ParameterisationBoxY::ComputeTransformation(), G4ParameterisationBoxZ::ComputeTransformation(), G4ParameterisationParaX::ComputeTransformation(), ComputeTransformation(), G4ParameterisationParaZ::ComputeTransformation(), G4ParameterisationTrdX::ComputeTransformation(), G4ParameterisationTrdY::ComputeTransformation(), G4ParameterisationTrdZ::ComputeTransformation(), G4ParameterisationTubsZ::ComputeTransformation(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), G4ParameterisationTubsZ::G4ParameterisationTubsZ(), G4VParameterisationBox::G4VParameterisationBox(), G4VParameterisationCons::G4VParameterisationCons(), G4VParameterisationPara::G4VParameterisationPara(), G4VParameterisationPolycone::G4VParameterisationPolycone(), G4VParameterisationPolyhedra::G4VParameterisationPolyhedra(), G4VParameterisationTrd::G4VParameterisationTrd(), G4VParameterisationTubs::G4VParameterisationTubs(), G4ParameterisationBoxX::GetMaxParameter(), G4ParameterisationBoxY::GetMaxParameter(), G4ParameterisationBoxZ::GetMaxParameter(), G4ParameterisationConsRho::GetMaxParameter(), G4ParameterisationConsPhi::GetMaxParameter(), G4ParameterisationConsZ::GetMaxParameter(), G4ParameterisationParaX::GetMaxParameter(), GetMaxParameter(), G4ParameterisationParaZ::GetMaxParameter(), G4ParameterisationPolyconeRho::GetMaxParameter(), G4ParameterisationPolyconePhi::GetMaxParameter(), G4ParameterisationPolyhedraRho::GetMaxParameter(), G4ParameterisationPolyhedraPhi::GetMaxParameter(), G4ParameterisationTrdX::GetMaxParameter(), G4ParameterisationTrdY::GetMaxParameter(), G4ParameterisationTrdZ::GetMaxParameter(), G4ParameterisationTubsRho::GetMaxParameter(), G4ParameterisationTubsPhi::GetMaxParameter(), G4ParameterisationTubsZ::GetMaxParameter(), and G4VDivisionParameterisation::~G4VDivisionParameterisation().

◆ fnDiv

G4int G4VDivisionParameterisation::fnDiv = 0
protectedinherited

Definition at line 95 of file G4VDivisionParameterisation.hh.

Referenced by G4VDivisionParameterisation::CheckNDivAndWidth(), G4ParameterisationPolyconeZ::CheckParametersValidity(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4ParameterisationPolyhedraZ::CheckParametersValidity(), G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationPolyconeRho::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyconeZ::G4ParameterisationPolyconeZ(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationPolyhedraZ::G4ParameterisationPolyhedraZ(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), G4ParameterisationTubsZ::G4ParameterisationTubsZ(), G4VDivisionParameterisation::G4VDivisionParameterisation(), and G4VDivisionParameterisation::OffsetZ().

◆ foffset

G4double G4VDivisionParameterisation::foffset = 0.0
protectedinherited

Definition at line 97 of file G4VDivisionParameterisation.hh.

Referenced by G4VDivisionParameterisation::CheckNDivAndWidth(), G4VDivisionParameterisation::CheckOffset(), G4ParameterisationPolyconeRho::CheckParametersValidity(), G4ParameterisationPolyconeZ::CheckParametersValidity(), G4ParameterisationPolyhedraRho::CheckParametersValidity(), G4ParameterisationPolyhedraPhi::CheckParametersValidity(), G4ParameterisationPolyhedraZ::CheckParametersValidity(), G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationConsPhi::ComputeDimensions(), G4ParameterisationPolyconeRho::ComputeDimensions(), G4ParameterisationPolyconeZ::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraZ::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTubsRho::ComputeDimensions(), G4ParameterisationBoxX::ComputeTransformation(), G4ParameterisationBoxY::ComputeTransformation(), G4ParameterisationConsRho::ComputeTransformation(), G4ParameterisationConsPhi::ComputeTransformation(), G4ParameterisationConsZ::ComputeTransformation(), G4ParameterisationParaX::ComputeTransformation(), ComputeTransformation(), G4ParameterisationPolyconeRho::ComputeTransformation(), G4ParameterisationPolyconePhi::ComputeTransformation(), G4ParameterisationPolyconeZ::ComputeTransformation(), G4ParameterisationPolyhedraRho::ComputeTransformation(), G4ParameterisationPolyhedraZ::ComputeTransformation(), G4ParameterisationTrdX::ComputeTransformation(), G4ParameterisationTrdY::ComputeTransformation(), G4ParameterisationTrdZ::ComputeTransformation(), G4ParameterisationTubsRho::ComputeTransformation(), G4ParameterisationTubsPhi::ComputeTransformation(), G4ParameterisationTubsZ::ComputeTransformation(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyconeZ::G4ParameterisationPolyconeZ(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationPolyhedraZ::G4ParameterisationPolyhedraZ(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), G4ParameterisationTubsZ::G4ParameterisationTubsZ(), G4VDivisionParameterisation::G4VDivisionParameterisation(), and G4VDivisionParameterisation::OffsetZ().

◆ fReflectedSolid

G4bool G4VDivisionParameterisation::fReflectedSolid = false
protectedinherited

◆ fRot

G4ThreadLocal G4RotationMatrix * G4VDivisionParameterisation::fRot = nullptr
staticprotectedinherited

◆ ftype

G4String G4VDivisionParameterisation::ftype
protectedinherited

Definition at line 93 of file G4VDivisionParameterisation.hh.

◆ fwidth

G4double G4VDivisionParameterisation::fwidth = 0.0
protectedinherited

Definition at line 96 of file G4VDivisionParameterisation.hh.

Referenced by G4VDivisionParameterisation::CheckNDivAndWidth(), G4ParameterisationPolyconeZ::CheckParametersValidity(), G4ParameterisationPolyhedraZ::CheckParametersValidity(), G4ParameterisationBoxX::ComputeDimensions(), G4ParameterisationBoxY::ComputeDimensions(), G4ParameterisationBoxZ::ComputeDimensions(), G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationConsPhi::ComputeDimensions(), G4ParameterisationConsZ::ComputeDimensions(), G4ParameterisationParaX::ComputeDimensions(), ComputeDimensions(), G4ParameterisationParaZ::ComputeDimensions(), G4ParameterisationPolyconePhi::ComputeDimensions(), G4ParameterisationPolyconeZ::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationPolyhedraZ::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), G4ParameterisationTrdZ::ComputeDimensions(), G4ParameterisationTubsRho::ComputeDimensions(), G4ParameterisationTubsPhi::ComputeDimensions(), G4ParameterisationTubsZ::ComputeDimensions(), G4ParameterisationBoxX::ComputeTransformation(), G4ParameterisationBoxY::ComputeTransformation(), G4ParameterisationBoxZ::ComputeTransformation(), G4ParameterisationConsRho::ComputeTransformation(), G4ParameterisationConsPhi::ComputeTransformation(), G4ParameterisationConsZ::ComputeTransformation(), G4ParameterisationParaX::ComputeTransformation(), ComputeTransformation(), G4ParameterisationParaZ::ComputeTransformation(), G4ParameterisationPolyconeRho::ComputeTransformation(), G4ParameterisationPolyconePhi::ComputeTransformation(), G4ParameterisationPolyconeZ::ComputeTransformation(), G4ParameterisationPolyhedraRho::ComputeTransformation(), G4ParameterisationPolyhedraPhi::ComputeTransformation(), G4ParameterisationPolyhedraZ::ComputeTransformation(), G4ParameterisationTrdX::ComputeTransformation(), G4ParameterisationTrdY::ComputeTransformation(), G4ParameterisationTrdZ::ComputeTransformation(), G4ParameterisationTubsRho::ComputeTransformation(), G4ParameterisationTubsPhi::ComputeTransformation(), G4ParameterisationTubsZ::ComputeTransformation(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyconeZ::G4ParameterisationPolyconeZ(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationPolyhedraZ::G4ParameterisationPolyhedraZ(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), G4ParameterisationTubsZ::G4ParameterisationTubsZ(), G4VDivisionParameterisation::G4VDivisionParameterisation(), and G4VDivisionParameterisation::OffsetZ().

◆ kCarTolerance

G4double G4VDivisionParameterisation::kCarTolerance
protectedinherited

◆ theVoluFirstCopyNo

G4int G4VDivisionParameterisation::theVoluFirstCopyNo = 1
protectedinherited

Definition at line 106 of file G4VDivisionParameterisation.hh.

◆ verbose

const G4int G4VDivisionParameterisation::verbose = 5
staticprotectedinherited

Definition at line 105 of file G4VDivisionParameterisation.hh.

Referenced by G4ParameterisationBoxX::ComputeDimensions(), G4ParameterisationBoxY::ComputeDimensions(), G4ParameterisationBoxZ::ComputeDimensions(), G4ParameterisationConsRho::ComputeDimensions(), G4ParameterisationConsPhi::ComputeDimensions(), G4ParameterisationConsZ::ComputeDimensions(), G4ParameterisationParaX::ComputeDimensions(), ComputeDimensions(), G4ParameterisationParaZ::ComputeDimensions(), G4ParameterisationPolyconeRho::ComputeDimensions(), G4ParameterisationPolyconePhi::ComputeDimensions(), G4ParameterisationPolyconeZ::ComputeDimensions(), G4ParameterisationPolyhedraRho::ComputeDimensions(), G4ParameterisationPolyhedraPhi::ComputeDimensions(), G4ParameterisationPolyhedraZ::ComputeDimensions(), G4ParameterisationTrdX::ComputeDimensions(), G4ParameterisationTrdY::ComputeDimensions(), G4ParameterisationTrdZ::ComputeDimensions(), G4ParameterisationTubsRho::ComputeDimensions(), G4ParameterisationTubsPhi::ComputeDimensions(), G4ParameterisationTubsZ::ComputeDimensions(), G4ParameterisationBoxX::ComputeTransformation(), G4ParameterisationBoxY::ComputeTransformation(), G4ParameterisationBoxZ::ComputeTransformation(), G4ParameterisationConsRho::ComputeTransformation(), G4ParameterisationConsPhi::ComputeTransformation(), G4ParameterisationConsZ::ComputeTransformation(), G4ParameterisationParaX::ComputeTransformation(), ComputeTransformation(), G4ParameterisationParaZ::ComputeTransformation(), G4ParameterisationPolyconeRho::ComputeTransformation(), G4ParameterisationPolyconePhi::ComputeTransformation(), G4ParameterisationPolyconeZ::ComputeTransformation(), G4ParameterisationPolyhedraRho::ComputeTransformation(), G4ParameterisationPolyhedraPhi::ComputeTransformation(), G4ParameterisationPolyhedraZ::ComputeTransformation(), G4ParameterisationTrdX::ComputeTransformation(), G4ParameterisationTrdY::ComputeTransformation(), G4ParameterisationTrdZ::ComputeTransformation(), G4ParameterisationTubsRho::ComputeTransformation(), G4ParameterisationTubsPhi::ComputeTransformation(), G4ParameterisationTubsZ::ComputeTransformation(), G4ParameterisationBoxX::G4ParameterisationBoxX(), G4ParameterisationBoxY::G4ParameterisationBoxY(), G4ParameterisationBoxZ::G4ParameterisationBoxZ(), G4ParameterisationConsPhi::G4ParameterisationConsPhi(), G4ParameterisationConsRho::G4ParameterisationConsRho(), G4ParameterisationConsZ::G4ParameterisationConsZ(), G4ParameterisationParaX::G4ParameterisationParaX(), G4ParameterisationParaY(), G4ParameterisationParaZ::G4ParameterisationParaZ(), G4ParameterisationPolyconePhi::G4ParameterisationPolyconePhi(), G4ParameterisationPolyconeRho::G4ParameterisationPolyconeRho(), G4ParameterisationPolyconeZ::G4ParameterisationPolyconeZ(), G4ParameterisationPolyhedraPhi::G4ParameterisationPolyhedraPhi(), G4ParameterisationPolyhedraRho::G4ParameterisationPolyhedraRho(), G4ParameterisationPolyhedraZ::G4ParameterisationPolyhedraZ(), G4ParameterisationTrdX::G4ParameterisationTrdX(), G4ParameterisationTrdY::G4ParameterisationTrdY(), G4ParameterisationTrdZ::G4ParameterisationTrdZ(), G4ParameterisationTubsPhi::G4ParameterisationTubsPhi(), G4ParameterisationTubsRho::G4ParameterisationTubsRho(), G4ParameterisationTubsZ::G4ParameterisationTubsZ(), and G4VDivisionParameterisation::G4VDivisionParameterisation().


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