102 if (systemName==
"ROOT")
104 G4cout<<
" G4PersistencyCenter: \"ROOT\" Persistency Package is selected."
113 else if (systemName==
"ODBMS")
115 G4cout<<
" G4PersistencyCenter: \"ODBMS\" package is selected."<<
G4endl;
125 G4cout<<
" G4PersistencyCenter: Default is selected."<<
G4endl;
160 G4cerr <<
"!! unknown object type " << objName <<
" for output."
171 G4cerr <<
"!! unknown object type " << objName <<
" for input."
202 G4cerr <<
"!! unknown object type " << objName <<
" for output."
219 G4cerr <<
"!! File \"" << objName <<
"\" does not exist."
250 FileMap::iterator itr;
252 if ( file == (*itr).second )
return (*itr).first;
255 if ( file == (*itr).second )
return (*itr).first;
269 G4cerr <<
"Error! -- HCIO assignment failed for detector " << detName
270 <<
", collection " << colName <<
G4endl;
286 std::string colName =
"";
291 G4cerr <<
"Error! -- DCIO assignment failed for detector " << detName
292 <<
", collection " << colName <<
G4endl;
309 ObjMap::iterator itr;
314 G4cout <<
"Output object types and file names:" <<
G4endl;
316 name = (*itr).second;
318 if ( name !=
"HepMC" && name !=
"MCTruth" ) {
323 }
else if ( mode ==
kOff ) {
329 if ( file ==
"" ) file =
" <N/A>";
335 G4cout <<
"Input object types and file names:" <<
G4endl;
337 name = (*itr).second;
339 if ( name !=
"HepMC" && name !=
"MCTruth" ) {
347 if ( file ==
"" ) file =
" <N/A>";
360 G4cout <<
"Hit IO Manager catalog is not registered." <<
G4endl;
370 G4cout <<
"Digit IO Manager catalog is not registered." <<
G4endl;
413 if ( name.length() >
width ) {
414 return name.substr(0,width-1) +
"#";
416 std::string wname =
name;
417 for (
unsigned int i=0; i < width-name.length(); i++) wname = wname +
" ";
void SetRetrieveMode(std::string objName, G4bool mode)
std::string CurrentObject(std::string file)
static G4ThreadLocal G4PersistencyCenter * f_thePointer
G4PersistencyManager * f_currentManager
void AddDCIOmanager(std::string detName)
std::string CurrentReadFile(std::string objName)
G4VHCIOentry * GetEntry(std::string name)
std::string CurrentHCIOmanager()
void AddHCIOmanager(std::string detName, std::string colName)
virtual void CreateDCIOmanager(std::string, std::string)
void DeletePersistencyManager()
std::string PadString(std::string name, unsigned int width)
static G4HCIOcatalog * GetHCIOcatalog()
void SelectSystem(std::string systemName)
void SetPersistencyManager(G4PersistencyManager *pm, std::string name)
StoreMode CurrentStoreMode(std::string objName)
void SetHepMCObjyReaderFile(std::string file)
std::string CurrentDCIOmanager()
virtual void CreateHCIOmanager(std::string, std::string)
std::string CurrentHCIOmanager()
G4GLOB_DLL std::ostream G4cout
G4VDCIOentry * GetEntry(std::string name)
G4bool FileExists(const std::string file)
static G4DCIOcatalog * GetDCIOcatalog()
G4bool CurrentRetrieveMode(std::string objName)
G4bool SetWriteFile(std::string objName, std::string writeFileName)
std::string f_currentSystemName
virtual G4PersistencyManager * Create()
void RegisterPersistencyManager(G4PersistencyManager *pm)
void SetStoreMode(std::string objName, StoreMode mode)
G4PersistencyCenterMessenger * f_theMessenger
G4bool SetReadFile(std::string objName, std::string readFileName)
void SetVerboseLevel(int v)
const std::string CurrentSystem()
G4PersistencyManager * GetPersistencyManager(std::string nam)
std::string CurrentHepMCObjyReaderFile()
std::string CurrentDCIOmanager()
std::string CurrentWriteFile(std::string objName)
static G4PersistencyCenter * GetPersistencyCenter()
G4GLOB_DLL std::ostream G4cerr
void SetVerboseLevel(int v)