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
@@ -0,0 +1,33 @@
// 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: G4DatabaseTypes.hh,v 1.3 1999/11/28 21:54:19 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// file description:
//
// This file defines types of database and transaction mode
// supported by G4TransactionManager.
//
// History:
// 99.11.26 Y.Morita Initial version
#ifndef G4DatabaseTypes_HH
#define G4DatabaseTypes_HH 1
enum ETypeOfDB { kRunDB, kEventDB, kGeomDB };
enum ETransactionMode { kUpdate, kRead };
enum ESustainedState {
kAlreadySelected,
kCannotOverride,
kStartNewSustained,
kCommitAndStartNonSustained,
kStartNonSustained };
#endif
@@ -0,0 +1,68 @@
// 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: G4PersistentSchema.hh,v 1.5 1999/12/05 22:32:26 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// Persistent-capable schema definitions required for ooddlx processor
//
// History:
// 19.11.99 Y.Morita - Created
#ifndef G4_PERSISTENTSCHEMA_HH
#define G4_PERSISTENTSCHEMA_HH
#ifdef OO_DDL_TRANSLATION
// make forward declaration of persistent classes
// in the name space "Geant4"
#pragma ooschema Geant4
class G4PDCofThisEvent;
class G4PVDigit;
// G4VDigi is embedded in G4PVDigit
class G4VDigi;
class G4PVDigitsCollection;
class G4PHCofThisEvent;
class G4PVHit;
// G4VHit is embedded in G4PVHit
class G4VHit;
class G4PVHitsCollection;
class G4PEvent;
class G4PPrimaryVertex;
class G4PPrimaryParticle;
class G4PAffineTransform;
class G4PVSolid;
class G4PGeometryObjectMap;
class G4PLogicalVolume;
class G4PPVParameterised;
class G4PPVPlacement;
class G4PPVReplica;
class G4PVPhysicalVolume;
class G4PBooleanSolid;
class G4PDisplacedSolid;
class G4PIntersectionSolid;
class G4PSubtractionSolid;
class G4PUnionSolid;
class G4PBox;
class G4PCSGSolid;
class G4PCons;
class G4PHype;
class G4PPara;
class G4PSphere;
class G4PTorus;
class G4PTrap;
class G4PTrd;
class G4PTubs;
class G4PRun;
// back to the default name space
#pragma ooschema
#endif
#endif /* G4_PERSISTENTSCHEMA_HH */
@@ -0,0 +1,29 @@
// 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: G4PersistentTypes.hh,v 1.1.4.1 1999/12/07 20:50:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// Persistent-capable typedefs for Geant4/Persistency category
//
// History:
// 15.06.98 Y.Morita - Created
#ifndef G4_PERSISTENT_TYPES_HH
#define G4_PERSISTENT_TYPES_HH
// Typedefs to decouple from library classes
#include <HepODBMS/odbms/HepODBMS.h>
typedef d_String G4PString;
typedef d_Double G4Pdouble;
typedef d_Float G4Pfloat;
typedef d_Long G4Pint;
typedef d_Long G4Plong;
#endif /* G4_PERSISTENT_TYPES_HH */
@@ -0,0 +1,95 @@
// 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: G4VPersistentSubDbMan.hh,v 1.3 1999/11/28 21:54:19 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4VPersistentSubDbMan
//
// Abstract class to be used by G4PersistencyManager
// and G4TransactionManager
//
// Member functions:
// =================
// void SetDB(HepDatabaseRef aDB);
// Set DB reference.
// HepDatabaseRef GetDB();
// Get DB reference.
// void SetContainer(HepContainerRef container);
// Set Container reference.
// HepContainerRef GetContainer();
// Get Container reference.
//
// Note: inherited concrete class should implement Store() and Retrieve()
// and also should set f_currentContainer in Retieve()
// Store(HepDbApplication* dbApp, const object_type* object);
// Retrieve(HepDbApplication* dbApp, object_type*& object);
//
// Member data:
// ============
// HepContainerRef f_DB;
// Reference to the database.
// HepContainerRef f_container;
// Reference to the container in the database.
// HepContainerRef f_currentContainer;
// Reference to the current scan scope in Retrieve().
//
// example in a piece of Retrive():
// if( f_container != f_currentContainer )
// {
// f_currentContainer = f_container;
// pRun_iterator.scan(f_currentContainer);
// }
//
// History:
// 99.11.25 Y.Morita Initial creation
#ifndef G4VPersistentSubDbMan_hh
#define G4VPersistentSubDbMan_hh 1
#include "globals.hh"
#include "HepODBMS/odbms/HepODBMS.h"
#include "G4PersistentTypes.hh"
#include "G4DatabaseTypes.hh"
class G4VPersistentSubDbMan
{
friend class G4PersistencyManager;
friend class G4TransactionManager;
protected:
// to be constructed by G4PersistencyManager only
G4VPersistentSubDbMan();
virtual ~G4VPersistentSubDbMan();
protected:
// interface with G4PersistencyManager
// Store(HepDbApplication* dbApp, const object_type* object);
// Retrieve(HepDbApplication* dbApp, object_type*& object);
protected:
// interface with G4TransactionManager
inline void SetDB(HepDatabaseRef aDB)
{ f_DB = aDB; }
inline void SetContainer(HepContainerRef container)
{ f_container = container; }
public:
inline HepDatabaseRef GetDB()
{ return f_DB; }
inline HepContainerRef GetContainer()
{ return f_container; }
protected:
HepDatabaseRef f_DB;
HepContainerRef f_container;
HepContainerRef f_currentContainer;
};
#endif
@@ -0,0 +1,60 @@
// 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: G4VPersistentSubMan.hh,v 1.2 1999/11/25 11:33:07 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// class G4VPersistentSubMan
//
// Abstract submanager class to be used by G4PersistencyManager
//
// Member functions:
// =================
// virtual void SetVerboseLevel(G4int verboseLevel)
// Set verbose level
// inline G4Pint GetVerboseLevel()
// Get verbose level
//
// Member data:
// ============
// G4int f_verboseLevel;
// Internal flag for verbose message printing
//
// History:
// 98.10.30 Y.Morita Splited from G4PersistencyManager
#ifndef G4VPersistentSubMan_hh
#define G4VPersistentSubMan_hh 1
#include "globals.hh"
#include "G4PersistentTypes.hh"
class G4VPersistentSubMan
{
friend class G4PersistencyManager;
protected:
// to be used by G4PersistencyManager only
G4VPersistentSubMan();
virtual ~G4VPersistentSubMan();
protected:
// interface with G4PersistencyManager
inline virtual void SetVerboseLevel(G4int verboseLevel)
{ f_verboseLevel = verboseLevel; }
public:
inline G4Pint GetVerboseLevel()
{ return f_verboseLevel; };
protected:
G4int f_verboseLevel;
};
#endif