Geant4 9.6.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=0)
 
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 (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
 
EAxis theAxis
 
G4ThreeVector theTranslation
 
G4RotationMatrixtheRotationMatrix
 

Detailed Description

Definition at line 53 of file G4tgbPlaceParameterisation.hh.

Constructor & Destructor Documentation

◆ G4tgbPlaceParameterisation()

G4tgbPlaceParameterisation::G4tgbPlaceParameterisation ( G4tgrPlaceParameterisation tgrParam)

Definition at line 44 of file G4tgbPlaceParameterisation.cc.

◆ ~G4tgbPlaceParameterisation()

G4tgbPlaceParameterisation::~G4tgbPlaceParameterisation ( )
virtual

Definition at line 52 of file G4tgbPlaceParameterisation.cc.

53{
54 delete theRotationMatrix;
55}

Member Function Documentation

◆ CheckNExtraData()

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

Definition at line 62 of file G4tgbPlaceParameterisation.cc.

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

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 57 of file G4tgbPlaceParameterisation.cc.

59{
60}

◆ GetAxis()

EAxis G4tgbPlaceParameterisation::GetAxis ( ) const
inline

Definition at line 67 of file G4tgbPlaceParameterisation.hh.

67{ return theAxis; }

Referenced by G4tgbVolume::ConstructG4PhysVol().

◆ GetNCopies()

G4int G4tgbPlaceParameterisation::GetNCopies ( ) const
inline

Definition at line 66 of file G4tgbPlaceParameterisation.hh.

66{ return theNCopies; }

Referenced by G4tgbVolume::ConstructG4PhysVol().

Member Data Documentation

◆ theAxis

◆ theNCopies

◆ theRotationMatrix

◆ theTranslation


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