39 : f_pc(ptc), nameMgr(n), f_is_initialized(false)
59 G4cout <<
"G4PersistencyManager[\"" << nameMgr <<
"\"," <<
this
60 <<
"]: verbose level is set to " <<
m_verbose <<
"."
91 G4cout <<
"G4PersistencyManager::Store() is called for event# "
101 if ( ! is_store )
return true;
105 if ( ! f_is_initialized ) {
106 f_is_initialized =
true;
108 G4cout <<
"G4PersistencyManager:: Initializing Transaction ... "
114 G4bool st1 =
true, st2 =
true;
120 G4cout <<
"G4PersistencyManager: Update transaction started for event#"
124 G4cerr <<
"TransactionManager::Store(G4Event) - StartUpdate() failed."
132 G4bool stmct =
true, st3 =
true;
149 G4cout <<
" -- File : " << file <<
" -- Event# "
167 G4cout <<
" -- File : " << file <<
" -- Event# "
169 <<
" -- Hit Collections Stored." <<
G4endl;
186 G4cout <<
" -- File : " << file <<
" -- Event# "
188 <<
" -- Digit Collections Stored." <<
G4endl;
198 if ( mctevt!=0 || evt!=0 ) {
206 <<
" -- G4Pevent is Stored." <<
G4endl;
213 G4bool st = stmct && st1 && st2 && st3;
218 G4cout <<
"G4PersistencyManager: event# "
221 G4cerr <<
"G4PersistencyManager::Store(G4Event) - Transaction aborted."
233 G4cout <<
"G4PersistencyManager::Retrieve(G4Event*&) is called."
247 if ( ! f_is_initialized ) {
248 f_is_initialized =
true;
250 G4cout <<
"G4PersistencyManager:: Initializing Transaction ... "
260 G4cout <<
"G4PersistencyManager: Read transaction started."
264 G4cerr <<
"TransactionManager::Retrieve(G4Event) - StartRead() failed."
274 std::string obj =
"Hits";
280 G4cout <<
" -- File : " << file <<
" -- Event# "
282 <<
" -- G4Event is Retrieved." <<
G4endl;
292 G4cerr <<
"G4PersistencyManager::Retrieve() - Transaction aborted."
static G4PersistencyManager * GetPersistencyManager()
std::string CurrentReadFile(std::string objName)
G4VPDigitsCollectionIO * GetDCIOmanager(std::string name)
G4bool Store(const G4Event *evt)
const G4double hc
[MeV*fm]
virtual G4bool Store(const G4Event *anEvent)=0
virtual G4bool Retrieve(G4Pevent *&anEvent)=0
virtual void Initialize()
static G4HCIOcatalog * GetHCIOcatalog()
void SetVerboseLevel(int v)
size_t NumberOfHCIOmanager()
virtual G4VPDigitIO * DigitIO()
StoreMode CurrentStoreMode(std::string objName)
virtual G4VMCTruthIO * MCTruthIO()
G4GLOB_DLL std::ostream G4cout
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)
virtual ~G4PersistencyManager()
static G4DCIOcatalog * GetDCIOcatalog()
G4VPHitsCollectionIO * GetHCIOmanager(std::string name)
G4bool CurrentRetrieveMode(std::string objName)
void SetVerboseLevel(int v)
virtual G4bool Store(const G4DCofThisEvent *)=0
G4PersistencyManager * CurrentPersistencyManager()
virtual G4VPEventIO * EventIO()
virtual G4VPHitIO * HitIO()
void SetVerboseLevel(int v)
virtual G4bool Store(const G4HCofThisEvent *)=0
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)
G4PersistencyCenter * f_pc
void SetVerboseLevel(int v)
virtual G4bool Store(G4MCTEvent *)=0
G4HCofThisEvent * GetHCofThisEvent() const
G4DCofThisEvent * GetDCofThisEvent() const
G4PersistencyManager(G4PersistencyCenter *pc, std::string n)
size_t NumberOfDCIOmanager()
G4bool Retrieve(G4Event *&evt)
void SetVerboseLevel(int v)
std::string CurrentWriteFile(std::string objName)
static G4PersistencyCenter * GetPersistencyCenter()
G4GLOB_DLL std::ostream G4cerr
virtual G4VTransactionManager * TransactionManager()