#include <G4PersistencyCenter.hh>
Definition at line 63 of file G4PersistencyCenter.hh.
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
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
std::string G4PersistencyCenter::CurrentDCIOmanager |
( |
| ) |
|
Definition at line 297 of file G4PersistencyCenter.cc.
static G4DCIOcatalog * GetDCIOcatalog()
std::string CurrentDCIOmanager()
std::string G4PersistencyCenter::CurrentHCIOmanager |
( |
| ) |
|
Definition at line 275 of file G4PersistencyCenter.cc.
std::string CurrentHCIOmanager()
static G4HCIOcatalog * GetHCIOcatalog()
std::string G4PersistencyCenter::CurrentHepMCObjyReaderFile |
( |
| ) |
|
Definition at line 145 of file G4PersistencyCenter.cc.
std::string CurrentReadFile(std::string objName)
G4bool CurrentRetrieveMode(std::string objName)
std::string G4PersistencyCenter::CurrentObject |
( |
std::string |
file | ) |
|
Definition at line 248 of file G4PersistencyCenter.cc.
250 FileMap::iterator itr;
251 for ( itr = f_readFileName.begin(); itr != f_readFileName.end(); itr++ ) {
252 if ( file == (*itr).second )
return (*itr).first;
254 for ( itr = f_writeFileName.begin(); itr != f_writeFileName.end(); itr++ ) {
255 if ( file == (*itr).second )
return (*itr).first;
std::string G4PersistencyCenter::CurrentReadFile |
( |
std::string |
objName | ) |
|
Definition at line 238 of file G4PersistencyCenter.cc.
240 if ( (*(f_readFileName.find(objName))).second !=
"" ) {
241 return f_readFileName[objName];
G4bool G4PersistencyCenter::CurrentRetrieveMode |
( |
std::string |
objName | ) |
|
Definition at line 187 of file G4PersistencyCenter.cc.
189 if ( (*(f_readFileName.find(objName))).second !=
"" ) {
190 return f_readFileMode[objName];
StoreMode G4PersistencyCenter::CurrentStoreMode |
( |
std::string |
objName | ) |
|
Definition at line 177 of file G4PersistencyCenter.cc.
179 if ( (*(f_writeFileName.find(objName))).second !=
"" ) {
180 return f_writeFileMode[objName];
const std::string G4PersistencyCenter::CurrentSystem |
( |
| ) |
|
|
inline |
std::string G4PersistencyCenter::CurrentWriteFile |
( |
std::string |
objName | ) |
|
Definition at line 228 of file G4PersistencyCenter.cc.
230 if ( (*(f_writeFileName.find(objName))).second !=
"" ) {
231 return f_writeFileName[objName];
void G4PersistencyCenter::DeletePersistencyManager |
( |
| ) |
|
Definition at line 383 of file G4PersistencyCenter.cc.
385 if (f_theCatalog.find(nam)!=f_theCatalog.end())
386 return f_theCatalog[nam];
void G4PersistencyCenter::PrintAll |
( |
| ) |
|
Definition at line 304 of file G4PersistencyCenter.cc.
309 ObjMap::iterator itr;
314 G4cout <<
"Output object types and file names:" <<
G4endl;
315 for ( itr = f_wrObj.begin(); itr != f_wrObj.end(); itr++ ) {
316 name = (*itr).second;
318 if ( name !=
"HepMC" && name !=
"MCTruth" ) {
319 G4cout <<
" Object: " << PadString(name, 9);
323 }
else if ( mode ==
kOff ) {
329 if ( file ==
"" ) file =
" <N/A>";
335 G4cout <<
"Input object types and file names:" <<
G4endl;
336 for ( itr = f_rdObj.begin(); itr != f_rdObj.end(); itr++ ) {
337 name = (*itr).second;
339 if ( name !=
"HepMC" && name !=
"MCTruth" ) {
340 G4cout <<
" Object: " << PadString(name, 9);
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)
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)
void G4PersistencyCenter::SelectSystem |
( |
std::string |
systemName | ) |
|
Definition at line 94 of file G4PersistencyCenter.cc.
98 if (f_currentManager!=0)
delete f_currentManager;
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;
130 f_currentManager = pm->
Create();
132 f_currentSystemName = systemName;
G4GLOB_DLL std::ostream G4cout
virtual G4PersistencyManager * Create()
void SetVerboseLevel(int v)
G4PersistencyManager * GetPersistencyManager(std::string nam)
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)
G4bool G4PersistencyCenter::SetReadFile |
( |
std::string |
objName, |
|
|
std::string |
readFileName |
|
) |
| |
Definition at line 210 of file G4PersistencyCenter.cc.
215 f_readFileName[objName] = readFileName;
219 G4cerr <<
"!! File \"" << objName <<
"\" does not exist."
G4bool FileExists(const std::string file)
G4GLOB_DLL std::ostream G4cerr
void G4PersistencyCenter::SetRetrieveMode |
( |
std::string |
objName, |
|
|
G4bool |
mode |
|
) |
| |
Definition at line 166 of file G4PersistencyCenter.cc.
168 if ( (*(f_readFileName.find(objName))).second !=
"" ) {
169 f_readFileMode[objName] = mode;
171 G4cerr <<
"!! unknown object type " << objName <<
" for input."
G4GLOB_DLL std::ostream G4cerr
void G4PersistencyCenter::SetStoreMode |
( |
std::string |
objName, |
|
|
StoreMode |
mode |
|
) |
| |
Definition at line 155 of file G4PersistencyCenter.cc.
157 if ( (*(f_writeFileName.find(objName))).second !=
"" ) {
158 f_writeFileMode[objName] = mode;
160 G4cerr <<
"!! unknown object type " << objName <<
" for output."
G4GLOB_DLL std::ostream G4cerr
void G4PersistencyCenter::SetVerboseLevel |
( |
int |
v | ) |
|
G4bool G4PersistencyCenter::SetWriteFile |
( |
std::string |
objName, |
|
|
std::string |
writeFileName |
|
) |
| |
Definition at line 197 of file G4PersistencyCenter.cc.
199 if ( (*(f_writeFileName.find(objName))).second !=
"" ) {
200 f_writeFileName[objName] = writeFileName;
202 G4cerr <<
"!! unknown object type " << objName <<
" for output."
G4GLOB_DLL std::ostream G4cerr
int G4PersistencyCenter::VerboseLevel |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: