Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PersistencyManagerT< T > Class Template Reference

#include <G4PersistencyManagerT.hh>

+ Inheritance diagram for G4PersistencyManagerT< T >:

Public Member Functions

 G4PersistencyManagerT (G4PersistencyCenter *pc, const G4String &n)
 
 ~G4PersistencyManagerT ()
 
G4PersistencyManagerCreate ()
 
void Delete ()
 
G4VPEventIOEventIO ()
 
G4VPHitIOHitIO ()
 
G4VPDigitIODigitIO ()
 
G4VHepMCIO * HepMCIO ()
 
G4VMCTruthIOMCTruthIO ()
 
G4VTransactionManagerTransactionManager ()
 
void Initialize ()
 
void SetVerboseLevel (G4int v)
 
- Public Member Functions inherited from G4PersistencyManager
 G4PersistencyManager (G4PersistencyCenter *pc, const G4String &n)
 
virtual ~G4PersistencyManager ()
 
virtual G4PersistencyManagerCreate ()
 
const G4StringGetName ()
 
virtual G4VPEventIOEventIO ()
 
virtual G4VPHitIOHitIO ()
 
virtual G4VPDigitIODigitIO ()
 
virtual G4VMCTruthIOMCTruthIO ()
 
virtual G4VTransactionManagerTransactionManager ()
 
virtual void Initialize ()
 
void SetVerboseLevel (G4int v)
 
G4bool Store (const G4Event *evt)
 
G4bool Retrieve (G4Event *&evt)
 
G4bool Store (const G4Run *)
 
G4bool Retrieve (G4Run *&)
 
G4bool Store (const G4VPhysicalVolume *)
 
G4bool Retrieve (G4VPhysicalVolume *&)
 
- Public Member Functions inherited from G4VPersistencyManager
virtual ~G4VPersistencyManager ()
 
virtual G4bool Store (const G4Event *anEvent)=0
 
virtual G4bool Store (const G4Run *aRun)=0
 
virtual G4bool Store (const G4VPhysicalVolume *theWorld)=0
 
virtual G4bool Retrieve (G4Event *&anEvent)=0
 
virtual G4bool Retrieve (G4Run *&aRun)=0
 
virtual G4bool Retrieve (G4VPhysicalVolume *&theWorld)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPersistencyManager
static G4VPersistencyManagerGetPersistencyManager ()
 
- Protected Member Functions inherited from G4VPersistencyManager
 G4VPersistencyManager ()
 
- Static Protected Member Functions inherited from G4PersistencyManager
static G4PersistencyManagerGetPersistencyManager ()
 
- Protected Attributes inherited from G4PersistencyManager
G4PersistencyCenterf_pc = nullptr
 
G4int m_verbose = 0
 

Detailed Description

template<class T>
class G4PersistencyManagerT< T >

Definition at line 41 of file G4PersistencyManagerT.hh.

Constructor & Destructor Documentation

◆ G4PersistencyManagerT()

template<class T >
G4PersistencyManagerT< T >::G4PersistencyManagerT ( G4PersistencyCenter pc,
const G4String n 
)
inline

Definition at line 45 of file G4PersistencyManagerT.hh.

47 {
48 if(m_verbose > 2)
49 {
50 G4cout << "G4PersistencyManagerT: Registering G4PersistencyManager \""
51 << n << "\"" << G4endl;
52 }
55 }
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4PersistencyCenter * GetPersistencyCenter()
void RegisterPersistencyManager(G4PersistencyManager *pm)

◆ ~G4PersistencyManagerT()

template<class T >
G4PersistencyManagerT< T >::~G4PersistencyManagerT ( )
inline

Definition at line 58 of file G4PersistencyManagerT.hh.

58{}

Member Function Documentation

◆ Create()

template<class T >
G4PersistencyManager * G4PersistencyManagerT< T >::Create ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 61 of file G4PersistencyManagerT.hh.

62 {
63 pm = new T(f_pc, GetName());
64 return pm;
65 }
G4PersistencyCenter * f_pc
const G4String & GetName()

◆ Delete()

template<class T >
void G4PersistencyManagerT< T >::Delete ( )
inline

Definition at line 68 of file G4PersistencyManagerT.hh.

69 {
70 if(pm != nullptr) delete pm;
71 }

◆ DigitIO()

template<class T >
G4VPDigitIO * G4PersistencyManagerT< T >::DigitIO ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 92 of file G4PersistencyManagerT.hh.

93 {
94 if(pm != nullptr)
95 return pm->DigitIO();
96 else
97 return nullptr;
98 }
virtual G4VPDigitIO * DigitIO()

◆ EventIO()

template<class T >
G4VPEventIO * G4PersistencyManagerT< T >::EventIO ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 74 of file G4PersistencyManagerT.hh.

75 {
76 if(pm != nullptr)
77 return pm->EventIO();
78 else
79 return nullptr;
80 }
virtual G4VPEventIO * EventIO()

◆ HepMCIO()

template<class T >
G4VHepMCIO * G4PersistencyManagerT< T >::HepMCIO ( )
inline

Definition at line 101 of file G4PersistencyManagerT.hh.

102 {
103 if(pm != nullptr)
104 return pm->HepMCIO();
105 else
106 return nullptr;
107 }

◆ HitIO()

template<class T >
G4VPHitIO * G4PersistencyManagerT< T >::HitIO ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 83 of file G4PersistencyManagerT.hh.

84 {
85 if(pm != nullptr)
86 return pm->HitIO();
87 else
88 return nullptr;
89 }
virtual G4VPHitIO * HitIO()

◆ Initialize()

template<class T >
void G4PersistencyManagerT< T >::Initialize ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 128 of file G4PersistencyManagerT.hh.

128{}

◆ MCTruthIO()

template<class T >
G4VMCTruthIO * G4PersistencyManagerT< T >::MCTruthIO ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 110 of file G4PersistencyManagerT.hh.

111 {
112 if(pm != nullptr)
113 return pm->MCTruthIO();
114 else
115 return nullptr;
116 }
virtual G4VMCTruthIO * MCTruthIO()

◆ SetVerboseLevel()

template<class T >
void G4PersistencyManagerT< T >::SetVerboseLevel ( G4int  v)
inline

Definition at line 131 of file G4PersistencyManagerT.hh.

132 {
133 if(pm != nullptr)
134 return pm->SetVerboseLevel();
135 else
136 return nullptr;
137 }

◆ TransactionManager()

template<class T >
G4VTransactionManager * G4PersistencyManagerT< T >::TransactionManager ( )
inlinevirtual

Reimplemented from G4PersistencyManager.

Definition at line 119 of file G4PersistencyManagerT.hh.

120 {
121 if(pm != nullptr)
122 return pm->TransactionManager();
123 else
124 return nullptr;
125 }
virtual G4VTransactionManager * TransactionManager()

The documentation for this class was generated from the following file: