Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (15 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

Location:
trunk/source/run/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/run/include/G4RunManager.hh

    r1196 r1315  
    2525//
    2626//
    27 // $Id: G4RunManager.hh,v 1.52 2009/11/13 23:14:46 asaim Exp $
    28 // GEANT4 tag $Name: geant4-09-03-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 $
    2929//
    3030//
     
    9292#include "globals.hh"
    9393#include <vector>
    94 #include <stdlib.h>
     94#include <algorithm>
    9595
    9696class G4RunManager
     
    202202    // the user needs not invoke.
    203203
    204     void DumpRegion(G4String rname) const;
     204    void DumpRegion(const G4String& rname) const;
    205205    // Dump information of a region.
    206206
     
    260260    virtual void rndmSaveThisRun();
    261261    virtual void rndmSaveThisEvent();
    262     virtual void RestoreRandomNumberStatus(G4String fileN);
     262    virtual void RestoreRandomNumberStatus(const G4String& fileN);
    263263
    264264  public: // with description
     
    320320      // he/she can use the corresponding ENUM in G4ClassificationOfNewTrack.
    321321
    322     inline G4String GetVersionString() const
     322    inline const G4String& GetVersionString() const
    323323    { return kernel->GetVersionString(); }
    324324
     
    343343    inline G4bool GetRandomNumberStore() const
    344344    { return storeRandomNumberStatus; }
    345     inline void SetRandomNumberStoreDir(G4String dir)
     345    inline void SetRandomNumberStoreDir(const G4String& dir)
    346346    {
    347347      G4String dirStr = dir;
    348348      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;
    349356      randomNumberStatusDir = dirStr;
    350       G4String shellCmd = "mkdir -p ";
    351       shellCmd += dirStr;
    352357      system(shellCmd);
    353358    }
    354     inline G4String GetRandomNumberStoreDir() const
     359    inline const G4String& GetRandomNumberStoreDir() const
    355360    { return randomNumberStatusDir; }
    356361    inline const G4String& GetRandomNumberStatusForThisRun() const
  • trunk/source/run/include/G4RunManagerKernel.hh

    r1058 r1315  
    2525//
    2626//
    27 // $Id: G4RunManagerKernel.hh,v 1.9 2007/05/30 00:42:09 asaim Exp $
    28 // GEANT4 tag $Name: geant4-09-02-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 $
    2929//
    3030//
     
    8686  public: // with description
    8787    void DefineWorldVolume(G4VPhysicalVolume * worldVol,
    88                                    G4bool topologyIsChanged=true);
     88                           G4bool topologyIsChanged=true);
    8989    //  This method must be invoked if the geometry setup has been changed between
    9090    // runs. The flag 'topologyIsChanged' will specify if the geometry topology is
     
    121121    // the user needs not invoke.
    122122
    123     void DumpRegion(G4String rname) const;
     123    void DumpRegion(const G4String& rname) const;
    124124    // Dump information of a region.
    125125
     
    170170    { return eventManager->GetPrimaryTransformer(); }
    171171
    172     inline G4String GetVersionString() const
     172    inline const G4String& GetVersionString() const
    173173    { return versionString; }
    174174
Note: See TracChangeset for help on using the changeset viewer.