Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
+24 -11
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Run.hh,v 1.1 1999/01/07 16:14:15 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4Run.hh,v 1.2.4.1 1999/12/07 20:52:58 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4Run_h
@@ -19,6 +19,13 @@ class G4Event;
class G4HCtable;
class G4DCtable;
// class description:
//
// This class represents a run. An object of this class is constructed
// and deleted by G4RunManager. Basically the user should use only the
// get methods. All properties are set by G4RunManager.
//
class G4Run
{
public:
@@ -33,23 +40,29 @@ class G4Run
G4HCtable* HCtable;
G4DCtable* DCtable;
public: // with description
inline G4int GetRunID() const
{ return runID; }
// Returns the run ID. Run ID is set by G4RunManager.
inline G4int GetNumberOfEvent() const
{ return numberOfEvent; }
// Returns number of events processed in this run. The number is
// incremented at the end of each event processing.
inline const G4HCtable* GetHCtable() const
{ return HCtable; }
// List of names of hits collection
inline const G4DCtable* GetDCtable() const
{ return DCtable; }
// List of names of digi collection
public:
inline void SetRunID(G4int id)
{ runID = id; }
inline G4int GetRunID() const
{ return runID; }
inline G4int GetNumberOfEvent() const
{ return numberOfEvent; }
inline virtual void RecordEvent(G4Event*)
{ numberOfEvent++; }
inline void SetHCtable(G4HCtable* HCtbl)
{ HCtable = HCtbl; }
inline const G4HCtable* GetHCtable() const
{ return HCtable; }
inline void SetDCtable(G4DCtable* DCtbl)
{ DCtable = DCtbl; }
inline const G4DCtable* GetDCtable() const
{ return DCtable; }
};
extern G4Allocator<G4Run> aRunAllocator;