Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VHitsCollection Class Reference

#include <G4VHitsCollection.hh>

+ Inheritance diagram for G4VHitsCollection:

Public Member Functions

 G4VHitsCollection ()=default
 
 G4VHitsCollection (G4String detName, G4String colNam)
 
virtual ~G4VHitsCollection ()=default
 
G4bool operator== (const G4VHitsCollection &right) const
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
const G4StringGetName () const
 
const G4StringGetSDname () const
 
void SetColID (G4int i)
 
G4int GetColID () const
 
virtual G4VHitGetHit (size_t) const
 
virtual size_t GetSize () const
 

Protected Attributes

G4String collectionName = "Unknown"
 
G4String SDname = "Unknown"
 
G4int colID = -1
 

Detailed Description

Definition at line 44 of file G4VHitsCollection.hh.

Constructor & Destructor Documentation

◆ G4VHitsCollection() [1/2]

G4VHitsCollection::G4VHitsCollection ( )
default

◆ G4VHitsCollection() [2/2]

G4VHitsCollection::G4VHitsCollection ( G4String detName,
G4String colNam )

Definition at line 33 of file G4VHitsCollection.cc.

34 : collectionName(colNam), SDname(detName), colID(-1)
35{}

◆ ~G4VHitsCollection()

virtual G4VHitsCollection::~G4VHitsCollection ( )
virtualdefault

Member Function Documentation

◆ DrawAllHits()

◆ GetColID()

G4int G4VHitsCollection::GetColID ( ) const
inline

Definition at line 58 of file G4VHitsCollection.hh.

58{ return colID; }

◆ GetHit()

◆ GetName()

const G4String & G4VHitsCollection::GetName ( ) const
inline

Definition at line 55 of file G4VHitsCollection.hh.

55{ return collectionName; }

Referenced by G4SDManager::GetCollectionID().

◆ GetSDname()

const G4String & G4VHitsCollection::GetSDname ( ) const
inline

Definition at line 56 of file G4VHitsCollection.hh.

56{ return SDname; }

Referenced by G4SDManager::GetCollectionID().

◆ GetSize()

◆ operator==()

G4bool G4VHitsCollection::operator== ( const G4VHitsCollection & right) const

Definition at line 37 of file G4VHitsCollection.cc.

38{
39 return ((collectionName == right.collectionName) && (SDname == right.SDname));
40}

◆ PrintAllHits()

◆ SetColID()

void G4VHitsCollection::SetColID ( G4int i)
inline

Definition at line 57 of file G4VHitsCollection.hh.

57{ colID = i; }

Referenced by G4HCofThisEvent::AddHitsCollection().

Member Data Documentation

◆ colID

G4int G4VHitsCollection::colID = -1
protected

Definition at line 71 of file G4VHitsCollection.hh.

Referenced by GetColID(), and SetColID().

◆ collectionName

◆ SDname

G4String G4VHitsCollection::SDname = "Unknown"
protected

Definition at line 69 of file G4VHitsCollection.hh.

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


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