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

#include <G4VPHitsCollectionIO.hh>

Public Member Functions

 G4VPHitsCollectionIO (const G4String &detName, const G4String &colName)
 
virtual ~G4VPHitsCollectionIO ()
 
virtual G4bool Store (const G4VHitsCollection *)=0
 
virtual G4bool Retrieve (G4VHitsCollection *&)=0
 
G4bool operator== (const G4VPHitsCollectionIO &right) const
 
const G4StringSDname ()
 
const G4StringCollectionName ()
 
void SetVerboseLevel (G4int v)
 

Protected Attributes

G4int m_verbose = 0
 
G4String f_detName
 
G4String f_colName
 

Detailed Description

Definition at line 39 of file G4VPHitsCollectionIO.hh.

Constructor & Destructor Documentation

◆ G4VPHitsCollectionIO()

G4VPHitsCollectionIO::G4VPHitsCollectionIO ( const G4String detName,
const G4String colName 
)

Definition at line 34 of file G4VPHitsCollectionIO.cc.

36 : f_detName(detName)
37 , f_colName(colName)
38{
39}

◆ ~G4VPHitsCollectionIO()

virtual G4VPHitsCollectionIO::~G4VPHitsCollectionIO ( )
inlinevirtual

Definition at line 46 of file G4VPHitsCollectionIO.hh.

46{};

Member Function Documentation

◆ CollectionName()

const G4String & G4VPHitsCollectionIO::CollectionName ( )
inline

Definition at line 65 of file G4VPHitsCollectionIO.hh.

65{ return f_colName; }

◆ operator==()

G4bool G4VPHitsCollectionIO::operator== ( const G4VPHitsCollectionIO right) const

Definition at line 42 of file G4VPHitsCollectionIO.cc.

43{
44 return ((f_detName == right.f_detName) && (f_colName == right.f_colName));
45}

◆ Retrieve()

virtual G4bool G4VPHitsCollectionIO::Retrieve ( G4VHitsCollection *&  )
pure virtual

◆ SDname()

const G4String & G4VPHitsCollectionIO::SDname ( )
inline

Definition at line 62 of file G4VPHitsCollectionIO.hh.

62{ return f_detName; }

Referenced by G4HCIOcatalog::RegisterHCIOmanager().

◆ SetVerboseLevel()

void G4VPHitsCollectionIO::SetVerboseLevel ( G4int  v)
inline

◆ Store()

virtual G4bool G4VPHitsCollectionIO::Store ( const G4VHitsCollection )
pure virtual

Member Data Documentation

◆ f_colName

G4String G4VPHitsCollectionIO::f_colName
protected

Definition at line 75 of file G4VPHitsCollectionIO.hh.

Referenced by CollectionName(), and operator==().

◆ f_detName

G4String G4VPHitsCollectionIO::f_detName
protected

Definition at line 74 of file G4VPHitsCollectionIO.hh.

Referenced by operator==(), and SDname().

◆ m_verbose

G4int G4VPHitsCollectionIO::m_verbose = 0
protected

Definition at line 73 of file G4VPHitsCollectionIO.hh.

Referenced by SetVerboseLevel().


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