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.

00048 {
00049 }

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.

00060 {
00061   //---------- set name 
00062   theName = G4tgrUtils::GetString( wl[1] ); 
00063 
00064   //---------- set solid type
00065   theType = G4tgrUtils::GetString( wl[2] ); 
00066 
00067   //---------- create only vector<double> of theSolidParams
00068   FillSolidParams( wl );
00069 
00070   G4tgrVolumeMgr::GetInstance()->RegisterMe( this );
00071 
00072 
00073 #ifdef G4VERBOSE
00074   if( G4tgrMessenger::GetVerboseLevel() >= 1 )
00075   {
00076      G4cout << " Created " << *this << G4endl;
00077   }
00078 #endif
00079 
00080 }

G4tgrSolid::~G4tgrSolid (  )  [virtual]

Definition at line 53 of file G4tgrSolid.cc.

00054 {
00055 }


Member Function Documentation

const G4String& G4tgrSolid::GetName (  )  const [inline]

Definition at line 61 of file G4tgrSolid.hh.

References theName.

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

00061 { return theName; }

G4ThreeVector G4tgrSolid::GetRelativePlace (  )  const [virtual]

Reimplemented in G4tgrSolidBoolean.

Definition at line 98 of file G4tgrSolid.cc.

00099 {
00100   return G4ThreeVector(0,0,0);  // Dummy...
00101 }

const G4String & G4tgrSolid::GetRelativeRotMatName (  )  const [virtual]

Reimplemented in G4tgrSolidBoolean.

Definition at line 91 of file G4tgrSolid.cc.

References theName.

00092 {
00093   return theName;  // Dummy ...
00094 }

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

Definition at line 84 of file G4tgrSolid.cc.

References theSolidParams.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

00085 {
00086   return theSolidParams;
00087 }

const G4String& G4tgrSolid::GetType ( void   )  const [inline]

Definition at line 62 of file G4tgrSolid.hh.

References theType.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

00062 { return theType; }


Friends And Related Function Documentation

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

Definition at line 173 of file G4tgrSolid.cc.

00174 {
00175   os << "G4tgrSolid= " << sol.theName
00176      << " of type " << sol.theType << " PARAMS: ";
00177   if( sol.theSolidParams.size() != 0 )
00178   {
00179     std::vector<G4double> solpar = *(sol.theSolidParams[0]); 
00180     for( size_t ii = 0; ii < solpar.size(); ii++)
00181     {
00182       os << solpar[ii] << " " ;
00183     }
00184   }
00185   os << G4endl;
00186 
00187   return os;
00188 }


Field Documentation

G4String G4tgrSolid::theName [protected]

Definition at line 73 of file G4tgrSolid.hh.

Referenced by G4tgrSolid(), G4tgrSolidBoolean::G4tgrSolidBoolean(), GetName(), GetRelativeRotMatName(), and operator<<().

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]

Definition at line 75 of file G4tgrSolid.hh.

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


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:31 2013 for Geant4 by  doxygen 1.4.7