Geant4 11.1.1
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 42 of file G4tgrSolid.hh.

Constructor & Destructor Documentation

◆ G4tgrSolid() [1/2]

G4tgrSolid::G4tgrSolid ( )

Definition at line 42 of file G4tgrSolid.cc.

43{
44}

◆ G4tgrSolid() [2/2]

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

Definition at line 52 of file G4tgrSolid.cc.

53{
54 //---------- set name
56
57 //---------- set solid type
59
60 //---------- create only vector<double> of theSolidParams
61 FillSolidParams(wl);
62
64
65#ifdef G4VERBOSE
67 {
68 G4cout << " Created " << *this << G4endl;
69 }
70#endif
71}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
G4String theType
Definition: G4tgrSolid.hh:68
G4String theName
Definition: G4tgrSolid.hh:66
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:173
void RegisterMe(G4tgrSolid *vol)
static G4tgrVolumeMgr * GetInstance()

◆ ~G4tgrSolid()

G4tgrSolid::~G4tgrSolid ( )
virtual

Definition at line 47 of file G4tgrSolid.cc.

48{
49}

Member Function Documentation

◆ GetName()

const G4String & G4tgrSolid::GetName ( ) const
inline

◆ GetRelativePlace()

G4ThreeVector G4tgrSolid::GetRelativePlace ( ) const
virtual

Reimplemented in G4tgrSolidBoolean.

Definition at line 86 of file G4tgrSolid.cc.

87{
88 return G4ThreeVector(0, 0, 0); // Dummy...
89}
CLHEP::Hep3Vector G4ThreeVector

◆ GetRelativeRotMatName()

const G4String & G4tgrSolid::GetRelativeRotMatName ( ) const
virtual

Reimplemented in G4tgrSolidBoolean.

Definition at line 80 of file G4tgrSolid.cc.

81{
82 return theName; // Dummy ...
83}

Referenced by G4tgbVolume::FindOrConstructG4Solid().

◆ GetSolidParams()

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

Definition at line 74 of file G4tgrSolid.cc.

75{
76 return theSolidParams;
77}
std::vector< std::vector< G4double > * > theSolidParams
Definition: G4tgrSolid.hh:70

Referenced by G4tgbVolume::FindOrConstructG4Solid().

◆ GetType()

const G4String & G4tgrSolid::GetType ( ) const
inline

Definition at line 55 of file G4tgrSolid.hh.

55{ 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 190 of file G4tgrSolid.cc.

191{
192 os << "G4tgrSolid= " << sol.theName << " of type " << sol.theType
193 << " PARAMS: ";
194 if(sol.theSolidParams.size() != 0)
195 {
196 std::vector<G4double> solpar = *(sol.theSolidParams[0]);
197 for(std::size_t ii = 0; ii < solpar.size(); ++ii)
198 {
199 os << solpar[ii] << " ";
200 }
201 }
202 os << G4endl;
203
204 return os;
205}

Member Data Documentation

◆ theName

◆ theSolidParams

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

Definition at line 70 of file G4tgrSolid.hh.

Referenced by GetSolidParams().

◆ theType


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