Geant4 9.6.0
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 ()
 
G4int operator== (const G4VHitsCollection &right) const
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
G4String GetName ()
 
G4String GetSDname ()
 
virtual G4VHitGetHit (size_t) const
 
virtual size_t GetSize () const
 

Protected Attributes

G4String collectionName
 
G4String SDname
 

Detailed Description

Definition at line 45 of file G4VHitsCollection.hh.

Constructor & Destructor Documentation

◆ G4VHitsCollection() [1/2]

G4VHitsCollection::G4VHitsCollection ( )

Definition at line 34 of file G4VHitsCollection.cc.

35{
36 collectionName = "Unknown";
37 SDname = "Unknown";
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}

◆ ~G4VHitsCollection()

G4VHitsCollection::~G4VHitsCollection ( )
virtual

Definition at line 46 of file G4VHitsCollection.cc.

47{ ; }

Member Function Documentation

◆ DrawAllHits()

void G4VHitsCollection::DrawAllHits ( )
virtual

Reimplemented in G4THitsCollection< T >, G4THitsMap< T >, and G4THitsMap< G4double >.

Definition at line 55 of file G4VHitsCollection.cc.

56{;}

Referenced by G4Event::Draw().

◆ GetHit()

virtual G4VHit * G4VHitsCollection::GetHit ( size_t  ) const
inlinevirtual

Reimplemented in G4THitsCollection< T >, G4THitsMap< T >, and G4THitsMap< G4double >.

Definition at line 72 of file G4VHitsCollection.hh.

72{ return 0; }

◆ GetName()

G4String G4VHitsCollection::GetName ( )
inline

◆ GetSDname()

G4String G4VHitsCollection::GetSDname ( )
inline

Definition at line 65 of file G4VHitsCollection.hh.

66 { return SDname; }

Referenced by G4ScoringManager::Accumulate(), and G4SDManager::GetCollectionID().

◆ GetSize()

virtual size_t G4VHitsCollection::GetSize ( ) const
inlinevirtual

Reimplemented in G4THitsCollection< T >, G4THitsMap< T >, and G4THitsMap< G4double >.

Definition at line 73 of file G4VHitsCollection.hh.

73{ return 0; };

Referenced by G4HitsModel::DescribeYourselfTo().

◆ operator==()

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

Definition at line 49 of file G4VHitsCollection.cc.

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

◆ PrintAllHits()

void G4VHitsCollection::PrintAllHits ( )
virtual

Reimplemented in G4THitsCollection< T >, G4THitsMap< T >, and G4THitsMap< G4double >.

Definition at line 58 of file G4VHitsCollection.cc.

59{;}

Member Data Documentation

◆ collectionName

◆ SDname

G4String G4VHitsCollection::SDname
protected

Definition at line 60 of file G4VHitsCollection.hh.

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


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