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

#include <G4tgrSolid.hh>

Inheritance diagram for G4tgrSolid:
Collaboration 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::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.

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

Here is the call graph for this function:

G4tgrSolid::~G4tgrSolid ( )
virtual

Definition at line 53 of file G4tgrSolid.cc.

54 {
55 }

Member Function Documentation

const G4String& G4tgrSolid::GetName ( ) const
inline

Definition at line 61 of file G4tgrSolid.hh.

61 { return theName; }
G4String theName
Definition: G4tgrSolid.hh:73

Here is the caller graph for this function:

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.

92 {
93  return theName; // Dummy ...
94 }
G4String theName
Definition: G4tgrSolid.hh:73

Here is the caller graph for this function:

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

Here is the caller graph for this function:

const G4String& G4tgrSolid::GetType ( ) const
inline

Definition at line 62 of file G4tgrSolid.hh.

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

Here is the caller graph for this function:

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

Member Data Documentation

G4String G4tgrSolid::theName
protected

Definition at line 73 of file G4tgrSolid.hh.

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

Definition at line 77 of file G4tgrSolid.hh.

G4String G4tgrSolid::theType
protected

Definition at line 75 of file G4tgrSolid.hh.


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