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

#include <G4tgrPlaceParameterisation.hh>

Inheritance diagram for G4tgrPlaceParameterisation:
G4tgrPlace

Public Member Functions

 G4tgrPlaceParameterisation ()
 
 G4tgrPlaceParameterisation (const std::vector< G4String > &p)
 
unsigned int GetCopyNo () const
 
std::vector< G4doubleGetExtraData () const
 
const G4StringGetParamType () const
 
const G4StringGetParentName () const
 
virtual G4ThreeVector GetPlacement () const
 
const G4StringGetRotMatName () const
 
const G4StringGetType () const
 
G4tgrVolumeGetVolume () const
 
void SetType (const G4String &typ)
 
void SetVolume (G4tgrVolume *vol)
 
 ~G4tgrPlaceParameterisation ()
 

Protected Attributes

unsigned int theCopyNo = 0
 
G4String theParentName = ""
 
G4String theType = ""
 
G4tgrVolumetheVolume = nullptr
 

Private Attributes

std::vector< G4doubletheExtraData
 
G4String theParamType
 
G4String theRotMatName
 

Friends

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

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
64
65 //---------- set the rotation matrix name
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()
std::vector< G4double > theExtraData
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

References G4tgrUtils::CheckWLsize(), G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), G4tgrPlace::theCopyNo, theExtraData, theParamType, G4tgrPlace::theParentName, theRotMatName, G4tgrPlace::theType, and WLSIZE_GE.

Member Function Documentation

◆ GetCopyNo()

unsigned int G4tgrPlace::GetCopyNo ( ) const
inlineinherited

◆ GetExtraData()

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

◆ GetParamType()

const G4String & G4tgrPlaceParameterisation::GetParamType ( ) const
inline

◆ GetParentName()

const G4String & G4tgrPlace::GetParentName ( ) const
inlineinherited

◆ GetPlacement()

G4ThreeVector G4tgrPlace::GetPlacement ( ) const
virtualinherited

Reimplemented in G4tgrPlaceSimple.

Definition at line 44 of file G4tgrPlace.cc.

45{
46 return G4ThreeVector(0, 0, 0); // Dummy...
47}
CLHEP::Hep3Vector G4ThreeVector

Referenced by G4tgbVolume::ConstructG4PhysVol().

◆ GetRotMatName()

const G4String & G4tgrPlaceParameterisation::GetRotMatName ( ) const
inline

◆ 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 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}

Field Documentation

◆ theCopyNo

unsigned int G4tgrPlace::theCopyNo = 0
protectedinherited

◆ theExtraData

std::vector<G4double> G4tgrPlaceParameterisation::theExtraData
private

Definition at line 73 of file G4tgrPlaceParameterisation.hh.

Referenced by G4tgrPlaceParameterisation(), and GetExtraData().

◆ theParamType

G4String G4tgrPlaceParameterisation::theParamType
private

Definition at line 72 of file G4tgrPlaceParameterisation.hh.

Referenced by G4tgrPlaceParameterisation(), and GetParamType().

◆ theParentName

G4String G4tgrPlace::theParentName = ""
protectedinherited

◆ theRotMatName

G4String G4tgrPlaceParameterisation::theRotMatName
private

Definition at line 76 of file G4tgrPlaceParameterisation.hh.

Referenced by G4tgrPlaceParameterisation(), 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: