Geant4-11
Public Member Functions | Protected Attributes | Friends
G4tgrPlaceSimple Class Reference

#include <G4tgrPlaceSimple.hh>

Inheritance diagram for G4tgrPlaceSimple:
G4tgrPlace

Public Member Functions

 G4tgrPlaceSimple ()
 
 G4tgrPlaceSimple (const std::vector< G4String > &wl)
 
unsigned int GetCopyNo () const
 
const G4StringGetParentName () const
 
G4ThreeVector GetPlacement () const
 
const G4StringGetRotMatName () const
 
const G4StringGetType () const
 
G4tgrVolumeGetVolume () const
 
void SetType (const G4String &typ)
 
void SetVolume (G4tgrVolume *vol)
 
 ~G4tgrPlaceSimple ()
 

Protected Attributes

unsigned int theCopyNo = 0
 
G4String theParentName = ""
 
G4ThreeVector thePlace
 
G4String theRotMatName
 
G4String theType = ""
 
G4tgrVolumetheVolume = nullptr
 

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}
static constexpr double mm
Definition: G4SIunits.hh:95
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
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)
Definition: G4tgrUtils.cc:173
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:447
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:198

References G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), mm, G4tgrPlace::theCopyNo, G4tgrPlace::theParentName, thePlace, theRotMatName, and G4tgrPlace::theType.

Member Function Documentation

◆ GetCopyNo()

unsigned int G4tgrPlace::GetCopyNo ( ) const
inlineinherited

◆ GetParentName()

const G4String & G4tgrPlace::GetParentName ( ) const
inlineinherited

◆ GetPlacement()

G4ThreeVector G4tgrPlaceSimple::GetPlacement ( ) const
inlinevirtual

Reimplemented from G4tgrPlace.

Definition at line 56 of file G4tgrPlaceSimple.hh.

56{ return thePlace; }

References thePlace.

◆ GetRotMatName()

const G4String & G4tgrPlaceSimple::GetRotMatName ( ) const
inline

Definition at line 55 of file G4tgrPlaceSimple.hh.

55{ return theRotMatName; }

References theRotMatName.

Referenced by G4tgbVolume::ConstructG4PhysVol().

◆ GetType()

const G4String & G4tgrPlace::GetType ( ) const
inlineinherited

◆ GetVolume()

G4tgrVolume * G4tgrPlace::GetVolume ( ) const
inlineinherited

Definition at line 53 of file G4tgrPlace.hh.

53{ return theVolume; }
G4tgrVolume * theVolume
Definition: G4tgrPlace.hh:63

References G4tgrPlace::theVolume.

Referenced by G4tgbVolume::ConstructG4Volumes(), and G4tgrVolumeMgr::DumpVolumeLeaf().

◆ SetType()

void G4tgrPlace::SetType ( const G4String typ)
inlineinherited

Definition at line 57 of file G4tgrPlace.hh.

57{ theType = typ; }
G4ProcessVectorTypeIndex typ

References G4tgrPlace::theType, and pyG4ProcessManager::typ.

Referenced by G4tgrVolume::AddPlaceReplica(), and G4tgrVolumeDivision::G4tgrVolumeDivision().

◆ SetVolume()

void G4tgrPlace::SetVolume ( G4tgrVolume vol)
inlineinherited

Friends And Related Function 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}

Field Documentation

◆ theCopyNo

unsigned int G4tgrPlace::theCopyNo = 0
protectedinherited

◆ theParentName

G4String G4tgrPlace::theParentName = ""
protectedinherited

◆ 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().

◆ theType

G4String G4tgrPlace::theType = ""
protectedinherited

◆ theVolume

G4tgrVolume* G4tgrPlace::theVolume = nullptr
protectedinherited

Definition at line 63 of file G4tgrPlace.hh.

Referenced by G4tgrPlace::GetVolume(), and G4tgrPlace::SetVolume().


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