Geant4 9.6.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
 
G4String theParentName
 
unsigned int theCopyNo
 
G4String theType
 

Detailed Description

Definition at line 57 of file G4tgrPlaceParameterisation.hh.

Constructor & Destructor Documentation

◆ G4tgrPlaceParameterisation() [1/2]

G4tgrPlaceParameterisation::G4tgrPlaceParameterisation ( )

Definition at line 42 of file G4tgrPlaceParameterisation.cc.

43{
44}

◆ ~G4tgrPlaceParameterisation()

G4tgrPlaceParameterisation::~G4tgrPlaceParameterisation ( )

Definition at line 48 of file G4tgrPlaceParameterisation.cc.

49{
50}

◆ G4tgrPlaceParameterisation() [2/2]

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

Definition at line 54 of file G4tgrPlaceParameterisation.cc.

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

◆ 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 72 of file G4tgrPlaceParameterisation.hh.

72{ 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 91 of file G4tgrPlaceParameterisation.cc.

93{
94 os << "G4tgrPlaceParameterisation= in " << obj.theParentName
95 << " ParamTyep = " << obj.theParamType
96 << " RotMatName= " << obj.theRotMatName << " EXTRA DATA= ";
97 for( size_t ii = 0; ii << obj.theExtraData.size(); ii++ )
98 {
99 os << obj.theExtraData[ii] << " ";
100 }
101 os << G4endl;
102
103 return os;
104}

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