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

#include <G4THitsCollection.hh>

+ Inheritance diagram for G4HitsCollection:

Public Member Functions

 ~G4HitsCollection () override=default
 
G4bool operator== (const G4HitsCollection &right) const
 
 G4VHitsCollection ()=default
 
 G4VHitsCollection (const G4String &detName, const G4String &colNam)
 
- Public Member Functions inherited from G4VHitsCollection
 G4VHitsCollection ()=default
 
 G4VHitsCollection (const G4String &detName, const 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 (std::size_t) const
 
virtual std::size_t GetSize () const
 

Protected Attributes

void * theCollection = nullptr
 
- Protected Attributes inherited from G4VHitsCollection
G4String collectionName = "Unknown"
 
G4String SDname = "Unknown"
 
G4int colID = -1
 

Detailed Description

Definition at line 49 of file G4THitsCollection.hh.

Constructor & Destructor Documentation

◆ ~G4HitsCollection()

G4HitsCollection::~G4HitsCollection ( )
overridedefault

Member Function Documentation

◆ G4VHitsCollection() [1/2]

G4VHitsCollection::G4VHitsCollection ( )
default

◆ G4VHitsCollection() [2/2]

G4VHitsCollection::G4VHitsCollection ( const G4String & detName,
const G4String & colNam )

Definition at line 50 of file G4VHitsCollection.cc.

32 : collectionName(colNam), SDname(detName), colID(-1)
33{}

◆ operator==()

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

Definition at line 37 of file G4THitsCollection.cc.

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

Member Data Documentation

◆ theCollection


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