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
+14 -34
View File
@@ -1,54 +1,34 @@
#ifndef G3DETTABLE
#define G3DETTABLE 1
// 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: G3DetTable.hh,v 1.2 1999/05/07 04:15:57 lockman Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G3DetTable.hh,v 1.4 1999/12/05 17:50:01 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// 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/tphdict.h>
// G3DetTable class
#include "g4std/map"
#include "globals.hh"
class G4VSensitiveDetector;
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();
};
#include "G3DetTableEntry.hh"
class G3DetTable {
private:
RWTPtrHashDictionary<G4String, DetTableEntry>* _Det;
G4std::map<G4String, G3DetTableEntry*, less<G4String> > DTD;
G4String MakeHash(G4String& set, G4String& det);
DetTableEntry* _DTE;
public:
G3DetTable();
~G3DetTable();
G4VSensitiveDetector* getSD(G4String& set, G4String& det);
virtual ~G3DetTable();
G4int GetID(G4String& set, G4String& det);
void put(G4String& set, G4String& det, G4int id, G4VSensitiveDetector* D);
void Put(G4String& set, G4String& det, G4int id, G4VSensitiveDetector* D);
G4VSensitiveDetector* GetSD(G4String& set, G4String& det);
void PrintAll();
};
extern G3DetTable G3Det;
#endif