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

#include <G4DCIOentryT.hh>

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

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

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

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

Definition at line 58 of file G4DCIOentryT.hh.

58 {};

Member Function Documentation

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()
void RegisterDCIOmanager(G4VPDigitsCollectionIO *d)
G4GLOB_DLL std::ostream G4cout
static G4DCIOcatalog * GetDCIOcatalog()
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

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: