#include <G4tgrPlaceParameterisation.hh>
Inheritance diagram for G4tgrPlaceParameterisation:
Public Member Functions | |
G4tgrPlaceParameterisation () | |
~G4tgrPlaceParameterisation () | |
G4tgrPlaceParameterisation (const std::vector< G4String > &p) | |
const G4String & | GetParamType () const |
std::vector< G4double > | GetExtraData () const |
const G4String & | GetRotMatName () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const G4tgrPlaceParameterisation &obj) |
Definition at line 57 of file G4tgrPlaceParameterisation.hh.
G4tgrPlaceParameterisation::G4tgrPlaceParameterisation | ( | ) |
G4tgrPlaceParameterisation::~G4tgrPlaceParameterisation | ( | ) |
G4tgrPlaceParameterisation::G4tgrPlaceParameterisation | ( | const std::vector< G4String > & | p | ) |
Definition at line 55 of file G4tgrPlaceParameterisation.cc.
References G4tgrUtils::CheckWLsize(), G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), G4tgrPlace::theCopyNo, G4tgrPlace::theParentName, G4tgrPlace::theType, and WLSIZE_GE.
00056 { 00057 theType = "PlaceParam"; 00058 00059 //---------- Check for exact number of words read 00060 G4tgrUtils::CheckWLsize( wl, 7, WLSIZE_GE, 00061 "G4tgrPlaceParameterisation::ConstructVolume" ); 00062 00063 //---------- the copy No 00064 theCopyNo = G4tgrUtils::GetInt( wl[2] )-1; 00065 00066 //---------- set the parent name 00067 theParentName = G4tgrUtils::GetString( wl[3] ); 00068 00069 //---------- set the type 00070 theParamType = G4tgrUtils::GetString( wl[4] ); 00071 00072 //---------- set the rotation matrix name 00073 theRotMatName = G4tgrUtils::GetString(wl[5]); 00074 00075 //---------- set the extra data 00076 for( size_t ii = 6; ii < wl.size(); ii++) 00077 { 00078 theExtraData.push_back( G4tgrUtils::GetDouble(wl[ii]) ); 00079 } 00080 00081 #ifdef G4VERBOSE 00082 if( G4tgrMessenger::GetVerboseLevel() >= 1 ) 00083 { 00084 G4cout << " Created " << *this << G4endl; 00085 } 00086 #endif 00087 }
std::vector<G4double> G4tgrPlaceParameterisation::GetExtraData | ( | ) | const [inline] |
Definition at line 71 of file G4tgrPlaceParameterisation.hh.
Referenced by G4tgbPlaceParameterisation::CheckNExtraData(), G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), and G4tgbPlaceParamSquare::G4tgbPlaceParamSquare().
const G4String& G4tgrPlaceParameterisation::GetParamType | ( | ) | const [inline] |
Definition at line 69 of file G4tgrPlaceParameterisation.hh.
Referenced by G4tgbPlaceParamCircle::G4tgbPlaceParamCircle(), G4tgbPlaceParamLinear::G4tgbPlaceParamLinear(), and G4tgbPlaceParamSquare::G4tgbPlaceParamSquare().
const G4String& G4tgrPlaceParameterisation::GetRotMatName | ( | ) | const [inline] |
Definition at line 72 of file G4tgrPlaceParameterisation.hh.
Referenced by G4tgbPlaceParameterisation::G4tgbPlaceParameterisation().
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4tgrPlaceParameterisation & | obj | |||
) | [friend] |
Definition at line 91 of file G4tgrPlaceParameterisation.cc.
00093 { 00094 os << "G4tgrPlaceParameterisation= in " << obj.theParentName 00095 << " ParamTyep = " << obj.theParamType 00096 << " RotMatName= " << obj.theRotMatName << " EXTRA DATA= "; 00097 for( size_t ii = 0; ii << obj.theExtraData.size(); ii++ ) 00098 { 00099 os << obj.theExtraData[ii] << " "; 00100 } 00101 os << G4endl; 00102 00103 return os; 00104 }