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

#include <G4Run.hh>

Public Member Functions

 G4Run ()
 
virtual ~G4Run ()
 
virtual void RecordEvent (const G4Event *)
 
G4int GetRunID () const
 
G4int GetNumberOfEvent () const
 
G4int GetNumberOfEventToBeProcessed () const
 
const G4HCtableGetHCtable () const
 
const G4DCtableGetDCtable () const
 
const G4StringGetRandomNumberStatus () const
 
void SetRunID (G4int id)
 
void SetNumberOfEventToBeProcessed (G4int n_ev)
 
void SetHCtable (G4HCtable *HCtbl)
 
void SetDCtable (G4DCtable *DCtbl)
 
void SetRandomNumberStatus (G4String &st)
 
void StoreEvent (G4Event *evt)
 
const std::vector< const G4Event * > * GetEventVector () const
 

Protected Attributes

G4int runID
 
G4int numberOfEvent
 
G4int numberOfEventToBeProcessed
 
G4HCtableHCtable
 
G4DCtableDCtable
 
G4String randomNumberStatus
 
std::vector< const G4Event * > * eventVector
 

Detailed Description

Definition at line 46 of file G4Run.hh.

Constructor & Destructor Documentation

◆ G4Run()

G4Run::G4Run ( )

Definition at line 33 of file G4Run.cc.

35{ eventVector = new std::vector<const G4Event*>; }
std::vector< const G4Event * > * eventVector
Definition: G4Run.hh:64
G4int numberOfEvent
Definition: G4Run.hh:59
G4DCtable * DCtable
Definition: G4Run.hh:62
G4HCtable * HCtable
Definition: G4Run.hh:61
G4int runID
Definition: G4Run.hh:58
G4int numberOfEventToBeProcessed
Definition: G4Run.hh:60

◆ ~G4Run()

G4Run::~G4Run ( )
virtual

Definition at line 37 of file G4Run.cc.

38{
39 std::vector<const G4Event*>::iterator itr = eventVector->begin();
40 for(;itr!=eventVector->end();itr++)
41 { delete *itr; }
42 delete eventVector;
43}

Member Function Documentation

◆ GetDCtable()

const G4DCtable * G4Run::GetDCtable ( ) const
inline

Definition at line 85 of file G4Run.hh.

86 { return DCtable; }

◆ GetEventVector()

const std::vector< const G4Event * > * G4Run::GetEventVector ( ) const
inline

◆ GetHCtable()

const G4HCtable * G4Run::GetHCtable ( ) const
inline

Definition at line 82 of file G4Run.hh.

83 { return HCtable; }

◆ GetNumberOfEvent()

G4int G4Run::GetNumberOfEvent ( ) const
inline

Definition at line 76 of file G4Run.hh.

77 { return numberOfEvent; }

◆ GetNumberOfEventToBeProcessed()

G4int G4Run::GetNumberOfEventToBeProcessed ( ) const
inline

Definition at line 80 of file G4Run.hh.

◆ GetRandomNumberStatus()

const G4String & G4Run::GetRandomNumberStatus ( ) const
inline

Definition at line 88 of file G4Run.hh.

89 { return randomNumberStatus; }
G4String randomNumberStatus
Definition: G4Run.hh:63

◆ GetRunID()

G4int G4Run::GetRunID ( ) const
inline

Definition at line 73 of file G4Run.hh.

74 { return runID; }

Referenced by G4RunManager::rndmSaveThisEvent(), and G4RunManager::rndmSaveThisRun().

◆ RecordEvent()

void G4Run::RecordEvent ( const G4Event )
virtual

Definition at line 45 of file G4Run.cc.

46{ numberOfEvent++; }

Referenced by G4RunManager::AnalyzeEvent().

◆ SetDCtable()

void G4Run::SetDCtable ( G4DCtable DCtbl)
inline

Definition at line 98 of file G4Run.hh.

99 { DCtable = DCtbl; }

Referenced by G4RunManager::RunInitialization().

◆ SetHCtable()

void G4Run::SetHCtable ( G4HCtable HCtbl)
inline

Definition at line 96 of file G4Run.hh.

97 { HCtable = HCtbl; }

Referenced by G4RunManager::RunInitialization().

◆ SetNumberOfEventToBeProcessed()

void G4Run::SetNumberOfEventToBeProcessed ( G4int  n_ev)
inline

Definition at line 94 of file G4Run.hh.

Referenced by G4RunManager::RunInitialization().

◆ SetRandomNumberStatus()

void G4Run::SetRandomNumberStatus ( G4String st)
inline

Definition at line 100 of file G4Run.hh.

101 { randomNumberStatus = st; }

Referenced by G4RunManager::RunInitialization().

◆ SetRunID()

void G4Run::SetRunID ( G4int  id)
inline

Definition at line 92 of file G4Run.hh.

93 { runID = id; }

Referenced by G4RunManager::RunInitialization().

◆ StoreEvent()

void G4Run::StoreEvent ( G4Event evt)

Definition at line 48 of file G4Run.cc.

49{ eventVector->push_back(evt); }

Referenced by G4RunManager::StackPreviousEvent().

Member Data Documentation

◆ DCtable

G4DCtable* G4Run::DCtable
protected

Definition at line 62 of file G4Run.hh.

Referenced by GetDCtable(), and SetDCtable().

◆ eventVector

std::vector<const G4Event*>* G4Run::eventVector
protected

Definition at line 64 of file G4Run.hh.

Referenced by G4Run(), GetEventVector(), StoreEvent(), and ~G4Run().

◆ HCtable

G4HCtable* G4Run::HCtable
protected

Definition at line 61 of file G4Run.hh.

Referenced by GetHCtable(), and SetHCtable().

◆ numberOfEvent

G4int G4Run::numberOfEvent
protected

Definition at line 59 of file G4Run.hh.

Referenced by GetNumberOfEvent(), and RecordEvent().

◆ numberOfEventToBeProcessed

G4int G4Run::numberOfEventToBeProcessed
protected

Definition at line 60 of file G4Run.hh.

Referenced by GetNumberOfEventToBeProcessed(), and SetNumberOfEventToBeProcessed().

◆ randomNumberStatus

G4String G4Run::randomNumberStatus
protected

Definition at line 63 of file G4Run.hh.

Referenced by GetRandomNumberStatus(), and SetRandomNumberStatus().

◆ runID

G4int G4Run::runID
protected

Definition at line 58 of file G4Run.hh.

Referenced by GetRunID(), and SetRunID().


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