#include <G4PersistencyCenter.hh>
Definition at line 63 of file G4PersistencyCenter.hh.
◆ G4PersistencyCenter()
G4PersistencyCenter::G4PersistencyCenter |
( |
| ) |
|
|
private |
Definition at line 45 of file G4PersistencyCenter.cc.
G4PersistencyManager * f_currentManager
G4PersistencyCenterMessenger * f_theMessenger
◆ ~G4PersistencyCenter()
G4PersistencyCenter::~G4PersistencyCenter |
( |
| ) |
|
|
private |
Definition at line 79 of file G4PersistencyCenter.cc.
G4PersistencyManager * f_currentManager
G4PersistencyCenterMessenger * f_theMessenger
◆ AddDCIOmanager()
void G4PersistencyCenter::AddDCIOmanager |
( |
std::string |
detName | ) |
|
Definition at line 282 of file G4PersistencyCenter.cc.
286 std::string colName =
"";
291 G4cerr <<
"Error! -- DCIO assignment failed for detector " << detName
292 <<
", collection " << colName <<
G4endl;
virtual void CreateDCIOmanager(std::string, std::string)
G4VDCIOentry * GetEntry(std::string name)
static G4DCIOcatalog * GetDCIOcatalog()
G4GLOB_DLL std::ostream G4cerr
◆ AddHCIOmanager()
void G4PersistencyCenter::AddHCIOmanager |
( |
std::string |
detName, |
|
|
std::string |
colName |
|
) |
| |
Definition at line 261 of file G4PersistencyCenter.cc.
269 G4cerr <<
"Error! -- HCIO assignment failed for detector " << detName
270 <<
", collection " << colName <<
G4endl;
G4VHCIOentry * GetEntry(std::string name)
static G4HCIOcatalog * GetHCIOcatalog()
virtual void CreateHCIOmanager(std::string, std::string)
G4GLOB_DLL std::ostream G4cerr
◆ CurrentDCIOmanager()
std::string G4PersistencyCenter::CurrentDCIOmanager |
( |
| ) |
|
Definition at line 297 of file G4PersistencyCenter.cc.
static G4DCIOcatalog * GetDCIOcatalog()
std::string CurrentDCIOmanager()
◆ CurrentHCIOmanager()
std::string G4PersistencyCenter::CurrentHCIOmanager |
( |
| ) |
|
Definition at line 275 of file G4PersistencyCenter.cc.
std::string CurrentHCIOmanager()
static G4HCIOcatalog * GetHCIOcatalog()
◆ CurrentHepMCObjyReaderFile()
std::string G4PersistencyCenter::CurrentHepMCObjyReaderFile |
( |
| ) |
|
Definition at line 145 of file G4PersistencyCenter.cc.
std::string CurrentReadFile(std::string objName)
G4bool CurrentRetrieveMode(std::string objName)
◆ CurrentObject()
std::string G4PersistencyCenter::CurrentObject |
( |
std::string |
file | ) |
|
Definition at line 248 of file G4PersistencyCenter.cc.
250 FileMap::iterator itr;
252 if (
file == (*itr).second )
return (*itr).first;
255 if (
file == (*itr).second )
return (*itr).first;
◆ CurrentPersistencyManager()
◆ CurrentReadFile()
std::string G4PersistencyCenter::CurrentReadFile |
( |
std::string |
objName | ) |
|
◆ CurrentRetrieveMode()
G4bool G4PersistencyCenter::CurrentRetrieveMode |
( |
std::string |
objName | ) |
|
◆ CurrentStoreMode()
StoreMode G4PersistencyCenter::CurrentStoreMode |
( |
std::string |
objName | ) |
|
◆ CurrentSystem()
const std::string G4PersistencyCenter::CurrentSystem |
( |
| ) |
|
|
inline |
◆ CurrentWriteFile()
std::string G4PersistencyCenter::CurrentWriteFile |
( |
std::string |
objName | ) |
|
◆ DeletePersistencyManager()
void G4PersistencyCenter::DeletePersistencyManager |
( |
| ) |
|
◆ GetPersistencyCenter()
◆ GetPersistencyManager()
◆ PadString()
std::string G4PersistencyCenter::PadString |
( |
std::string |
name, |
|
|
unsigned int |
width |
|
) |
| |
|
private |
◆ PrintAll()
void G4PersistencyCenter::PrintAll |
( |
void |
| ) |
|
Definition at line 304 of file G4PersistencyCenter.cc.
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;
std::string CurrentReadFile(std::string objName)
std::string PadString(std::string name, unsigned int width)
static G4HCIOcatalog * GetHCIOcatalog()
StoreMode CurrentStoreMode(std::string objName)
G4GLOB_DLL std::ostream G4cout
static G4DCIOcatalog * GetDCIOcatalog()
G4bool CurrentRetrieveMode(std::string objName)
const std::string CurrentSystem()
std::string CurrentWriteFile(std::string objName)
◆ RegisterPersistencyManager()
◆ SelectSystem()
void G4PersistencyCenter::SelectSystem |
( |
std::string |
systemName | ) |
|
Definition at line 94 of file G4PersistencyCenter.cc.
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;
G4PersistencyManager * f_currentManager
G4GLOB_DLL std::ostream G4cout
std::string f_currentSystemName
virtual G4PersistencyManager * Create()
void SetVerboseLevel(int v)
G4PersistencyManager * GetPersistencyManager(std::string nam)
◆ SetHepMCObjyReaderFile()
void G4PersistencyCenter::SetHepMCObjyReaderFile |
( |
std::string |
file | ) |
|
Definition at line 137 of file G4PersistencyCenter.cc.
void SetRetrieveMode(std::string objName, G4bool mode)
G4bool SetReadFile(std::string objName, std::string readFileName)
◆ SetPersistencyManager()
Definition at line 375 of file G4PersistencyCenter.cc.
G4PersistencyManager * f_currentManager
std::string f_currentSystemName
◆ SetReadFile()
G4bool G4PersistencyCenter::SetReadFile |
( |
std::string |
objName, |
|
|
std::string |
readFileName |
|
) |
| |
Definition at line 210 of file G4PersistencyCenter.cc.
219 G4cerr <<
"!! File \"" << objName <<
"\" does not exist."
G4bool FileExists(const std::string file)
G4GLOB_DLL std::ostream G4cerr
◆ SetRetrieveMode()
void G4PersistencyCenter::SetRetrieveMode |
( |
std::string |
objName, |
|
|
G4bool |
mode |
|
) |
| |
◆ SetStoreMode()
void G4PersistencyCenter::SetStoreMode |
( |
std::string |
objName, |
|
|
StoreMode |
mode |
|
) |
| |
◆ SetVerboseLevel()
void G4PersistencyCenter::SetVerboseLevel |
( |
int |
v | ) |
|
◆ SetWriteFile()
G4bool G4PersistencyCenter::SetWriteFile |
( |
std::string |
objName, |
|
|
std::string |
writeFileName |
|
) |
| |
◆ VerboseLevel()
int G4PersistencyCenter::VerboseLevel |
( |
| ) |
|
|
inline |
◆ f_currentManager
◆ f_currentSystemName
std::string G4PersistencyCenter::f_currentSystemName |
|
private |
◆ f_rdObj
ObjMap G4PersistencyCenter::f_rdObj |
|
private |
◆ f_readFileMode
BoolMap G4PersistencyCenter::f_readFileMode |
|
private |
◆ f_readFileName
FileMap G4PersistencyCenter::f_readFileName |
|
private |
◆ f_theCatalog
PMap G4PersistencyCenter::f_theCatalog |
|
private |
◆ f_theMessenger
◆ f_thePointer
◆ f_ut
◆ f_writeFileMode
StoreMap G4PersistencyCenter::f_writeFileMode |
|
private |
◆ f_writeFileName
FileMap G4PersistencyCenter::f_writeFileName |
|
private |
◆ f_wrObj
ObjMap G4PersistencyCenter::f_wrObj |
|
private |
◆ m_verbose
G4int G4PersistencyCenter::m_verbose |
|
private |
The documentation for this class was generated from the following files: