Geant4 9.6.0
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 (std::string detName, std::string colName)
 
void DeleteDCIOmanager ()
 
- Public Member Functions inherited from G4VDCIOentry
 G4VDCIOentry (std::string n)
 
virtual ~G4VDCIOentry ()
 
void SetVerboseLevel (G4int v)
 
std::string GetName ()
 
virtual void CreateDCIOmanager (std::string, std::string)
 

Additional Inherited Members

- Protected Attributes inherited from G4VDCIOentry
G4int m_verbose
 

Detailed Description

template<class T>
class G4DCIOentryT< T >

Definition at line 44 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), f_manager(0)
50 {
51 if ( m_verbose > 2 ) {
52 G4cout << "G4DCIOentryT: Registering DigitsCollection IO manager"
53 << " for \"" << n << "\"" << G4endl;
54 }
55 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ ~G4DCIOentryT()

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

Definition at line 58 of file G4DCIOentryT.hh.

58{};

Member Function Documentation

◆ CreateDCIOmanager()

template<class T >
void G4DCIOentryT< T >::CreateDCIOmanager ( std::string  detName,
std::string  colName 
)
inlinevirtual

Reimplemented from G4VDCIOentry.

Definition at line 62 of file G4DCIOentryT.hh.

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

◆ DeleteDCIOmanager()

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

Definition at line 78 of file G4DCIOentryT.hh.

78{ if (f_manager!=0) delete f_manager; };

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