Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4tgrPlaceParameterisation Class Reference

#include <G4tgrPlaceParameterisation.hh>

Inheritance diagram for G4tgrPlaceParameterisation:
Collaboration 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::G4tgrPlaceParameterisation ( )

Definition at line 42 of file G4tgrPlaceParameterisation.cc.

43 {
44 }
G4tgrPlaceParameterisation::~G4tgrPlaceParameterisation ( )

Definition at line 48 of file G4tgrPlaceParameterisation.cc.

49 {
50 }
G4tgrPlaceParameterisation::G4tgrPlaceParameterisation ( const std::vector< G4String > &  p)

Definition at line 55 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 }
G4String theType
Definition: G4tgrPlace.hh:79
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:475
unsigned int theCopyNo
Definition: G4tgrPlace.hh:76
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:430
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:205
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:180
G4String theParentName
Definition: G4tgrPlace.hh:72
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 71 of file G4tgrPlaceParameterisation.hh.

71 { return theExtraData; }

Here is the caller graph for this function:

const G4String& G4tgrPlaceParameterisation::GetParamType ( ) const
inline

Definition at line 69 of file G4tgrPlaceParameterisation.hh.

69 { return theParamType; }

Here is the caller graph for this function:

const G4String& G4tgrPlaceParameterisation::GetRotMatName ( ) const
inline

Definition at line 72 of file G4tgrPlaceParameterisation.hh.

72 { return theRotMatName; }

Here is the caller graph for this function:

Friends And Related Function Documentation

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 }
G4String theParentName
Definition: G4tgrPlace.hh:72
#define G4endl
Definition: G4ios.hh:61

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