Changeset 1315 for trunk/source/run/include
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (15 years ago)
- Location:
- trunk/source/run/include
- Files:
-
- 2 edited
-
G4RunManager.hh (modified) (6 diffs)
-
G4RunManagerKernel.hh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/run/include/G4RunManager.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4RunManager.hh,v 1.5 2 2009/11/13 23:14:46 asaimExp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4RunManager.hh,v 1.53 2010/06/11 09:02:14 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 92 92 #include "globals.hh" 93 93 #include <vector> 94 #include < stdlib.h>94 #include <algorithm> 95 95 96 96 class G4RunManager … … 202 202 // the user needs not invoke. 203 203 204 void DumpRegion( G4Stringrname) const;204 void DumpRegion(const G4String& rname) const; 205 205 // Dump information of a region. 206 206 … … 260 260 virtual void rndmSaveThisRun(); 261 261 virtual void rndmSaveThisEvent(); 262 virtual void RestoreRandomNumberStatus( G4StringfileN);262 virtual void RestoreRandomNumberStatus(const G4String& fileN); 263 263 264 264 public: // with description … … 320 320 // he/she can use the corresponding ENUM in G4ClassificationOfNewTrack. 321 321 322 inline G4StringGetVersionString() const322 inline const G4String& GetVersionString() const 323 323 { return kernel->GetVersionString(); } 324 324 … … 343 343 inline G4bool GetRandomNumberStore() const 344 344 { return storeRandomNumberStatus; } 345 inline void SetRandomNumberStoreDir( G4Stringdir)345 inline void SetRandomNumberStoreDir(const G4String& dir) 346 346 { 347 347 G4String dirStr = dir; 348 348 if( dirStr(dirStr.length()-1) != '/' ) dirStr += "/"; 349 #ifndef WIN32 350 G4String shellCmd = "mkdir -p "; 351 #else 352 std::replace(dirStr.begin(), dirStr.end(),'/','\\'); 353 G4String shellCmd = "mkdir "; 354 #endif 355 shellCmd += dirStr; 349 356 randomNumberStatusDir = dirStr; 350 G4String shellCmd = "mkdir -p ";351 shellCmd += dirStr;352 357 system(shellCmd); 353 358 } 354 inline G4StringGetRandomNumberStoreDir() const359 inline const G4String& GetRandomNumberStoreDir() const 355 360 { return randomNumberStatusDir; } 356 361 inline const G4String& GetRandomNumberStatusForThisRun() const -
trunk/source/run/include/G4RunManagerKernel.hh
r1058 r1315 25 25 // 26 26 // 27 // $Id: G4RunManagerKernel.hh,v 1. 9 2007/05/30 00:42:09 asaimExp $28 // GEANT4 tag $Name: geant4-09-0 2-ref-02$27 // $Id: G4RunManagerKernel.hh,v 1.10 2010/06/11 09:02:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 86 86 public: // with description 87 87 void DefineWorldVolume(G4VPhysicalVolume * worldVol, 88 G4bool topologyIsChanged=true);88 G4bool topologyIsChanged=true); 89 89 // This method must be invoked if the geometry setup has been changed between 90 90 // runs. The flag 'topologyIsChanged' will specify if the geometry topology is … … 121 121 // the user needs not invoke. 122 122 123 void DumpRegion( G4Stringrname) const;123 void DumpRegion(const G4String& rname) const; 124 124 // Dump information of a region. 125 125 … … 170 170 { return eventManager->GetPrimaryTransformer(); } 171 171 172 inline G4StringGetVersionString() const172 inline const G4String& GetVersionString() const 173 173 { return versionString; } 174 174
Note:
See TracChangeset
for help on using the changeset viewer.
