Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Run Class Reference

#include <G4Run.hh>

Inheritance diagram for G4Run:
Collaboration diagram for G4Run:

Public Member Functions

 G4Run ()
 
virtual ~G4Run ()
 
virtual void RecordEvent (const G4Event *)
 
virtual void Merge (const G4Run *)
 
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 ( )

Definition at line 34 of file G4Run.cc.

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

Definition at line 38 of file G4Run.cc.

39 {
40  // Objects made by local thread should not be deleted by the master thread
42  if(rmType != G4RunManager::masterRM)
43  {
44  std::vector<const G4Event*>::iterator itr = eventVector->begin();
45  for(;itr!=eventVector->end();itr++)
46  { delete *itr; }
47  }
48  delete eventVector;
49 }
std::vector< const G4Event * > * eventVector
Definition: G4Run.hh:64
RMType GetRunManagerType() const
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79

Here is the call graph for this function:

Member Function Documentation

const G4DCtable* G4Run::GetDCtable ( ) const
inline

Definition at line 88 of file G4Run.hh.

89  { return DCtable; }
G4DCtable * DCtable
Definition: G4Run.hh:62
const std::vector<const G4Event*>* G4Run::GetEventVector ( ) const
inline

Definition at line 115 of file G4Run.hh.

116  { return eventVector; }
std::vector< const G4Event * > * eventVector
Definition: G4Run.hh:64

Here is the caller graph for this function:

const G4HCtable* G4Run::GetHCtable ( ) const
inline

Definition at line 85 of file G4Run.hh.

86  { return HCtable; }
G4HCtable * HCtable
Definition: G4Run.hh:61
G4int G4Run::GetNumberOfEvent ( ) const
inline

Definition at line 79 of file G4Run.hh.

80  { return numberOfEvent; }
G4int numberOfEvent
Definition: G4Run.hh:59

Here is the caller graph for this function:

G4int G4Run::GetNumberOfEventToBeProcessed ( ) const
inline

Definition at line 83 of file G4Run.hh.

84  { return numberOfEventToBeProcessed; }
G4int numberOfEventToBeProcessed
Definition: G4Run.hh:60

Here is the caller graph for this function:

const G4String& G4Run::GetRandomNumberStatus ( ) const
inline

Definition at line 91 of file G4Run.hh.

92  { return randomNumberStatus; }
G4String randomNumberStatus
Definition: G4Run.hh:63
G4int G4Run::GetRunID ( ) const
inline

Definition at line 76 of file G4Run.hh.

77  { return runID; }
G4int runID
Definition: G4Run.hh:58

Here is the caller graph for this function:

void G4Run::Merge ( const G4Run right)
virtual

Reimplemented in Run, TSRun, RE02Run, B01Run, B02Run, B03Run, DicomRun, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, Run, G4RTRun, Run, Run, Run, Run, Run, ElectronRun, B3bRun, B1ConRun, B1Run, RE06Run, B1Run, and Run.

Definition at line 54 of file G4Run.cc.

55 {
56  numberOfEvent += right->numberOfEvent;
57  std::vector<const G4Event*>::iterator itr = right->eventVector->begin();
58  for(;itr!=right->eventVector->end();itr++)
59  { eventVector->push_back(*itr); }
60 }
std::vector< const G4Event * > * eventVector
Definition: G4Run.hh:64
G4int numberOfEvent
Definition: G4Run.hh:59

Here is the caller graph for this function:

void G4Run::RecordEvent ( const G4Event )
virtual

Reimplemented in RE02Run, TSRun, DicomRun, B01Run, B02Run, B03Run, Run, G4RTRun, ElectronRun, B3bRun, and RE06Run.

Definition at line 51 of file G4Run.cc.

52 { numberOfEvent++; }
G4int numberOfEvent
Definition: G4Run.hh:59

Here is the caller graph for this function:

void G4Run::SetDCtable ( G4DCtable DCtbl)
inline

Definition at line 101 of file G4Run.hh.

102  { DCtable = DCtbl; }
G4DCtable * DCtable
Definition: G4Run.hh:62

Here is the caller graph for this function:

void G4Run::SetHCtable ( G4HCtable HCtbl)
inline

Definition at line 99 of file G4Run.hh.

100  { HCtable = HCtbl; }
G4HCtable * HCtable
Definition: G4Run.hh:61

Here is the caller graph for this function:

void G4Run::SetNumberOfEventToBeProcessed ( G4int  n_ev)
inline

Definition at line 97 of file G4Run.hh.

98  { numberOfEventToBeProcessed = n_ev; }
G4int numberOfEventToBeProcessed
Definition: G4Run.hh:60

Here is the caller graph for this function:

void G4Run::SetRandomNumberStatus ( G4String st)
inline

Definition at line 103 of file G4Run.hh.

104  { randomNumberStatus = st; }
G4String randomNumberStatus
Definition: G4Run.hh:63

Here is the caller graph for this function:

void G4Run::SetRunID ( G4int  id)
inline

Definition at line 95 of file G4Run.hh.

96  { runID = id; }
G4int runID
Definition: G4Run.hh:58

Here is the caller graph for this function:

void G4Run::StoreEvent ( G4Event evt)

Definition at line 62 of file G4Run.cc.

63 { eventVector->push_back(evt); }
std::vector< const G4Event * > * eventVector
Definition: G4Run.hh:64

Here is the caller graph for this function:

Member Data Documentation

G4DCtable* G4Run::DCtable
protected

Definition at line 62 of file G4Run.hh.

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

Definition at line 64 of file G4Run.hh.

G4HCtable* G4Run::HCtable
protected

Definition at line 61 of file G4Run.hh.

G4int G4Run::numberOfEvent
protected

Definition at line 59 of file G4Run.hh.

G4int G4Run::numberOfEventToBeProcessed
protected

Definition at line 60 of file G4Run.hh.

G4String G4Run::randomNumberStatus
protected

Definition at line 63 of file G4Run.hh.

G4int G4Run::runID
protected

Definition at line 58 of file G4Run.hh.


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