Geant4 9.6.0
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)
 
virtual G4ThreeVector GetPlacement () const
 

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() [1/2]

G4tgrPlaceSimple::G4tgrPlaceSimple ( )

Definition at line 44 of file G4tgrPlaceSimple.cc.

45{
46}

◆ ~G4tgrPlaceSimple()

G4tgrPlaceSimple::~G4tgrPlaceSimple ( )

Definition at line 50 of file G4tgrPlaceSimple.cc.

51{
52}

◆ G4tgrPlaceSimple() [2/2]

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
65 wl7 = 0;
66 }
67
68 //---------- set the parent name
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}
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
static G4int GetVerboseLevel()
G4ThreeVector thePlace
G4String theParentName
Definition: G4tgrPlace.hh:72
unsigned int theCopyNo
Definition: G4tgrPlace.hh:76
G4String theType
Definition: G4tgrPlace.hh:79
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:178
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:427
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:203

Member Function Documentation

◆ GetPlacement()

G4ThreeVector G4tgrPlaceSimple::GetPlacement ( ) const
inlinevirtual

Reimplemented from G4tgrPlace.

Definition at line 63 of file G4tgrPlaceSimple.hh.

63{ return thePlace; }

◆ GetRotMatName()

const G4String & G4tgrPlaceSimple::GetRotMatName ( ) const
inline

Definition at line 62 of file G4tgrPlaceSimple.hh.

62{ return theRotMatName; }

Referenced by G4tgbVolume::ConstructG4PhysVol().

Friends And Related Function Documentation

◆ operator<<

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}

Member Data Documentation

◆ thePlace

G4ThreeVector G4tgrPlaceSimple::thePlace
protected

Definition at line 69 of file G4tgrPlaceSimple.hh.

Referenced by G4tgrPlaceSimple(), and GetPlacement().

◆ theRotMatName

G4String G4tgrPlaceSimple::theRotMatName
protected

Definition at line 72 of file G4tgrPlaceSimple.hh.

Referenced by G4tgrPlaceSimple(), and GetRotMatName().


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