#include <G4tgrPlaceSimple.hh>
Inheritance diagram for G4tgrPlaceSimple:
Public Member Functions | |
G4tgrPlaceSimple () | |
~G4tgrPlaceSimple () | |
G4tgrPlaceSimple (const std::vector< G4String > &wl) | |
const G4String & | GetRotMatName () const |
G4ThreeVector | GetPlacement () const |
Protected Attributes | |
G4ThreeVector | thePlace |
G4String | theRotMatName |
Friends | |
std::ostream & | operator<< (std::ostream &os, const G4tgrPlaceSimple &obj) |
Definition at line 51 of file G4tgrPlaceSimple.hh.
G4tgrPlaceSimple::G4tgrPlaceSimple | ( | ) |
G4tgrPlaceSimple::~G4tgrPlaceSimple | ( | ) |
G4tgrPlaceSimple::G4tgrPlaceSimple | ( | const std::vector< G4String > & | wl | ) |
Definition at line 56 of file G4tgrPlaceSimple.cc.
References G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), G4tgrPlace::theCopyNo, G4tgrPlace::theParentName, thePlace, theRotMatName, and G4tgrPlace::theType.
00057 { 00058 theType = "PlaceSimple"; 00059 00060 G4int wl7 = -1; 00061 if( wl.size() == 8 ) // for assembly volume placement, 00062 { // there is no copy number 00063 //---------- set the copy number 00064 theCopyNo = G4tgrUtils::GetInt( wl[2] ); 00065 wl7 = 0; 00066 } 00067 00068 //---------- set the parent name 00069 theParentName = G4tgrUtils::GetString( wl[3+wl7] ); 00070 00071 //---------- set the position with respect to parent 00072 thePlace = G4ThreeVector( G4tgrUtils::GetDouble(wl[5+wl7])*mm, 00073 G4tgrUtils::GetDouble(wl[6+wl7])*mm, 00074 G4tgrUtils::GetDouble(wl[7+wl7])*mm ); 00075 00076 //---------- set the rotation matrix name 00077 theRotMatName = G4tgrUtils::GetString(wl[4+wl7]); 00078 00079 #ifdef G4VERBOSE 00080 if( G4tgrMessenger::GetVerboseLevel() >= 1 ) 00081 { 00082 G4cout << " Created " << *this << G4endl; 00083 } 00084 #endif 00085 }
G4ThreeVector G4tgrPlaceSimple::GetPlacement | ( | ) | const [inline, virtual] |
Reimplemented from G4tgrPlace.
Definition at line 63 of file G4tgrPlaceSimple.hh.
References thePlace.
00063 { return thePlace; }
const G4String& G4tgrPlaceSimple::GetRotMatName | ( | ) | const [inline] |
Definition at line 62 of file G4tgrPlaceSimple.hh.
References theRotMatName.
Referenced by G4tgbVolume::ConstructG4PhysVol().
00062 { return theRotMatName; }
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4tgrPlaceSimple & | obj | |||
) | [friend] |
Definition at line 89 of file G4tgrPlaceSimple.cc.
00090 { 00091 os << "G4tgrPlaceSimple= in " << obj.theParentName 00092 << " Position= " << obj.thePlace 00093 << " RotMatName= " << obj.theRotMatName << G4endl; 00094 00095 return os; 00096 }
G4ThreeVector G4tgrPlaceSimple::thePlace [protected] |
Definition at line 69 of file G4tgrPlaceSimple.hh.
Referenced by G4tgrPlaceSimple(), GetPlacement(), and operator<<().
G4String G4tgrPlaceSimple::theRotMatName [protected] |
Definition at line 72 of file G4tgrPlaceSimple.hh.
Referenced by G4tgrPlaceSimple(), GetRotMatName(), and operator<<().