Geant4 11.1.1
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 ()
 
 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

G4String collectionName
 
G4String SDname
 
G4int colID
 

Detailed Description

Definition at line 44 of file G4VHitsCollection.hh.

Constructor & Destructor Documentation

◆ G4VHitsCollection() [1/2]

G4VHitsCollection::G4VHitsCollection ( )

Definition at line 33 of file G4VHitsCollection.cc.

34{
35 collectionName = "Unknown";
36 SDname = "Unknown";
37 colID = -1;
38}

◆ G4VHitsCollection() [2/2]

G4VHitsCollection::G4VHitsCollection ( G4String  detName,
G4String  colNam 
)

Definition at line 40 of file G4VHitsCollection.cc.

41{
42 collectionName = colNam;
43 SDname = detName;
44 colID = -1;
45}

◆ ~G4VHitsCollection()

G4VHitsCollection::~G4VHitsCollection ( )
virtual

Definition at line 47 of file G4VHitsCollection.cc.

47{ ; }

Member Function Documentation

◆ DrawAllHits()

◆ GetColID()

G4int G4VHitsCollection::GetColID ( ) const
inline

Definition at line 66 of file G4VHitsCollection.hh.

66{ return colID; }

Referenced by G4ScoringManager::FindMesh().

◆ GetHit()

◆ GetName()

const G4String & G4VHitsCollection::GetName ( ) const
inline

◆ GetSDname()

const G4String & G4VHitsCollection::GetSDname ( ) const
inline

◆ GetSize()

◆ operator==()

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

Definition at line 49 of file G4VHitsCollection.cc.

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

◆ PrintAllHits()

◆ SetColID()

void G4VHitsCollection::SetColID ( G4int  i)
inline

Definition at line 65 of file G4VHitsCollection.hh.

65{ colID = i; }

Referenced by G4HCofThisEvent::AddHitsCollection().

Member Data Documentation

◆ colID

G4int G4VHitsCollection::colID
protected

Definition at line 60 of file G4VHitsCollection.hh.

Referenced by G4VHitsCollection(), GetColID(), and SetColID().

◆ collectionName

◆ SDname

G4String G4VHitsCollection::SDname
protected

Definition at line 58 of file G4VHitsCollection.hh.

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


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