Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
B1ConRun Class Reference

#include <B1ConRun.hh>

Inheritance diagram for B1ConRun:
B1Run G4Run G4Run

Public Member Functions

 B1ConRun ()
 
virtual ~B1ConRun ()
 
virtual void Merge (const G4Run *)
 
virtual void AddEdep (G4double edep)
 
G4int GetNumberOfEvent () const
 
G4double GetEdepPerEvent (G4int i) const
 
- Public Member Functions inherited from B1Run
 B1Run ()
 
virtual ~B1Run ()
 
void AddEdep (G4double edep)
 
G4double GetEdep () const
 
G4double GetEdep2 () const
 
 B1Run ()
 
virtual ~B1Run ()
 
G4double GetEdep () const
 
G4double GetEdep2 () const
 
- Public Member Functions inherited from G4Run
 G4Run ()
 
virtual ~G4Run ()
 
virtual void RecordEvent (const G4Event *)
 
G4int GetRunID () const
 
G4int GetNumberOfEvent () const
 
G4int GetNumberOfEventToBeProcessed () const
 
const G4HCtable * GetHCtable () const
 
const G4DCtable * GetDCtable () const
 
const G4String & GetRandomNumberStatus () 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
 

Additional Inherited Members

- Protected Attributes inherited from G4Run
G4int runID
 
G4int numberOfEvent
 
G4int numberOfEventToBeProcessed
 
G4HCtable * HCtable
 
G4DCtable * DCtable
 
G4String randomNumberStatus
 
std::vector< const G4Event * > * eventVector
 

Detailed Description

Run class which extends B1Run

Definition at line 42 of file B1ConRun.hh.

Constructor & Destructor Documentation

B1ConRun::B1ConRun ( )

Definition at line 35 of file B1ConRun.cc.

36 : B1Run(),
37  fEdepEventVector()
38 {}
B1ConRun::~B1ConRun ( )
virtual

Definition at line 42 of file B1ConRun.cc.

43 {}

Member Function Documentation

void B1ConRun::AddEdep ( G4double  edep)
virtual

Reimplemented from B1Run.

Definition at line 60 of file B1ConRun.cc.

References B1Run::AddEdep().

61 {
62  // Update data in base class
63  B1Run::AddEdep(edep);
64 
65  fEdepEventVector.push_back(edep);
66 }
void AddEdep(G4double edep)
G4double B1ConRun::GetEdepPerEvent ( G4int  i) const
inline

Definition at line 54 of file B1ConRun.hh.

Referenced by B1ConRunAction::EndOfRunAction().

54 { return fEdepEventVector[i]; }
G4int B1ConRun::GetNumberOfEvent ( ) const
inline

Definition at line 53 of file B1ConRun.hh.

Referenced by B1ConRunAction::EndOfRunAction().

53 { return (G4int)fEdepEventVector.size(); }
int G4int
Definition: G4Types.hh:78
void B1ConRun::Merge ( const G4Run *  aRun)
virtual

Reimplemented from B1Run.

Definition at line 47 of file B1ConRun.cc.

References B1Run::Merge().

48 {
49  // Merge data in base class
50  B1Run::Merge(aRun);
51 
52  const B1ConRun* localRun = static_cast<const B1ConRun*>(aRun);
53  for ( size_t i = 0 ; i != localRun->fEdepEventVector.size() ; i++ ) {
54  fEdepEventVector.push_back( localRun->fEdepEventVector[i] );
55  }
56 }
virtual void Merge(const G4Run *)

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