Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# $Id: GNUmakefile,v 1.5 1999/12/01 15:21:06 morita Exp $
|
||||
|
||||
name := G4pgeomGlobal
|
||||
G4ODBMS := true
|
||||
G4ODBMS_INSTALLATION := true
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../../..
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
|
||||
G4OODDLX_BOOT := $(G4TMPSCHEMA_BOOT)
|
||||
|
||||
CPPFLAGS += \
|
||||
-Iinclude \
|
||||
-I$(G4TMPDIR) \
|
||||
-I$(G4INSTALL)/source/persistency/global/include \
|
||||
-I$(G4INSTALL)/source/global/management/include \
|
||||
-I$(G4INSTALL)/source/geometry/management/include \
|
||||
-I$(G4INSTALL)/source/global/HEPGeometry/include
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
include $(G4INSTALL)/config/G4ODBMS_BUILD.gmk
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Explicit header file dependencies:
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
// 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: G4PAffineTransform.ddl,v 1.3.2.1 1999/12/07 20:50:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// persistenet class of G4AffineTransform
|
||||
//
|
||||
// History:
|
||||
// 10.11.99 Y.Morita, initial creation
|
||||
|
||||
#ifndef G4PAFFINETRANSFORM_DDL
|
||||
#define G4PAFFINETRANSFORM_DDL
|
||||
|
||||
#include "HepODBMS/odbms/HepODBMS.h"
|
||||
#include "G4PersistentTypes.hh"
|
||||
#include "G4PersistentSchema.hh"
|
||||
|
||||
class G4AffineTransform;
|
||||
|
||||
class G4PAffineTransform
|
||||
: public HepPersObj
|
||||
{
|
||||
public:
|
||||
G4PAffineTransform( const G4AffineTransform aTrans );
|
||||
~G4PAffineTransform();
|
||||
|
||||
G4AffineTransform MakeTransientObject();
|
||||
|
||||
private:
|
||||
G4Pdouble rxx,rxy,rxz;
|
||||
G4Pdouble ryx,ryy,ryz;
|
||||
G4Pdouble rzx,rzy,rzz;
|
||||
|
||||
G4Pdouble tx,ty,tz;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
// 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: G4PVSolid.ddl,v 1.2.2.1 1999/12/07 20:50:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// class G4PVSolid
|
||||
//
|
||||
// History:
|
||||
// 19.06.98 A.Kimura Converted from G4VSolid.hh
|
||||
// 20.06.98 A.Kimura Clean up
|
||||
|
||||
#ifndef G4PVSOLID_DDL
|
||||
#define G4PVSOLID_DDL
|
||||
|
||||
#include "globals.hh"
|
||||
#include "geomdefs.hh"
|
||||
#include "G4PersistentTypes.hh"
|
||||
#include "G4PersistentSchema.hh"
|
||||
|
||||
#include "G4VSolid.hh"
|
||||
|
||||
#include "HepODBMS/odbms/HepODBMS.h"
|
||||
|
||||
class G4PVSolid;
|
||||
|
||||
class G4PVSolid : public HepPersObj {
|
||||
public:
|
||||
G4PVSolid();
|
||||
G4PVSolid(const G4String& name);
|
||||
virtual ~G4PVSolid();
|
||||
|
||||
virtual G4VSolid* MakeTransientObject() const = 0;
|
||||
|
||||
G4bool operator==( const G4PVSolid& s) const
|
||||
{
|
||||
return (this==&s) ? true : false;
|
||||
}
|
||||
|
||||
G4String GetName() const;
|
||||
void SetName(const G4String& name);
|
||||
|
||||
virtual G4GeometryType GetEntityType() const = 0;
|
||||
|
||||
private:
|
||||
|
||||
G4PString fshapeName; // Name
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,41 @@
|
||||
// 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: G4PAffineTransform.cc,v 1.1.2.1 1999/12/07 20:50:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// class G4PAffineTransform
|
||||
//
|
||||
// History:
|
||||
// 10.11.99 Y.Morita Initial version
|
||||
|
||||
#include "G4PAffineTransform.hh"
|
||||
#include "G4AffineTransform.hh"
|
||||
|
||||
G4PAffineTransform::G4PAffineTransform( const G4AffineTransform aTrans )
|
||||
: rxx(aTrans[0]), rxy(aTrans[1]), rxz(aTrans[2]),
|
||||
ryx(aTrans[4]), ryy(aTrans[5]), ryz(aTrans[6]),
|
||||
rzx(aTrans[8]), rzy(aTrans[9]), rzz(aTrans[10]),
|
||||
tx(aTrans[12]), ty(aTrans[13]), tz(aTrans[14])
|
||||
{;}
|
||||
|
||||
G4PAffineTransform::~G4PAffineTransform()
|
||||
{;}
|
||||
|
||||
G4AffineTransform G4PAffineTransform::MakeTransientObject()
|
||||
{
|
||||
G4RotationMatrix aRot;
|
||||
G4AffineTransform* aTrans = new G4AffineTransform
|
||||
( aRot.rotateAxes(G4ThreeVector(rxx, ryx, rzx),
|
||||
G4ThreeVector(rxy, ryy, rzy),
|
||||
G4ThreeVector(rxz, ryz, rzz)),
|
||||
G4ThreeVector( tx, ty, tz) );
|
||||
G4AffineTransform trans = *aTrans;
|
||||
delete aTrans;
|
||||
return trans;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
// 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: G4PVSolid.cc,v 1.1.2.1 1999/12/07 20:50:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// class G4PVSolid
|
||||
//
|
||||
// Implementation for persistent solid base class
|
||||
//
|
||||
//
|
||||
// History:
|
||||
// 19.06.98 A.Kimura Converted G4VSolid.cc
|
||||
|
||||
#include "G4PVSolid.hh"
|
||||
|
||||
// Constructor (default)
|
||||
G4PVSolid::G4PVSolid()
|
||||
: fshapeName("____________Unknown_____________")
|
||||
{
|
||||
}
|
||||
|
||||
// Constructor
|
||||
// - Copies name
|
||||
G4PVSolid::G4PVSolid(const G4String& name)
|
||||
: fshapeName(name)
|
||||
{
|
||||
}
|
||||
|
||||
// Destructor (virtual)
|
||||
// - Remove ourselves from solid Store
|
||||
G4PVSolid::~G4PVSolid()
|
||||
{
|
||||
}
|
||||
|
||||
// Returns name by value
|
||||
G4String G4PVSolid::GetName() const
|
||||
{
|
||||
return (const char*) fshapeName;
|
||||
}
|
||||
|
||||
void G4PVSolid::SetName(const G4String& name)
|
||||
{
|
||||
fshapeName = name;
|
||||
}
|
||||
Reference in New Issue
Block a user