58{
59
60
62 "G4tgrVolumeDivision::G4tgrVolumeDivision" );
64 "G4tgrVolumeDivision::G4tgrVolumeDivision" );
65
67
68
69
70
72
73
76
77
80 thePlaceDiv->
SetType(
"PlaceDivision");
82
83
85
86
88
89
91#ifdef G4VERBOSE
93 {
94 G4cout <<
" G4tgrVolumeDivision::G4tgrVolumeDivision() -"
95 <<
" Replica register parent - child " <<
G4endl;
96 }
97#endif
98
99
101 for( size_t ii = 0; ii < wl0.length(); ii++ )
102 {
103 wl0[ii] = toupper( wl0[ii] );
104 }
105
106 if( wl0 == ":DIV_NDIV" )
107 {
110 if( wl.size() == 7 )
111 {
113 }
114 }
115 else if( wl0 == ":DIV_WIDTH" )
116 {
119 if( wl.size() == 7 )
120 {
122 }
123 }
124 else if( wl0 == ":DIV_NDIV_WIDTH" )
125 {
129 if( wl.size() == 8 )
130 {
132 }
133 }
134 else
135 {
136 G4String ErrMessage =
"Division type not supported, sorry... " + wl[0];
137 G4Exception(
"G4tgrVolumeDivision::G4tgrVolumeDivision()",
139 }
140
143 for(
size_t ii=0; ii<3; ii++) {
theRGBColour[ii] = -1.; }
144
145#ifdef G4VERBOSE
147 {
149 }
150#endif
151
153}
G4DLLIMPORT std::ostream G4cout
static G4int GetVerboseLevel()
void SetDivType(G4DivType typ)
void SetParentName(const G4String &parentName)
void SetWidth(G4double width)
void SetOffset(G4double offset)
EAxis BuildAxis(const G4String &axisName)
void SetType(const G4String &typ)
void SetVolume(G4tgrVolume *vol)
static G4String GetString(const G4String &str)
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
static G4int GetInt(const G4String &str)
static G4double GetDouble(const G4String &str, G4double unitval=1.)
G4tgrVolume * FindVolume(const G4String &volname, G4bool exists=false)
void RegisterParentChild(const G4String &parentName, const G4tgrPlace *pl)
static G4tgrVolumeMgr * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)