Files
geant4/source/g3tog4/include/G3DetTable.hh
T
2016-06-01 15:25:35 +02:00

42 lines
1.0 KiB
C++

// This code implementation is the intellectual property of
// the RD44 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 2.1 1998/07/12 02:54:11 urbi Exp $
// GEANT4 tag $Name: geant4-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/gdlist.h>
#include "globals.hh"
class G4VSensitiveDetector;
struct DetTableEntry {
G4String name;
G4int detid;
G4VSensitiveDetector* detpt;
};
declare (RWGDlist, DetTableEntry)
class G3DetTable {
private:
RWGDlist(DetTableEntry) DetT;
RWGDlist(DetTableEntry)* DetTable;
public:
G3DetTable();
~G3DetTable();
G4VSensitiveDetector* get(G4String name);
G4int GetID(G4String name);
void put(G4String name, G4int detid, G4VSensitiveDetector* detpt);
};
extern G3DetTable G3Det;