Geant4  10.02.p03
B1ConRun Class Reference

#include <B1ConRun.hh>

Inheritance diagram for B1ConRun:
Collaboration diagram for B1ConRun:

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 ()
 
G4double GetEdep () const
 
G4double GetEdep2 () const
 
 B1Run ()
 
virtual ~B1Run ()
 
void AddEdep (G4double edep)
 
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
 

Private Attributes

std::vector< G4double > fEdepEventVector
 

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::B1ConRun ( )

Definition at line 35 of file B1ConRun.cc.

36 : B1Run(),
38 {}
std::vector< G4double > fEdepEventVector
Definition: B1ConRun.hh:57

◆ ~B1ConRun()

B1ConRun::~B1ConRun ( )
virtual

Definition at line 42 of file B1ConRun.cc.

43 {}

Member Function Documentation

◆ AddEdep()

void B1ConRun::AddEdep ( G4double  edep)
virtual

Reimplemented from B1Run.

Definition at line 60 of file B1ConRun.cc.

61 {
62  // Update data in base class
64 
65  fEdepEventVector.push_back(edep);
66 }
std::vector< G4double > fEdepEventVector
Definition: B1ConRun.hh:57
Double_t edep
virtual void AddEdep(G4double edep)
Here is the call graph for this function:

◆ GetEdepPerEvent()

G4double B1ConRun::GetEdepPerEvent ( G4int  i) const
inline

Definition at line 54 of file B1ConRun.hh.

54 { return fEdepEventVector[i]; }
std::vector< G4double > fEdepEventVector
Definition: B1ConRun.hh:57
Here is the caller graph for this function:

◆ GetNumberOfEvent()

G4int B1ConRun::GetNumberOfEvent ( ) const
inline

Definition at line 53 of file B1ConRun.hh.

53 { return (G4int)fEdepEventVector.size(); }
std::vector< G4double > fEdepEventVector
Definition: B1ConRun.hh:57
int G4int
Definition: G4Types.hh:78
Here is the caller graph for this function:

◆ Merge()

void B1ConRun::Merge ( const G4Run *  aRun)
virtual

Reimplemented from B1Run.

Definition at line 47 of file B1ConRun.cc.

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 }
std::vector< G4double > fEdepEventVector
Definition: B1ConRun.hh:57
virtual void Merge(const G4Run *)
Here is the call graph for this function:

Member Data Documentation

◆ fEdepEventVector

std::vector<G4double> B1ConRun::fEdepEventVector
private

Definition at line 57 of file B1ConRun.hh.


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