Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Friends
G4tgrSolid Class Reference

#include <G4tgrSolid.hh>

Inheritance diagram for G4tgrSolid:
G4tgrSolidBoolean

Public Member Functions

 G4tgrSolid ()
 
 G4tgrSolid (const std::vector< G4String > &wl)
 
virtual ~G4tgrSolid ()
 
const G4StringGetName () const
 
const G4StringGetType () const
 
const std::vector< std::vector
< G4double > * > 
GetSolidParams () const
 
virtual const G4StringGetRelativeRotMatName () const
 
virtual G4ThreeVector GetRelativePlace () const
 

Protected Attributes

G4String theName
 
G4String theType
 
std::vector< std::vector
< G4double > * > 
theSolidParams
 

Friends

std::ostream & operator<< (std::ostream &, const G4tgrSolid &)
 

Detailed Description

Definition at line 49 of file G4tgrSolid.hh.

Constructor & Destructor Documentation

G4tgrSolid::G4tgrSolid ( )

Definition at line 47 of file G4tgrSolid.cc.

48 {
49 }
G4tgrSolid::G4tgrSolid ( const std::vector< G4String > &  wl)

Definition at line 59 of file G4tgrSolid.cc.

References G4cout, G4endl, G4tgrVolumeMgr::GetInstance(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), G4tgrVolumeMgr::RegisterMe(), theName, and theType.

60 {
61  //---------- set name
62  theName = G4tgrUtils::GetString( wl[1] );
63 
64  //---------- set solid type
65  theType = G4tgrUtils::GetString( wl[2] );
66 
67  //---------- create only vector<double> of theSolidParams
68  FillSolidParams( wl );
69 
71 
72 
73 #ifdef G4VERBOSE
75  {
76  G4cout << " Created " << *this << G4endl;
77  }
78 #endif
79 
80 }
G4String theType
Definition: G4tgrSolid.hh:75
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
static G4tgrVolumeMgr * GetInstance()
void RegisterMe(G4tgrSolid *vol)
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:180
G4String theName
Definition: G4tgrSolid.hh:73
#define G4endl
Definition: G4ios.hh:61
G4tgrSolid::~G4tgrSolid ( )
virtual

Definition at line 53 of file G4tgrSolid.cc.

54 {
55 }

Member Function Documentation

const G4String& G4tgrSolid::GetName ( void  ) const
inline

Definition at line 61 of file G4tgrSolid.hh.

References theName.

Referenced by G4tgbVolume::FindOrConstructG4Solid(), G4tgrVolumeMgr::RegisterMe(), and G4tgrVolumeMgr::UnRegisterMe().

61 { return theName; }
G4String theName
Definition: G4tgrSolid.hh:73
G4ThreeVector G4tgrSolid::GetRelativePlace ( ) const
virtual

Reimplemented in G4tgrSolidBoolean.

Definition at line 98 of file G4tgrSolid.cc.

99 {
100  return G4ThreeVector(0,0,0); // Dummy...
101 }
CLHEP::Hep3Vector G4ThreeVector
const G4String & G4tgrSolid::GetRelativeRotMatName ( ) const
virtual

Reimplemented in G4tgrSolidBoolean.

Definition at line 91 of file G4tgrSolid.cc.

References theName.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

92 {
93  return theName; // Dummy ...
94 }
G4String theName
Definition: G4tgrSolid.hh:73
const std::vector< std::vector< G4double > * > G4tgrSolid::GetSolidParams ( ) const

Definition at line 84 of file G4tgrSolid.cc.

References theSolidParams.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

85 {
86  return theSolidParams;
87 }
std::vector< std::vector< G4double > * > theSolidParams
Definition: G4tgrSolid.hh:77
const G4String& G4tgrSolid::GetType ( ) const
inline

Definition at line 62 of file G4tgrSolid.hh.

References theType.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

62 { return theType; }
G4String theType
Definition: G4tgrSolid.hh:75

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4tgrSolid sol 
)
friend

Definition at line 173 of file G4tgrSolid.cc.

174 {
175  os << "G4tgrSolid= " << sol.theName
176  << " of type " << sol.theType << " PARAMS: ";
177  if( sol.theSolidParams.size() != 0 )
178  {
179  std::vector<G4double> solpar = *(sol.theSolidParams[0]);
180  for( size_t ii = 0; ii < solpar.size(); ii++)
181  {
182  os << solpar[ii] << " " ;
183  }
184  }
185  os << G4endl;
186 
187  return os;
188 }
std::vector< std::vector< G4double > * > theSolidParams
Definition: G4tgrSolid.hh:77
G4String theType
Definition: G4tgrSolid.hh:75
G4String theName
Definition: G4tgrSolid.hh:73
#define G4endl
Definition: G4ios.hh:61

Field Documentation

G4String G4tgrSolid::theName
protected
std::vector< std::vector<G4double>* > G4tgrSolid::theSolidParams
protected

Definition at line 77 of file G4tgrSolid.hh.

Referenced by GetSolidParams(), and operator<<().

G4String G4tgrSolid::theType
protected

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