48 G4tgrParameterMgr::G4tgrParameterMgr()
54 G4tgrParameterMgr::~G4tgrParameterMgr()
85 G4cout <<
" G4tgrParameterMgr::AddParameterNumber() -"
86 <<
" parameter added " << wl[1]
87 <<
" = " << theParameterList[ wl[1] ] <<
G4endl;
100 theParameterList[ wl[1] ] = wl[2];
105 G4cout <<
" G4tgrParameterMgr::AddParameterString() -"
106 <<
" parameter added " << wl[1]
107 <<
" = " << theParameterList[ wl[1] ] <<
G4endl;
118 G4mapss::iterator sdite = theParameterList.find( wl[1] );
119 if( sdite == theParameterList.end() )
121 existsAlready =
false;
125 existsAlready =
true;
132 G4String ErrMessage =
"Parameter already exists... " + wl[1];
138 G4String WarMessage =
"Parameter already exists... " + wl[1];
154 G4mapss::iterator sdite = theParameterList.find( name );
155 if( sdite == theParameterList.end() )
160 G4String ErrMessage =
"Parameter not found in list: " +
name;
168 par = ((*sdite).second);
172 G4cout <<
" G4tgrParameterMgr::FindParameter() -"
173 <<
" parameter found " << name <<
" = " << par <<
G4endl;
186 G4cout <<
" @@@@@@@@@@@@@@@@@@ Dumping parameter list " <<
G4endl;
187 G4mapss::const_iterator cite;
188 for( cite = theParameterList.begin();cite != theParameterList.end(); cite++ )
190 G4cout << (*cite).first <<
" = " << (*cite).second <<
G4endl;
G4String FindParameter(const G4String &name, G4bool exists=true)
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
static G4String ConvertToString(G4bool boolVal)
void AddParameterString(const std::vector< G4String > &wl, G4bool mustBeNew=0)
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
static G4tgrParameterMgr * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4double GetDouble(const G4String &str, G4double unitval=1.)
void CheckIfNewParameter(const std::vector< G4String > &wl, G4bool mustBeNew)
void AddParameterNumber(const std::vector< G4String > &wl, G4bool mustBeNew=0)