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

Additional Inherited Members

- Protected Attributes inherited from G4VHCIOentry
G4int m_verbose
 

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 ( std::string  n)
inline

Definition at line 1 of file G4HCIOentryT.hh.

49 : G4VHCIOentry(n), f_manager(0)
50 {
51 if ( m_verbose > 2 ) {
52 G4cout << "G4HCIOentryT: Registering HitsCollection IO manager"
53 << " for \"" << n << "\"" << G4endl;
54 }
55 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT 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 ( std::string  detName,
std::string  colName 
)
inlinevirtual

Reimplemented from G4VHCIOentry.

Definition at line 62 of file G4HCIOentryT.hh.

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

◆ DeleteHCIOmanager()

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

Definition at line 78 of file G4HCIOentryT.hh.

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

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