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
+6 -5
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: G4PRun.ddl,v 1.1 1999/01/07 16:10:58 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4PRun.ddl,v 1.5.2.1 1999/12/07 20:50:16 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4PRun_h
@@ -18,10 +18,9 @@
#include "HepODBMS/odbms/HepODBMS.h"
#include "G4PersistentTypes.hh"
#include "G4PersistentSchema.hh"
class G4Run;
//class G4HCtable;
//class G4DCtable;
class G4PRun
: public HepPersObj
@@ -31,6 +30,8 @@ class G4PRun
G4PRun(const G4Run* aRun);
virtual ~G4PRun();
G4Run* MakeTransientObject();
protected:
G4Pint runID;
G4Pint numberOfEvent;
@@ -0,0 +1,77 @@
// This code implementation is the intellectual property of
// 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: G4PersistentRunMan.hh,v 1.8 1999/11/28 21:54:21 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4PersistentRunMan
//
// A Utility class for storing and retrieving the run objects.
//
// This class is not persistent-capable.
//
// Member functions:
// =================
// G4bool Store(HepDbApplication* dbApp, const G4Run* aRun);
// Store aRun and associated objects into database.
// G4bool Retrieve(HepDbApplication* dbApp, G4Run*& aRun);
// Retrieve aRun and associated objects into database.
// void SetContainer(HepContainerRef container);
// Set Run Container reference.
//
// Member data:
// ============
// HepContainerRef f_container;
// Reference to the event container in the database.
// HepContainerRef f_currentContainer;
// Reference to the current scan scope in Retrieve().
//
// History:
// 98.10.30 Y.Morita Splited from G4PersistencyManager
#ifndef G4PERSISTENTRUNMAN_H
#define G4PERSISTENTRUNMAN_H 1
#include "globals.hh"
#include "G4VPersistentSubMan.hh"
#include "G4VPersistentSubDbMan.hh"
#include "G4PRun.hh"
class HepDbApplication;
class G4Run;
class G4PersistentRunMan
: public G4VPersistentSubMan, public G4VPersistentSubDbMan
{
friend class G4PersistencyManager;
friend class G4TransactionManager;
private:
G4PersistentRunMan();
~G4PersistentRunMan();
private:
G4int f_currentRunID;
HepRef(G4PRun) f_currentPRun;
public:
inline G4int CurrentRunID()
{ return f_currentRunID; }
protected:
// interface with G4TransactionManager
private:
// interface with G4PersistencyManager
G4bool Store( HepDbApplication* dbApp, const G4Run* aRun);
G4bool Retrieve( HepDbApplication* dbApp, G4Run*& aRun );
};
#endif