48G4tgrParameterMgr::G4tgrParameterMgr()
54G4tgrParameterMgr::~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;
G4DLLIMPORT std::ostream G4cout
static G4String ConvertToString(G4bool boolVal)
static G4int GetVerboseLevel()
void AddParameterNumber(const std::vector< G4String > &wl, G4bool mustBeNew=0)
void AddParameterString(const std::vector< G4String > &wl, G4bool mustBeNew=0)
void CheckIfNewParameter(const std::vector< G4String > &wl, G4bool mustBeNew)
G4String FindParameter(const G4String &name, G4bool exists=true)
static G4tgrParameterMgr * GetInstance()
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
static G4double GetDouble(const G4String &str, G4double unitval=1.)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)