Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VPHitIO Class Referenceabstract

#include <G4VPHitIO.hh>

Public Member Functions

 G4VPHitIO ()
 
virtual ~G4VPHitIO ()
 
G4VPHitIOGetVPHitIO ()
 
virtual G4bool Store (const G4HCofThisEvent *)=0
 
virtual G4bool Retrieve (G4HCofThisEvent *&)=0
 
void SetVerboseLevel (G4int v)
 

Protected Member Functions

void SetG4VPHitIO (G4VPHitIO *hitMan)
 

Protected Attributes

G4int m_verbose = 0
 
G4HCIOcatalogf_catalog = nullptr
 

Static Protected Attributes

static G4ThreadLocal G4VPHitIOf_G4VPHitIO = nullptr
 

Detailed Description

Definition at line 41 of file G4VPHitIO.hh.

Constructor & Destructor Documentation

◆ G4VPHitIO()

G4VPHitIO::G4VPHitIO ( )

Definition at line 36 of file G4VPHitIO.cc.

37{
39}
static G4HCIOcatalog * GetHCIOcatalog()
G4HCIOcatalog * f_catalog
Definition: G4VPHitIO.hh:76

◆ ~G4VPHitIO()

virtual G4VPHitIO::~G4VPHitIO ( )
inlinevirtual

Definition at line 48 of file G4VPHitIO.hh.

48{}

Member Function Documentation

◆ GetVPHitIO()

G4VPHitIO * G4VPHitIO::GetVPHitIO ( )
inline

Definition at line 51 of file G4VPHitIO.hh.

51{ return f_G4VPHitIO; }
static G4ThreadLocal G4VPHitIO * f_G4VPHitIO
Definition: G4VPHitIO.hh:75

◆ Retrieve()

virtual G4bool G4VPHitIO::Retrieve ( G4HCofThisEvent *&  )
pure virtual

◆ SetG4VPHitIO()

void G4VPHitIO::SetG4VPHitIO ( G4VPHitIO hitMan)
inlineprotected

Definition at line 69 of file G4VPHitIO.hh.

69{ f_G4VPHitIO = hitMan; }

◆ SetVerboseLevel()

void G4VPHitIO::SetVerboseLevel ( G4int  v)

Definition at line 42 of file G4VPHitIO.cc.

43{
44 m_verbose = v;
45
46 // Loop through the registered Hit I/O managers
47 for(G4int i = 0; i < (G4int)f_catalog->NumberOfHCIOmanager(); ++i)
48 {
50 hitIOman->SetVerboseLevel(v);
51 }
52}
int G4int
Definition: G4Types.hh:85
G4VPHitsCollectionIO * GetHCIOmanager(const G4String &name)
std::size_t NumberOfHCIOmanager()
G4int m_verbose
Definition: G4VPHitIO.hh:74

Referenced by G4PersistencyManager::SetVerboseLevel().

◆ Store()

virtual G4bool G4VPHitIO::Store ( const G4HCofThisEvent )
pure virtual

Member Data Documentation

◆ f_catalog

G4HCIOcatalog* G4VPHitIO::f_catalog = nullptr
protected

Definition at line 76 of file G4VPHitIO.hh.

Referenced by G4VPHitIO(), and SetVerboseLevel().

◆ f_G4VPHitIO

G4ThreadLocal G4VPHitIO * G4VPHitIO::f_G4VPHitIO = nullptr
staticprotected

Definition at line 75 of file G4VPHitIO.hh.

Referenced by GetVPHitIO(), and SetG4VPHitIO().

◆ m_verbose

G4int G4VPHitIO::m_verbose = 0
protected

Definition at line 74 of file G4VPHitIO.hh.

Referenced by SetVerboseLevel().


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