Geant4  10.02.p03
B1Run Class Reference

#include <B1Run.hh>

Inheritance diagram for B1Run:
Collaboration diagram for B1Run:

Public Member Functions

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

Private Attributes

G4double fEdep
 
G4double fEdep2
 

Additional Inherited Members

- Protected Attributes inherited from G4Run
G4int runID
 
G4int numberOfEvent
 
G4int numberOfEventToBeProcessed
 
G4HCtableHCtable
 
G4DCtableDCtable
 
G4String randomNumberStatus
 
std::vector< const G4Event * > * eventVector
 

Detailed Description

Run class

Definition at line 42 of file analysis/B1Con/include/B1Run.hh.

Constructor & Destructor Documentation

◆ B1Run() [1/2]

B1Run::B1Run ( )

Definition at line 35 of file analysis/B1Con/src/B1Run.cc.

36 : G4Run(),
37  fEdep(0.),
38  fEdep2(0.)
39 {}
G4Run()
Definition: G4Run.cc:34

◆ ~B1Run() [1/2]

B1Run::~B1Run ( )
virtual

Definition at line 43 of file analysis/B1Con/src/B1Run.cc.

44 {}

◆ B1Run() [2/2]

B1Run::B1Run ( )

◆ ~B1Run() [2/2]

virtual B1Run::~B1Run ( )
virtual

Member Function Documentation

◆ AddEdep() [1/2]

void B1Run::AddEdep ( G4double  edep)
virtual

Reimplemented in B1ConRun.

Definition at line 59 of file analysis/B1Con/src/B1Run.cc.

60 {
61  fEdep += edep;
62  fEdep2 += edep*edep;
63 }
Double_t edep
Here is the caller graph for this function:

◆ AddEdep() [2/2]

void B1Run::AddEdep ( G4double  edep)

◆ GetEdep() [1/2]

G4double B1Run::GetEdep ( ) const
inline

Definition at line 54 of file visualization/userVisAction/include/B1Run.hh.

54 { return fEdep; }

◆ GetEdep() [2/2]

G4double B1Run::GetEdep ( ) const
inline

Definition at line 54 of file analysis/B1Con/include/B1Run.hh.

54 { return fEdep; }
Here is the caller graph for this function:

◆ GetEdep2() [1/2]

G4double B1Run::GetEdep2 ( ) const
inline

Definition at line 55 of file analysis/B1Con/include/B1Run.hh.

55 { return fEdep2; }
Here is the caller graph for this function:

◆ GetEdep2() [2/2]

G4double B1Run::GetEdep2 ( ) const
inline

Definition at line 55 of file visualization/userVisAction/include/B1Run.hh.

55 { return fEdep2; }

◆ Merge() [1/2]

void B1Run::Merge ( const G4Run run)
virtual

Reimplemented from G4Run.

Reimplemented in B1ConRun.

Definition at line 48 of file analysis/B1Con/src/B1Run.cc.

49 {
50  const B1Run* localRun = static_cast<const B1Run*>(run);
51  fEdep += localRun->fEdep;
52  fEdep2 += localRun->fEdep2;
53 
54  G4Run::Merge(run);
55 }
virtual void Merge(const G4Run *)
Definition: G4Run.cc:54
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Merge() [2/2]

virtual void B1Run::Merge ( const G4Run )
virtual

Reimplemented from G4Run.

Reimplemented in B1ConRun.

Member Data Documentation

◆ fEdep

G4double B1Run::fEdep
private

Definition at line 58 of file analysis/B1Con/include/B1Run.hh.

◆ fEdep2

G4double B1Run::fEdep2
private

Definition at line 59 of file analysis/B1Con/include/B1Run.hh.


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