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

#include <G4tgrPlaceParameterisation.hh>

+ Inheritance diagram for G4tgrPlaceParameterisation:

Public Member Functions

 G4tgrPlaceParameterisation ()
 
 ~G4tgrPlaceParameterisation ()
 
 G4tgrPlaceParameterisation (const std::vector< G4String > &p)
 
const G4StringGetParamType () const
 
std::vector< G4doubleGetExtraData () const
 
const G4StringGetRotMatName () 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
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from G4tgrPlace
G4tgrVolumetheVolume = nullptr
 
G4String theParentName = ""
 
unsigned int theCopyNo = 0
 
G4String theType = ""
 

Detailed Description

Definition at line 50 of file G4tgrPlaceParameterisation.hh.

Constructor & Destructor Documentation

◆ G4tgrPlaceParameterisation() [1/2]

G4tgrPlaceParameterisation::G4tgrPlaceParameterisation ( )

Definition at line 37 of file G4tgrPlaceParameterisation.cc.

38{
39}

◆ ~G4tgrPlaceParameterisation()

G4tgrPlaceParameterisation::~G4tgrPlaceParameterisation ( )

Definition at line 42 of file G4tgrPlaceParameterisation.cc.

43{
44}

◆ G4tgrPlaceParameterisation() [2/2]

G4tgrPlaceParameterisation::G4tgrPlaceParameterisation ( const std::vector< G4String > &  p)

Definition at line 47 of file G4tgrPlaceParameterisation.cc.

49{
50 theType = "PlaceParam";
51
52 //---------- Check for exact number of words read
54 "G4tgrPlaceParameterisation::ConstructVolume");
55
56 //---------- the copy No
57 theCopyNo = G4tgrUtils::GetInt(wl[2]) - 1;
58
59 //---------- set the parent name
61
62 //---------- set the type
63 theParamType = G4tgrUtils::GetString(wl[4]);
64
65 //---------- set the rotation matrix name
66 theRotMatName = G4tgrUtils::GetString(wl[5]);
67
68 //---------- set the extra data
69 for(size_t ii = 6; ii < wl.size(); ii++)
70 {
71 theExtraData.push_back(G4tgrUtils::GetDouble(wl[ii]));
72 }
73
74#ifdef G4VERBOSE
76 {
77 G4cout << " Created " << *this << G4endl;
78 }
79#endif
80}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
@ WLSIZE_GE
Definition: G4tgrUtils.hh:51
static G4int GetVerboseLevel()
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 void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:490
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:447
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:198

Member Function Documentation

◆ GetExtraData()

std::vector< G4double > G4tgrPlaceParameterisation::GetExtraData ( ) const
inline

◆ GetParamType()

const G4String & G4tgrPlaceParameterisation::GetParamType ( ) const
inline

◆ GetRotMatName()

const G4String & G4tgrPlaceParameterisation::GetRotMatName ( ) const
inline

Definition at line 65 of file G4tgrPlaceParameterisation.hh.

65{ return theRotMatName; }

Referenced by G4tgbPlaceParameterisation::G4tgbPlaceParameterisation().

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 83 of file G4tgrPlaceParameterisation.cc.

85{
86 os << "G4tgrPlaceParameterisation= in " << obj.theParentName
87 << " ParamTyep = " << obj.theParamType
88 << " RotMatName= " << obj.theRotMatName << " EXTRA DATA= ";
89 for(size_t ii = 0; ii < obj.theExtraData.size(); ii++)
90 {
91 os << obj.theExtraData[ii] << " ";
92 }
93 os << G4endl;
94
95 return os;
96}

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