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

#include <G4HCIOentryT.hh>

+ Inheritance diagram for G4HCIOentryT< T >:

Public Member Functions

 G4HCIOentryT (const G4String &n)
 
 ~G4HCIOentryT ()
 
void CreateHCIOmanager (const G4String &detName, const G4String &colName)
 
void DeleteHCIOmanager ()
 
- Public Member Functions inherited from G4VHCIOentry
 G4VHCIOentry (const G4String &n)
 
virtual ~G4VHCIOentry ()
 
void SetVerboseLevel (G4int v)
 
const G4StringGetName ()
 
virtual void CreateHCIOmanager (const G4String &, const G4String &)
 

Additional Inherited Members

- Protected Attributes inherited from G4VHCIOentry
G4int m_verbose = 0
 

Detailed Description

template<class T>
class G4HCIOentryT< T >

Definition at line 44 of file G4HCIOentryT.hh.

Constructor & Destructor Documentation

◆ G4HCIOentryT()

template<class T >
G4HCIOentryT< T >::G4HCIOentryT ( const G4String n)
inline

Definition at line 1 of file G4HCIOentryT.hh.

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

◆ ~G4HCIOentryT()

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

Definition at line 58 of file G4HCIOentryT.hh.

58{}

Member Function Documentation

◆ CreateHCIOmanager()

template<class T >
void G4HCIOentryT< T >::CreateHCIOmanager ( const G4String detName,
const G4String colName 
)
inlinevirtual

Reimplemented from G4VHCIOentry.

Definition at line 61 of file G4HCIOentryT.hh.

62 {
63 if(f_manager == nullptr)
64 {
65 f_manager = new T(detName, colName);
66 if(m_verbose > 2)
67 {
68 G4cout << "G4HCIOentryT: Constructing HitsCollection IO manager"
69 << " for \"" << detName << "\" " << f_manager << G4endl;
70 }
72 if(m_verbose > 2)
73 {
75 }
76 }
77 }
void PrintHCIOmanager()
static G4HCIOcatalog * GetHCIOcatalog()
void RegisterHCIOmanager(G4VPHitsCollectionIO *d)

◆ DeleteHCIOmanager()

template<class T >
void G4HCIOentryT< T >::DeleteHCIOmanager ( )
inline

Definition at line 80 of file G4HCIOentryT.hh.

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

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