Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4tgrPlaceSimple Class Reference

#include <G4tgrPlaceSimple.hh>

+ Inheritance 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 = nullptr
 
G4String theParentName = ""
 
unsigned int theCopyNo = 0
 
G4String theType = ""
 

Friends

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

Detailed Description

Definition at line 44 of file G4tgrPlaceSimple.hh.

Constructor & Destructor Documentation

◆ G4tgrPlaceSimple() [1/2]

G4tgrPlaceSimple::G4tgrPlaceSimple ( )

Definition at line 39 of file G4tgrPlaceSimple.cc.

40{
41}

◆ ~G4tgrPlaceSimple()

G4tgrPlaceSimple::~G4tgrPlaceSimple ( )

Definition at line 44 of file G4tgrPlaceSimple.cc.

45{
46}

◆ G4tgrPlaceSimple() [2/2]

G4tgrPlaceSimple::G4tgrPlaceSimple ( const std::vector< G4String > & wl)

Definition at line 49 of file G4tgrPlaceSimple.cc.

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

Member Function Documentation

◆ GetPlacement()

G4ThreeVector G4tgrPlaceSimple::GetPlacement ( ) const
inlinevirtual

Reimplemented from G4tgrPlace.

Definition at line 56 of file G4tgrPlaceSimple.hh.

56{ return thePlace; }

◆ GetRotMatName()

const G4String & G4tgrPlaceSimple::GetRotMatName ( ) const
inline

Definition at line 55 of file G4tgrPlaceSimple.hh.

55{ return theRotMatName; }

Referenced by G4tgbVolume::ConstructG4PhysVol().

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 81 of file G4tgrPlaceSimple.cc.

82{
83 os << "G4tgrPlaceSimple= in " << obj.theParentName
84 << " Position= " << obj.thePlace << " RotMatName= " << obj.theRotMatName
85 << G4endl;
86
87 return os;
88}

Member Data Documentation

◆ thePlace

G4ThreeVector G4tgrPlaceSimple::thePlace
protected

Definition at line 63 of file G4tgrPlaceSimple.hh.

Referenced by G4tgrPlaceSimple(), and GetPlacement().

◆ theRotMatName

G4String G4tgrPlaceSimple::theRotMatName
protected

Definition at line 66 of file G4tgrPlaceSimple.hh.

Referenced by G4tgrPlaceSimple(), and GetRotMatName().


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