Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HCIOentryT< T > Class Template Reference

#include <G4HCIOentryT.hh>

Inheritance diagram for G4HCIOentryT< T >:
Collaboration 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 ()
 

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

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

Definition at line 48 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  }
G4GLOB_DLL std::ostream G4cout
const G4int n
G4VHCIOentry(std::string n)
Definition: G4VHCIOentry.cc:37
#define G4endl
Definition: G4ios.hh:61
template<class T >
G4HCIOentryT< T >::~G4HCIOentryT ( )
inline

Definition at line 58 of file G4HCIOentryT.hh.

58 {};

Member Function Documentation

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  }
static G4HCIOcatalog * GetHCIOcatalog()
G4GLOB_DLL std::ostream G4cout
void PrintHCIOmanager()
void RegisterHCIOmanager(G4VPHitsCollectionIO *d)
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

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: