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 +
" ";
std::string CurrentDCIOmanager()
static G4HCIOcatalog * GetHCIOcatalog()
std::string f_currentSystemName
G4PersistencyCenterMessenger * f_theMessenger
void SetPersistencyManager(G4PersistencyManager *pm, std::string name)
void AddDCIOmanager(std::string detName)
G4bool CurrentRetrieveMode(std::string objName)
static G4DCIOcatalog * GetDCIOcatalog()
std::string CurrentWriteFile(std::string objName)
std::string CurrentObject(std::string file)
std::string PadString(std::string name, unsigned int width)
static G4ThreadLocal G4PersistencyCenter * f_thePointer
std::string CurrentHepMCObjyReaderFile()
void AddHCIOmanager(std::string detName, std::string colName)
std::string CurrentHCIOmanager()
G4bool SetWriteFile(std::string objName, std::string writeFileName)
std::string CurrentHCIOmanager()
G4bool FileExists(const std::string file)
StoreMode CurrentStoreMode(std::string objName)
void RegisterPersistencyManager(G4PersistencyManager *pm)
G4VHCIOentry * GetEntry(std::string name)
const std::string CurrentSystem()
void SetVerboseLevel(int v)
virtual void CreateHCIOmanager(std::string, std::string)
virtual void CreateDCIOmanager(std::string, std::string)
G4bool SetReadFile(std::string objName, std::string readFileName)
G4GLOB_DLL std::ostream G4cerr
void SetHepMCObjyReaderFile(std::string file)
G4PersistencyManager * f_currentManager
G4PersistencyManager * GetPersistencyManager(std::string nam)
std::string CurrentReadFile(std::string objName)
void DeletePersistencyManager()
void SetVerboseLevel(int v)
G4VDCIOentry * GetEntry(std::string name)
void SetStoreMode(std::string objName, StoreMode mode)
G4GLOB_DLL std::ostream G4cout
virtual G4PersistencyManager * Create()
std::string CurrentDCIOmanager()
void SetRetrieveMode(std::string objName, G4bool mode)
void SelectSystem(std::string systemName)
static G4PersistencyCenter * GetPersistencyCenter()