Geant4 11.1.1
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 ()
 
 G4HitsCollection (G4String detName, G4String colNam)
 
virtual ~G4HitsCollection ()
 
G4bool operator== (const G4HitsCollection &right) const
 
- Public Member Functions inherited from G4VHitsCollection
 G4VHitsCollection ()
 
 G4VHitsCollection (G4String detName, G4String colNam)
 
virtual ~G4VHitsCollection ()
 
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

void * theCollection
 
- Protected Attributes inherited from G4VHitsCollection
G4String collectionName
 
G4String SDname
 
G4int colID
 

Detailed Description

Definition at line 48 of file G4THitsCollection.hh.

Constructor & Destructor Documentation

◆ G4HitsCollection() [1/2]

G4HitsCollection::G4HitsCollection ( )

Definition at line 37 of file G4THitsCollection.cc.

38 : theCollection((void*) 0)
39{}

◆ G4HitsCollection() [2/2]

G4HitsCollection::G4HitsCollection ( G4String  detName,
G4String  colNam 
)

Definition at line 41 of file G4THitsCollection.cc.

42 : G4VHitsCollection(detName, colNam)
43 , theCollection((void*) 0)
44{}

◆ ~G4HitsCollection()

G4HitsCollection::~G4HitsCollection ( )
virtual

Definition at line 46 of file G4THitsCollection.cc.

47{}

Member Function Documentation

◆ operator==()

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

Definition at line 49 of file G4THitsCollection.cc.

50{
51 return (collectionName == right.collectionName);
52}

Member Data Documentation

◆ theCollection


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