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

#include <G4VITTrackHolder.hh>

+ Inheritance diagram for G4VITTrackHolder:

Public Member Functions

virtual void Push (G4Track *)
 
virtual size_t GetNTracks ()
 

Static Public Member Functions

static G4VITTrackHolderInstance ()
 

Protected Member Functions

 G4VITTrackHolder ()
 
virtual ~G4VITTrackHolder ()
 

Static Protected Attributes

static G4ThreadLocal G4VITTrackHolderfInstance
 

Detailed Description

G4ITTrackHolder is an empty interface that permits to push tracks to the IT system without actually depending on the IT tracking system. However, G4ITTrackHolder does not permit to retrieve any track.

Definition at line 60 of file G4VITTrackHolder.hh.

Constructor & Destructor Documentation

◆ G4VITTrackHolder()

G4VITTrackHolder::G4VITTrackHolder ( )
protected

Definition at line 44 of file G4VITTrackHolder.cc.

45{
46 fInstance = this;
47}
static G4ThreadLocal G4VITTrackHolder * fInstance

◆ ~G4VITTrackHolder()

G4VITTrackHolder::~G4VITTrackHolder ( )
protectedvirtual

Definition at line 49 of file G4VITTrackHolder.cc.

50{
51 fInstance = 0;
52}

Member Function Documentation

◆ GetNTracks()

virtual size_t G4VITTrackHolder::GetNTracks ( )
inlinevirtual

Reimplemented in G4ITTrackHolder.

Definition at line 70 of file G4VITTrackHolder.hh.

71 {
72 return 0;
73 }

◆ Instance()

G4VITTrackHolder * G4VITTrackHolder::Instance ( )
static

Definition at line 54 of file G4VITTrackHolder.cc.

55{
56 if (fInstance == 0) fInstance = new G4ITTrackHolder();
57 return fInstance;
58}

Referenced by G4ITGun::PushTrack().

◆ Push()

void G4VITTrackHolder::Push ( G4Track track)
virtual

Reimplemented in G4ITTrackHolder.

Definition at line 60 of file G4VITTrackHolder.cc.

61{
62 //abort();
63 delete track;
64}

Referenced by G4ITGun::PushTrack().

Member Data Documentation

◆ fInstance

G4ThreadLocal G4VITTrackHolder * G4VITTrackHolder::fInstance
staticprotected

Definition at line 65 of file G4VITTrackHolder.hh.

Referenced by G4VITTrackHolder(), Instance(), and ~G4VITTrackHolder().


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