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."
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
void SetVerboseLevel(int v)
static G4DCIOcatalog * GetDCIOcatalog()
G4VPDigitsCollectionIO * GetDCIOmanager(std::string name)
size_t NumberOfDCIOmanager()
G4HCofThisEvent * GetHCofThisEvent() const
G4DCofThisEvent * GetDCofThisEvent() const
void SetVerboseLevel(int v)
G4VPHitsCollectionIO * GetHCIOmanager(std::string name)
size_t NumberOfHCIOmanager()
static G4HCIOcatalog * GetHCIOcatalog()
static G4PersistencyCenter * GetPersistencyCenter()
std::string CurrentWriteFile(std::string objName)
G4PersistencyManager * CurrentPersistencyManager()
StoreMode CurrentStoreMode(std::string objName)
G4bool CurrentRetrieveMode(std::string objName)
std::string CurrentReadFile(std::string objName)
G4PersistencyCenter * f_pc
virtual G4VPEventIO * EventIO()
void SetVerboseLevel(int v)
virtual ~G4PersistencyManager()
virtual void Initialize()
G4bool Retrieve(G4Event *&evt)
virtual G4VMCTruthIO * MCTruthIO()
static G4PersistencyManager * GetPersistencyManager()
virtual G4VPHitIO * HitIO()
G4PersistencyManager(G4PersistencyCenter *pc, std::string n)
virtual G4VPDigitIO * DigitIO()
G4bool Store(const G4Event *evt)
virtual G4VTransactionManager * TransactionManager()
void SetVerboseLevel(int v)
virtual G4bool Store(G4MCTEvent *)=0
virtual G4bool Store(const G4DCofThisEvent *)=0
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)
virtual G4bool Store(const G4Event *anEvent)=0
virtual G4bool Retrieve(G4Pevent *&anEvent)=0
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)
virtual G4bool Store(const G4HCofThisEvent *)=0
void SetVerboseLevel(int v)
void SetVerboseLevel(int v)