Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -5,14 +5,25 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PRun.ddl,v 1.6 1999/12/15 14:51:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PRun.ddl,v 1.8 2000/12/15 08:02:21 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
|
||||
// Class Description:
|
||||
//
|
||||
// This is a class which represent a persistent run in Geant4.
|
||||
// A persistent run object is constructed by
|
||||
// G4PersistentRunMan::Store() or read back from a database
|
||||
// by G4PersistentRunMan::Retrieve().
|
||||
// G4PersistentRunMan::Store() passes a pointer of a transient
|
||||
// G4Run object. The G4PRun object construct itself by copying
|
||||
// the data member of G4Run.
|
||||
//
|
||||
|
||||
#ifndef G4PRun_h
|
||||
#define G4PRun_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Pglobals.hh"
|
||||
#include "G4Allocator.hh"
|
||||
|
||||
#include "HepODBMS/odbms/HepODBMS.h"
|
||||
@@ -25,12 +36,15 @@ class G4Run;
|
||||
class G4PRun
|
||||
: public HepPersObj
|
||||
{
|
||||
public:
|
||||
public: // with description
|
||||
G4PRun();
|
||||
G4PRun(const G4Run* aRun);
|
||||
// Constructors.
|
||||
virtual ~G4PRun();
|
||||
|
||||
// Destructor.
|
||||
G4Run* MakeTransientObject();
|
||||
// Construct a transient G4Run object from the data members of
|
||||
// G4PRun.
|
||||
|
||||
protected:
|
||||
G4Pint runID;
|
||||
@@ -38,13 +52,16 @@ class G4PRun
|
||||
// G4HCtable* HCtable;
|
||||
// G4DCtable* DCtable;
|
||||
|
||||
public:
|
||||
public: // with description
|
||||
inline void SetRunID(G4int id)
|
||||
{ runID = id; }
|
||||
inline G4int GetRunID() const
|
||||
{ return runID; }
|
||||
// set and get Run ID.
|
||||
inline G4int GetNumberOfEvent() const
|
||||
{ return numberOfEvent; }
|
||||
// get number of events in this run.
|
||||
|
||||
// inline virtual void RecordEvent(G4Event*)
|
||||
// { numberOfEvent++; }
|
||||
// inline void SetHCtable(G4HCtable* HCtbl)
|
||||
|
||||
@@ -5,15 +5,17 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PersistentRunMan.hh,v 1.8 1999/11/28 21:54:21 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4PersistentRunMan.hh,v 1.9 2000/12/15 07:55:32 morita Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// class G4PersistentRunMan
|
||||
|
||||
// Class Description:
|
||||
// A Utility class to be used by G4PersistencyManager.
|
||||
// Average users do not need to use this class.
|
||||
//
|
||||
// A Utility class for storing and retrieving the run objects.
|
||||
//
|
||||
// This class is not persistent-capable.
|
||||
// This class is not persistent-capable.
|
||||
//
|
||||
|
||||
// Member functions:
|
||||
// =================
|
||||
// G4bool Store(HepDbApplication* dbApp, const G4Run* aRun);
|
||||
|
||||
Reference in New Issue
Block a user