Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/persistency/mctruth/src/G4PersistencyCenter.cc

    r818 r1347  
    3737#include "G4UImanager.hh"
    3838#include "G4PersistencyManager.hh"
     39#include "G4VHCIOentry.hh"
     40#include "G4VDCIOentry.hh"
    3941
    4042G4PersistencyCenter* G4PersistencyCenter::f_thePointer=G4PersistencyCenter::GetPersistencyCenter();
     
    7476}
    7577
    76 // Implementation of Constructor #2
    77 G4PersistencyCenter::G4PersistencyCenter(const G4PersistencyCenter&)
    78 {}
     78// Fake implementation of Copy Constructor
     79G4PersistencyCenter::G4PersistencyCenter(const G4PersistencyCenter& c)
     80  : f_theMessenger(0), f_currentManager(0), m_verbose(0)
     81{
     82  *this = c;
     83}
    7984
    8085// Implementation of Destructor #1
     
    96101void G4PersistencyCenter::SelectSystem(std::string systemName)
    97102{
    98   int st = 0;
     103  G4int st = 0;
    99104
    100105  if (f_currentManager!=0) delete f_currentManager;
     
    102107  G4PersistencyManager* pm = 0;
    103108
    104   if (systemName=="None")
    105   {
    106     G4cout<<" G4PersistencyCenter: Default is selected."<< G4endl;
    107     pm = new G4PersistencyManager(this, "Default");
    108   }
    109   else if (systemName=="ROOT")
     109  if (systemName=="ROOT")
    110110  {
    111111    G4cout<<" G4PersistencyCenter: \"ROOT\" Persistency Package is selected."
     
    128128    }
    129129  }
     130  else
     131  {
     132    G4cout<<" G4PersistencyCenter: Default is selected."<< G4endl;
     133    pm = new G4PersistencyManager(this, "Default");
     134  }
     135
    130136  if ( st == 0 ) {
    131137    f_currentManager = pm->Create();
Note: See TracChangeset for help on using the changeset viewer.