Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3DetTable.hh,v 1.6.4.1 2001/06/28 19:08:00 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3DetTable.hh,v 1.7 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// G3DetTable class
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3DetTableEntry.hh,v 1.3.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3DetTableEntry.hh,v 1.4 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// G3DetTableEntry class
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3Division.hh,v 1.4.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3Division.hh,v 1.7 2001/11/21 14:25:30 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -63,7 +63,7 @@ class G3Division
// methods
void UpdateVTE();
G4VPhysicalVolume* CreatePVReplica();
void CreatePVReplica();
private:
+4 -6
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3EleTable.hh,v 1.5.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3EleTable.hh,v 1.7 2001/07/16 15:38:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -39,8 +39,6 @@
#ifndef G4ELETABLE_HH
#define G4ELETABLE_HH 1
#include "g4rw/ctoken.h"
#include "g4rw/tpordvec.h"
#include "globals.hh"
#include "G4Element.hh"
@@ -56,13 +54,13 @@ public: // with description
private:
void LoadUp();
int parse(G4double& Z, char* name, char* sym, G4double& A);
G4int parse(G4double& Z, char* name, char* sym, G4double& A);
private:
char** _EleNames;
G4Element** _Ele;
int _MaxEle;
G4int _MaxEle;
};
+4 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3G4Interface.hh,v 1.7.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3G4Interface.hh,v 1.9 2001/11/08 16:07:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// Interfaces for G3 equivalent routines
//
@@ -45,6 +45,8 @@ void G4gsposp(G4String name, G4int num, G4String moth,
G4double x, G4double y, G4double z, G4int irot,
G4String only, G4double Rpar[], G4int npar);
void G4gsbool(G4String volName, G4String manyVolName);
void G4gsrotm(G4int irot, G4double theta1, G4double phi1,
G4double theta2, G4double phi2, G4double theta3, G4double phi3);
+4 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3MatTable.hh,v 1.9.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3MatTable.hh,v 1.11 2001/07/16 15:38:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -41,11 +41,11 @@
#include "globals.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4Material;
typedef G4RWTPtrOrderedVector<G3MatTableEntry> G3MaterialVector;
typedef G4std::vector<G3MatTableEntry*> G3MaterialVector;
class G3MatTable
{
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3MatTableEntry.hh,v 1.4.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3MatTableEntry.hh,v 1.5 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+4 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3MedTable.hh,v 1.8.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3MedTable.hh,v 1.10 2001/07/16 15:38:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -43,13 +43,13 @@
#include "globals.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4Material;
class G4MagneticField;
class G4UserLimits;
typedef G4RWTPtrOrderedVector<G3MedTableEntry> G3MediumVector;
typedef G4std::vector<G3MedTableEntry*> G3MediumVector;
class G3MedTable
{
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3MedTableEntry.hh,v 1.4.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3MedTableEntry.hh,v 1.5 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3PartTable.hh,v 1.7.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3PartTable.hh,v 1.8 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3Pos.hh,v 1.9.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3Pos.hh,v 1.10 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+4 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3RotTable.hh,v 1.11.4.1 2001/06/28 19:08:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3RotTable.hh,v 1.13 2001/07/16 15:38:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -41,11 +41,11 @@
#include "globals.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4Material;
typedef G4RWTPtrOrderedVector<G3RotTableEntry> G3RotMatrixVector;
typedef G4std::vector<G3RotTableEntry*> G3RotMatrixVector;
class G3RotTable
{
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3RotTableEntry.hh,v 1.4.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3RotTableEntry.hh,v 1.5 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+4 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3SensVolVector.hh,v 1.3.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3SensVolVector.hh,v 1.5 2001/07/16 15:38:18 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// vector of logical volumes that were defined with
// tracking medium with ISVOL=1
@@ -32,10 +32,10 @@
#ifndef G3SENSVOLVECTOR_HH
#define G3SENSVOLVECTOR_HH 1
#include "g4rw/tpordvec.h"
#include "g4std/vector"
#include "G4LogicalVolume.hh"
typedef G4RWTPtrOrderedVector<G4LogicalVolume> G3SensVolVector;
typedef G4std::vector<G4LogicalVolume*> G3SensVolVector;
extern G3SensVolVector G3SensVol;
#endif
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3VolTable.hh,v 1.15.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3VolTable.hh,v 1.16 2001/07/11 09:58:58 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
+16 -10
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3VolTableEntry.hh,v 1.4.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3VolTableEntry.hh,v 1.7 2001/11/08 16:07:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class description:
@@ -69,7 +69,7 @@
#include "globals.hh"
#include "G3Pos.hh"
#include "G3Division.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4LogicalVolume;
class G4Material;
@@ -80,8 +80,8 @@ class G3VolTableEntry
public: // with description
G3VolTableEntry(G4String& vname, G4String& shape, G4double* rpar,
G4int npar, G4int nmed, G4VSolid* solid,
G4bool hasNegPars);
G4int npar, G4int nmed, G4VSolid* solid,
G4bool hasNegPars);
virtual ~G3VolTableEntry();
// operators
@@ -92,6 +92,7 @@ class G3VolTableEntry
void AddDaughter(G3VolTableEntry* aDaughter);
void AddMother(G3VolTableEntry* aDaughter);
void AddClone(G3VolTableEntry* aDaughter);
void AddOverlap(G3VolTableEntry* aOverlap);
void ReplaceDaughter(G3VolTableEntry* vteOld, G3VolTableEntry* vteNew);
void ReplaceMother(G3VolTableEntry* vteOld, G3VolTableEntry* vteNew);
G3VolTableEntry* FindDaughter(const G4String& vname);
@@ -107,6 +108,7 @@ class G3VolTableEntry
void SetNRpar(G4int npar, G4double* Rpar);
void SetDivision(G3Division* division);
void SetHasNegPars(G4bool hasNegPars);
void SetHasMANY(G4bool hasMANY);
void ClearG3PosCopy(G4int copy);
void ClearDivision();
@@ -120,20 +122,22 @@ class G3VolTableEntry
G3Pos* GetG3PosCopy(G4int copy=0);
G3Division* GetDivision();
G4bool HasNegPars();
G4bool HasMANY();
G4VSolid* GetSolid();
G4LogicalVolume* GetLV();
G4int GetNoDaughters();
G4int GetNoMothers();
G4int GetNoClones();
G4int GetNoOverlaps();
G3VolTableEntry* GetDaughter(G4int i);
G3VolTableEntry* GetMother(G4int i);
G3VolTableEntry* GetMother();
// return the first mother - to be removed
G3VolTableEntry* GetClone(G4int i);
G3VolTableEntry* GetMasterClone();
G4std::vector<G3VolTableEntry*>* GetOverlaps();
private:
G4String fVname;
G4String fShape;
G4double* fRpar;
@@ -142,10 +146,12 @@ class G3VolTableEntry
G4VSolid* fSolid;
G4LogicalVolume* fLV;
G4bool fHasNegPars;
G4RWTPtrOrderedVector<G3VolTableEntry> fDaughters;
G4RWTPtrOrderedVector<G3VolTableEntry> fMothers;
G4RWTPtrOrderedVector<G3VolTableEntry> fClones;
G4RWTPtrOrderedVector<G3Pos> fG3Pos;
G4bool fHasMANY;
G4std::vector<G3VolTableEntry*> fDaughters;
G4std::vector<G3VolTableEntry*> fMothers;
G4std::vector<G3VolTableEntry*> fClones;
G4std::vector<G3VolTableEntry*> fOverlaps;
G4std::vector<G3Pos*> fG3Pos;
G3Division* fDivision;
};
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3toG4.hh,v 1.6.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3toG4.hh,v 1.7 2001/07/11 09:58:58 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// modified by I.Hrivnacova, 27 Sep 99
+2 -2
View File
@@ -21,8 +21,8 @@
* ********************************************************************
*
*
* $Id: G3toG4.inc,v 1.2.8.1 2001/06/28 19:08:02 gunter Exp $
* GEANT4 tag $Name: $
* $Id: G3toG4.inc,v 1.3 2001/07/11 09:58:58 gunter Exp $
* GEANT4 tag $Name: geant4-04-00 $
*
integer maxlines
parameter (maxlines = 750) ! max no. of cmd lines per C++ source file
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3toG4BuildTree.hh,v 1.6.2.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3toG4BuildTree.hh,v 1.7 2001/07/11 09:58:58 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class Description:
+82
View File
@@ -0,0 +1,82 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * 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: G3toG4MANY.hh,v 1.1 2001/11/08 16:07:59 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class Description:
//
// Definition of global methods:
//
// void G3toG4MANY(G3VolTableEntry* curVTE);
//
// void MakeBooleanSolids(G3VolTableEntry* curVTE,
// G3VolTableEntryVector* overlaps,
// const G4Transform3D& transform);
//
// void SubstractSolids(G3VolTableEntry* vte1,
// G3VolTableEntry* vte2,
// G4int copy,
// const G4Transform3D& transform);
//
// G4Transform3D GetTransform3D(G3Pos*);
//
// MANY positions are resolved in G3toG4MANY() function, which has to be
// processed before G3toG4BuildTree() (it is not called by default).
// In order to resolve MANY, the user code has to provide additional info
// using G4gsbool(G4String volName, G4String manyVolName) function, for
// all overlapping volumes. Daughters of overlapping volumes are then
// resolved automatically and should not be specified via Gsbool.
//
// Limitation: a volume with a MANY position can have only this one
// ---------- position; if more than one position is needed a new volume
// has to be defined (gsvolu) for each position.
// ----------------------
//
// By I.Hrivnacova, 22.10.01
#ifndef G3TOG4_MANY_HH
#define G3TOG4_MANY_HH 1
#include "g4std/vector"
#include "G3VolTableEntry.hh"
#include "G4Transform3D.hh"
typedef G4std::vector<G3VolTableEntry*> G3VolTableEntryVector;
void G3toG4MANY(G3VolTableEntry* curVTE);
void MakeBooleanSolids(G3VolTableEntry* curVTE,
G3VolTableEntryVector* overlaps,
const G4Transform3D& transform);
void SubstractSolids(G3VolTableEntry* vte1,
G3VolTableEntry* vte2,
G4int copy,
const G4Transform3D& transform);
G4Transform3D GetTransform3D(G3Pos*);
#endif
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3toG4MakeSolid.hh,v 1.5.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3toG4MakeSolid.hh,v 1.6 2001/07/11 09:58:58 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// ----------------------
// Class Description:
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G3toG4RotationMatrix.hh,v 1.4.4.1 2001/06/28 19:08:02 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G3toG4RotationMatrix.hh,v 1.5 2001/07/11 09:58:58 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// ----------------------
// Class description:
//
+2 -2
View File
@@ -21,8 +21,8 @@
* ********************************************************************
*
*
* $Id: gcbank.inc,v 1.2.8.1 2001/06/28 19:08:02 gunter Exp $
* GEANT4 tag $Name: $
* $Id: gcbank.inc,v 1.3 2001/07/11 09:58:58 gunter Exp $
* GEANT4 tag $Name: geant4-04-00 $
*
INTEGER IQ,LQ,NZEBRA,IXSTOR,IXDIV,IXCONS,LMAIN,LR1,JCG
INTEGER KWBANK,KWWORK,IWS