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

#include <G4tgbPlaceParameterisation.hh>

+ Inheritance diagram for G4tgbPlaceParameterisation:

Public Member Functions

 G4tgbPlaceParameterisation (G4tgrPlaceParameterisation *tgrParam)
 
virtual ~G4tgbPlaceParameterisation ()
 
virtual void ComputeTransformation (const G4int, G4VPhysicalVolume *) const
 
void CheckNExtraData (G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName)
 
G4int GetNCopies () const
 
EAxis GetAxis () const
 
- Public Member Functions inherited from G4VPVParameterisation
 G4VPVParameterisation ()
 
virtual ~G4VPVParameterisation ()
 
virtual void ComputeTransformation (const G4int, G4VPhysicalVolume *) const =0
 
virtual G4VSolidComputeSolid (const G4int, G4VPhysicalVolume *)
 
virtual G4MaterialComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr)
 
virtual G4bool IsNested () const
 
virtual G4VVolumeMaterialScannerGetMaterialScanner ()
 
virtual void ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 

Protected Attributes

G4int theNCopies = 0
 
EAxis theAxis = kUndefined
 
G4ThreeVector theTranslation
 
G4RotationMatrixtheRotationMatrix = nullptr
 

Detailed Description

Definition at line 47 of file G4tgbPlaceParameterisation.hh.

Constructor & Destructor Documentation

◆ G4tgbPlaceParameterisation()

G4tgbPlaceParameterisation::G4tgbPlaceParameterisation ( G4tgrPlaceParameterisation tgrParam)

Definition at line 40 of file G4tgbPlaceParameterisation.cc.

42{
45 tgrParam->GetRotMatName());
46}
static G4tgbRotationMatrixMgr * GetInstance()
G4RotationMatrix * FindOrBuildG4RotMatrix(const G4String &name)
const G4String & GetRotMatName() const

◆ ~G4tgbPlaceParameterisation()

G4tgbPlaceParameterisation::~G4tgbPlaceParameterisation ( )
virtual

Definition at line 49 of file G4tgbPlaceParameterisation.cc.

50{
51 delete theRotationMatrix;
52}

Member Function Documentation

◆ CheckNExtraData()

void G4tgbPlaceParameterisation::CheckNExtraData ( G4tgrPlaceParameterisation tgrParam,
G4int  nWcheck,
WLSIZEtype  st,
const G4String methodName 
)

Definition at line 61 of file G4tgbPlaceParameterisation.cc.

64{
65 std::vector<G4double> extraData = tgrParam->GetExtraData();
66 G4int ndata = extraData.size();
67
68 G4String outStr = methodName + " " + tgrParam->GetType() + " ";
69 G4bool isOK = G4tgrUtils::CheckListSize(ndata, nWcheck, st, outStr);
70
71 if(!isOK)
72 {
73 G4String chartmp = G4UIcommand::ConvertToString(nWcheck);
74 outStr += chartmp + G4String(" words");
75 G4cerr << outStr;
76 G4cerr << " NUMBER OF WORDS " << ndata << G4endl;
77 G4Exception("G4tgbPlaceParameterisation::CheckNExtraData", "InvalidData",
78 FatalException, "Invalid data size.");
79 }
80}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:430
std::vector< G4double > GetExtraData() const
const G4String & GetType() const
Definition: G4tgrPlace.hh:55
static G4bool CheckListSize(unsigned int nWreal, unsigned int nWcheck, WLSIZEtype st, G4String &outstr)
Definition: G4tgrUtils.cc:512

Referenced by G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), and G4tgbPlaceParamSquare::G4tgbPlaceParamSquare().

◆ ComputeTransformation()

void G4tgbPlaceParameterisation::ComputeTransformation ( const  G4int,
G4VPhysicalVolume  
) const
virtual

Implements G4VPVParameterisation.

Reimplemented in G4tgbPlaceParamCircle, G4tgbPlaceParamLinear, and G4tgbPlaceParamSquare.

Definition at line 55 of file G4tgbPlaceParameterisation.cc.

57{
58}

◆ GetAxis()

EAxis G4tgbPlaceParameterisation::GetAxis ( ) const
inline

◆ GetNCopies()

G4int G4tgbPlaceParameterisation::GetNCopies ( ) const
inline

Member Data Documentation

◆ theAxis

◆ theNCopies

◆ theRotationMatrix

◆ theTranslation


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