Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+28 -15
View File
@@ -5,37 +5,50 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3DetTable.hh,v 2.1 1998/07/12 02:54:11 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G3DetTable.hh,v 1.2 1999/05/07 04:15:57 lockman Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// G3 materials table.
// Maps G3 material indices to their G4 material object counterparts.
// Maintains a linked List of G3 material index/G4 material pointer pairs.
#include <rw/gdlist.h>
#include <rw/tphdict.h>
#include "globals.hh"
class G4VSensitiveDetector;
struct DetTableEntry {
G4String name;
G4int detid;
G4VSensitiveDetector* detpt;
class DetTableEntry {
private:
G4String _set;
G4String _det;
G4int _id;
G4VSensitiveDetector* _detpt;
public:
DetTableEntry(G4String& set, G4String& det, G4int id,
G4VSensitiveDetector* D);
~DetTableEntry();
G4VSensitiveDetector* getSD();
G4String getset();
G4String getdet();
G4int getid();
};
declare (RWGDlist, DetTableEntry)
class G3DetTable {
private:
RWGDlist(DetTableEntry) DetT;
RWGDlist(DetTableEntry)* DetTable;
RWTPtrHashDictionary<G4String, DetTableEntry>* _Det;
G4String MakeHash(G4String& set, G4String& det);
DetTableEntry* _DTE;
public:
G3DetTable();
~G3DetTable();
G4VSensitiveDetector* get(G4String name);
G4int GetID(G4String name);
void put(G4String name, G4int detid, G4VSensitiveDetector* detpt);
G3DetTable();
~G3DetTable();
G4VSensitiveDetector* getSD(G4String& set, G4String& det);
G4int GetID(G4String& set, G4String& det);
void put(G4String& set, G4String& det, G4int id, G4VSensitiveDetector* D);
};
extern G3DetTable G3Det;