#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 |
Protected Attributes | |
G4int | theNCopies |
EAxis | theAxis |
G4ThreeVector | theTranslation |
G4RotationMatrix * | theRotationMatrix |
Definition at line 53 of file G4tgbPlaceParameterisation.hh.
G4tgbPlaceParameterisation::G4tgbPlaceParameterisation | ( | G4tgrPlaceParameterisation * | tgrParam | ) |
Definition at line 45 of file G4tgbPlaceParameterisation.cc.
References G4tgbRotationMatrixMgr::FindOrBuildG4RotMatrix(), G4tgbRotationMatrixMgr::GetInstance(), G4tgrPlaceParameterisation::GetRotMatName(), and theRotationMatrix.
00046 : theNCopies(0), theAxis(kUndefined) 00047 { 00048 theRotationMatrix = G4tgbRotationMatrixMgr::GetInstance() 00049 ->FindOrBuildG4RotMatrix( tgrParam->GetRotMatName() ); 00050 }
G4tgbPlaceParameterisation::~G4tgbPlaceParameterisation | ( | ) | [virtual] |
Definition at line 52 of file G4tgbPlaceParameterisation.cc.
References theRotationMatrix.
00053 { 00054 delete theRotationMatrix; 00055 }
void G4tgbPlaceParameterisation::CheckNExtraData | ( | G4tgrPlaceParameterisation * | tgrParam, | |
G4int | nWcheck, | |||
WLSIZEtype | st, | |||
const G4String & | methodName | |||
) |
Definition at line 63 of file G4tgbPlaceParameterisation.cc.
References G4tgrUtils::CheckListSize(), G4UIcommand::ConvertToString(), FatalException, G4cerr, G4endl, G4Exception(), G4tgrPlaceParameterisation::GetExtraData(), and G4tgrPlace::GetType().
Referenced by G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), and G4tgbPlaceParamSquare::G4tgbPlaceParamSquare().
00065 { 00066 std::vector<G4double> extraData = tgrParam->GetExtraData(); 00067 G4int ndata = extraData.size(); 00068 00069 G4String outStr = methodName + " " + tgrParam->GetType() + " "; 00070 G4bool isOK = G4tgrUtils::CheckListSize( ndata, nWcheck, st, outStr ); 00071 00072 if( !isOK ) 00073 { 00074 G4String chartmp = G4UIcommand::ConvertToString( nWcheck ); 00075 outStr += chartmp + G4String(" words"); 00076 G4cerr << outStr; 00077 G4cerr << " NUMBER OF WORDS " << ndata << G4endl; 00078 G4Exception("G4tgbPlaceParameterisation::CheckNExtraData", 00079 "InvalidData", FatalException, "Invalid data size."); 00080 } 00081 }
void G4tgbPlaceParameterisation::ComputeTransformation | ( | const | G4int, | |
G4VPhysicalVolume * | ||||
) | const [virtual] |
Implements G4VPVParameterisation.
Reimplemented in G4tgbPlaceParamCircle, G4tgbPlaceParamLinear, and G4tgbPlaceParamSquare.
Definition at line 58 of file G4tgbPlaceParameterisation.cc.
EAxis G4tgbPlaceParameterisation::GetAxis | ( | ) | const [inline] |
Definition at line 67 of file G4tgbPlaceParameterisation.hh.
References theAxis.
Referenced by G4tgbVolume::ConstructG4PhysVol().
00067 { return theAxis; }
G4int G4tgbPlaceParameterisation::GetNCopies | ( | ) | const [inline] |
Definition at line 66 of file G4tgbPlaceParameterisation.hh.
References theNCopies.
Referenced by G4tgbVolume::ConstructG4PhysVol().
00066 { return theNCopies; }
EAxis G4tgbPlaceParameterisation::theAxis [protected] |
Definition at line 72 of file G4tgbPlaceParameterisation.hh.
Referenced by G4tgbPlaceParamSquare::ComputeTransformation(), G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), G4tgbPlaceParamSquare::G4tgbPlaceParamSquare(), and GetAxis().
G4int G4tgbPlaceParameterisation::theNCopies [protected] |
Definition at line 71 of file G4tgbPlaceParameterisation.hh.
Referenced by G4tgbPlaceParamSquare::ComputeTransformation(), G4tgbPlaceParamCircle::ComputeTransformation(), G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), G4tgbPlaceParamSquare::G4tgbPlaceParamSquare(), and GetNCopies().
Definition at line 74 of file G4tgbPlaceParameterisation.hh.
Referenced by G4tgbPlaceParamSquare::ComputeTransformation(), G4tgbPlaceParamLinear::ComputeTransformation(), G4tgbPlaceParamCircle::ComputeTransformation(), G4tgbPlaceParameterisation(), and ~G4tgbPlaceParameterisation().
Definition at line 73 of file G4tgbPlaceParameterisation.hh.
Referenced by G4tgbPlaceParamSquare::ComputeTransformation(), G4tgbPlaceParamLinear::ComputeTransformation(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), and G4tgbPlaceParamSquare::G4tgbPlaceParamSquare().