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

#include <G4DCIOentryT.hh>

+ Inheritance diagram for G4DCIOentryT< T >:

Public Member Functions

 G4DCIOentryT (std::string n)
 
 ~G4DCIOentryT ()
 
void CreateDCIOmanager (const G4String &detName, const G4String &colName)
 
void DeleteDCIOmanager ()
 
- Public Member Functions inherited from G4VDCIOentry
 G4VDCIOentry (const G4String &n)
 
virtual ~G4VDCIOentry ()
 
void SetVerboseLevel (G4int v)
 
const G4StringGetName ()
 
virtual void CreateDCIOmanager (const G4String &, const G4String &)
 

Additional Inherited Members

- Protected Attributes inherited from G4VDCIOentry
G4int m_verbose = 0
 

Detailed Description

template<class T>
class G4DCIOentryT< T >

Definition at line 45 of file G4DCIOentryT.hh.

Constructor & Destructor Documentation

◆ G4DCIOentryT()

template<class T >
G4DCIOentryT< T >::G4DCIOentryT ( std::string  n)
inline

Definition at line 1 of file G4DCIOentryT.hh.

49 : G4VDCIOentry(n)
50 {
51 if(m_verbose > 2)
52 {
53 G4cout << "G4DCIOentryT: Registering DigitsCollection IO manager"
54 << " for \"" << n << "\"" << G4endl;
55 }
56 }
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

◆ ~G4DCIOentryT()

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

Definition at line 59 of file G4DCIOentryT.hh.

59{}

Member Function Documentation

◆ CreateDCIOmanager()

template<class T >
void G4DCIOentryT< T >::CreateDCIOmanager ( const G4String detName,
const G4String colName 
)
inlinevirtual

Reimplemented from G4VDCIOentry.

Definition at line 62 of file G4DCIOentryT.hh.

63 {
64 if(f_manager == nullptr)
65 {
66 f_manager = new T(detName, colName);
67 if(m_verbose > 2)
68 {
69 G4cout << "G4DCIOentryT: Constructing DigitsCollection IO manager"
70 << " for \"" << detName << "\" " << f_manager << G4endl;
71 }
73 if(m_verbose > 2)
74 {
76 }
77 }
78 }
void PrintDCIOmanager()
static G4DCIOcatalog * GetDCIOcatalog()
void RegisterDCIOmanager(G4VPDigitsCollectionIO *d)

◆ DeleteDCIOmanager()

template<class T >
void G4DCIOentryT< T >::DeleteDCIOmanager ( )
inline

Definition at line 81 of file G4DCIOentryT.hh.

82 {
83 if(f_manager != nullptr) { delete f_manager; }
84 }

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