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

#include <G4tgrSolid.hh>

+ Inheritance diagram for G4tgrSolid:

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() [1/2]

G4tgrSolid::G4tgrSolid ( )

Definition at line 47 of file G4tgrSolid.cc.

48{
49}

◆ G4tgrSolid() [2/2]

G4tgrSolid::G4tgrSolid ( const std::vector< G4String > &  wl)

Definition at line 59 of file G4tgrSolid.cc.

60{
61 //---------- set name
63
64 //---------- set solid type
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}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
static G4int GetVerboseLevel()
G4String theType
Definition: G4tgrSolid.hh:75
G4String theName
Definition: G4tgrSolid.hh:73
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:178
void RegisterMe(G4tgrSolid *vol)
static G4tgrVolumeMgr * GetInstance()

◆ ~G4tgrSolid()

G4tgrSolid::~G4tgrSolid ( )
virtual

Definition at line 53 of file G4tgrSolid.cc.

54{
55}

Member Function Documentation

◆ GetName()

const G4String & G4tgrSolid::GetName ( ) const
inline

◆ GetRelativePlace()

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

◆ GetRelativeRotMatName()

const G4String & G4tgrSolid::GetRelativeRotMatName ( ) const
virtual

Reimplemented in G4tgrSolidBoolean.

Definition at line 91 of file G4tgrSolid.cc.

92{
93 return theName; // Dummy ...
94}

Referenced by G4tgbVolume::FindOrConstructG4Solid().

◆ GetSolidParams()

const std::vector< std::vector< G4double > * > G4tgrSolid::GetSolidParams ( ) const

Definition at line 84 of file G4tgrSolid.cc.

85{
86 return theSolidParams;
87}
std::vector< std::vector< G4double > * > theSolidParams
Definition: G4tgrSolid.hh:77

Referenced by G4tgbVolume::FindOrConstructG4Solid().

◆ GetType()

const G4String & G4tgrSolid::GetType ( ) const
inline

Definition at line 62 of file G4tgrSolid.hh.

62{ return theType; }

Referenced by G4tgbVolume::FindOrConstructG4Solid().

Friends And Related Function Documentation

◆ operator<<

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}

Member Data Documentation

◆ theName

G4String G4tgrSolid::theName
protected

◆ theSolidParams

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

Definition at line 77 of file G4tgrSolid.hh.

Referenced by GetSolidParams().

◆ theType

G4String G4tgrSolid::theType
protected

Definition at line 75 of file G4tgrSolid.hh.

Referenced by G4tgrSolid(), G4tgrSolidBoolean::G4tgrSolidBoolean(), and GetType().


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