Geant4 9.6.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, std::string n)
 
 ~G4PersistencyManagerT ()
 
G4PersistencyManagerCreate ()
 
void Delete ()
 
G4VPEventIOEventIO ()
 
G4VPHitIOHitIO ()
 
G4VPDigitIODigitIO ()
 
G4VHepMCIO * HepMCIO ()
 
G4VMCTruthIOMCTruthIO ()
 
G4VTransactionManagerTransactionManager ()
 
void Initialize ()
 
void SetVerboseLevel (int v)
 
- Public Member Functions inherited from G4PersistencyManager
 G4PersistencyManager (G4PersistencyCenter *pc, std::string n)
 
virtual ~G4PersistencyManager ()
 
virtual G4PersistencyManagerCreate ()
 
std::string GetName ()
 
virtual G4VPEventIOEventIO ()
 
virtual G4VPHitIOHitIO ()
 
virtual G4VPDigitIODigitIO ()
 
virtual G4VMCTruthIOMCTruthIO ()
 
virtual G4VTransactionManagerTransactionManager ()
 
virtual void Initialize ()
 
void SetVerboseLevel (int 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
 
int m_verbose
 

Detailed Description

template<class T>
class G4PersistencyManagerT< T >

Definition at line 42 of file G4PersistencyManagerT.hh.

Constructor & Destructor Documentation

◆ G4PersistencyManagerT()

template<class T >
G4PersistencyManagerT< T >::G4PersistencyManagerT ( G4PersistencyCenter pc,
std::string  n 
)
inline

Definition at line 46 of file G4PersistencyManagerT.hh.

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

◆ ~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 62 of file G4PersistencyManagerT.hh.

63 {
64 pm = new T(f_pc, GetName());
65 return pm;
66 }
G4PersistencyCenter * f_pc

◆ Delete()

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

Definition at line 69 of file G4PersistencyManagerT.hh.

69{ if (pm!=0) delete pm; };

◆ DigitIO()

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

Reimplemented from G4PersistencyManager.

Definition at line 86 of file G4PersistencyManagerT.hh.

87 {
88 if (pm) return pm->DigitIO();
89 else return 0;
90 };
virtual G4VPDigitIO * DigitIO()

◆ EventIO()

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

Reimplemented from G4PersistencyManager.

Definition at line 72 of file G4PersistencyManagerT.hh.

73 {
74 if (pm) return pm->EventIO();
75 else return 0;
76 };
virtual G4VPEventIO * EventIO()

◆ HepMCIO()

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

Definition at line 93 of file G4PersistencyManagerT.hh.

94 {
95 if (pm) return pm->HepMCIO();
96 else return 0;
97 };

◆ HitIO()

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

Reimplemented from G4PersistencyManager.

Definition at line 79 of file G4PersistencyManagerT.hh.

80 {
81 if (pm) return pm->HitIO();
82 else return 0;
83 };
virtual G4VPHitIO * HitIO()

◆ Initialize()

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

Reimplemented from G4PersistencyManager.

Definition at line 114 of file G4PersistencyManagerT.hh.

114{};

◆ MCTruthIO()

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

Reimplemented from G4PersistencyManager.

Definition at line 100 of file G4PersistencyManagerT.hh.

101 {
102 if (pm) return pm->MCTruthIO();
103 else return 0;
104 };
virtual G4VMCTruthIO * MCTruthIO()

◆ SetVerboseLevel()

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

Definition at line 117 of file G4PersistencyManagerT.hh.

118 {
119 if (pm) return pm->SetVerboseLevel();
120 else return 0;
121 };

◆ TransactionManager()

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

Reimplemented from G4PersistencyManager.

Definition at line 107 of file G4PersistencyManagerT.hh.

108 {
109 if (pm) return pm->TransactionManager();
110 else return 0;
111 };
virtual G4VTransactionManager * TransactionManager()

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