Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4tgrPlaceSimple Class Reference

#include <G4tgrPlaceSimple.hh>

Inheritance diagram for G4tgrPlaceSimple:
Collaboration diagram for G4tgrPlaceSimple:

Public Member Functions

 G4tgrPlaceSimple ()
 
 ~G4tgrPlaceSimple ()
 
 G4tgrPlaceSimple (const std::vector< G4String > &wl)
 
const G4StringGetRotMatName () const
 
G4ThreeVector GetPlacement () const
 
- Public Member Functions inherited from G4tgrPlace
 G4tgrPlace ()
 
virtual ~G4tgrPlace ()
 
const G4StringGetParentName () const
 
G4tgrVolumeGetVolume () const
 
unsigned int GetCopyNo () const
 
const G4StringGetType () const
 
void SetVolume (G4tgrVolume *vol)
 
void SetType (const G4String &typ)
 

Protected Attributes

G4ThreeVector thePlace
 
G4String theRotMatName
 
- Protected Attributes inherited from G4tgrPlace
G4tgrVolumetheVolume
 
G4String theParentName
 
unsigned int theCopyNo
 
G4String theType
 

Friends

std::ostream & operator<< (std::ostream &os, const G4tgrPlaceSimple &obj)
 

Detailed Description

Definition at line 51 of file G4tgrPlaceSimple.hh.

Constructor & Destructor Documentation

G4tgrPlaceSimple::G4tgrPlaceSimple ( )

Definition at line 44 of file G4tgrPlaceSimple.cc.

45 {
46 }
G4tgrPlaceSimple::~G4tgrPlaceSimple ( )

Definition at line 50 of file G4tgrPlaceSimple.cc.

51 {
52 }
G4tgrPlaceSimple::G4tgrPlaceSimple ( const std::vector< G4String > &  wl)

Definition at line 56 of file G4tgrPlaceSimple.cc.

57 {
58  theType = "PlaceSimple";
59 
60  G4int wl7 = -1;
61  if( wl.size() == 8 ) // for assembly volume placement,
62  { // there is no copy number
63  //---------- set the copy number
64  theCopyNo = G4tgrUtils::GetInt( wl[2] );
65  wl7 = 0;
66  }
67 
68  //---------- set the parent name
69  theParentName = G4tgrUtils::GetString( wl[3+wl7] );
70 
71  //---------- set the position with respect to parent
73  G4tgrUtils::GetDouble(wl[6+wl7])*mm,
74  G4tgrUtils::GetDouble(wl[7+wl7])*mm );
75 
76  //---------- set the rotation matrix name
78 
79 #ifdef G4VERBOSE
81  {
82  G4cout << " Created " << *this << G4endl;
83  }
84 #endif
85 }
static constexpr double mm
Definition: G4SIunits.hh:115
CLHEP::Hep3Vector G4ThreeVector
G4String theType
Definition: G4tgrPlace.hh:79
G4ThreeVector thePlace
unsigned int theCopyNo
Definition: G4tgrPlace.hh:76
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:430
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:205
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:180
G4String theParentName
Definition: G4tgrPlace.hh:72
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Member Function Documentation

G4ThreeVector G4tgrPlaceSimple::GetPlacement ( ) const
inlinevirtual

Reimplemented from G4tgrPlace.

Definition at line 63 of file G4tgrPlaceSimple.hh.

63 { return thePlace; }
G4ThreeVector thePlace
const G4String& G4tgrPlaceSimple::GetRotMatName ( ) const
inline

Definition at line 62 of file G4tgrPlaceSimple.hh.

62 { return theRotMatName; }

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4tgrPlaceSimple obj 
)
friend

Definition at line 89 of file G4tgrPlaceSimple.cc.

90 {
91  os << "G4tgrPlaceSimple= in " << obj.theParentName
92  << " Position= " << obj.thePlace
93  << " RotMatName= " << obj.theRotMatName << G4endl;
94 
95  return os;
96 }
G4ThreeVector thePlace
G4String theParentName
Definition: G4tgrPlace.hh:72
#define G4endl
Definition: G4ios.hh:61

Member Data Documentation

G4ThreeVector G4tgrPlaceSimple::thePlace
protected

Definition at line 69 of file G4tgrPlaceSimple.hh.

G4String G4tgrPlaceSimple::theRotMatName
protected

Definition at line 72 of file G4tgrPlaceSimple.hh.


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