58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
// 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: G3MedTable.hh,v 1.8 2000/11/24 09:50:09 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-03-00 $
|
|
//
|
|
// ----------------------
|
|
// Class description:
|
|
//
|
|
// G3 tracking medium table.
|
|
// Maps G3 tracking medium indices to their corresponding
|
|
// G4 objects (G4Material, G4MagneticField, G4UserLimits)
|
|
// and the sensitivity flag (isvol).
|
|
|
|
// ----------------------
|
|
//
|
|
// by I.Hrivnacova, 27 Sep 99
|
|
|
|
#ifndef G3MEDTABLE_HH
|
|
#define G3MEDTABLE_HH 1
|
|
|
|
#include "G3MedTableEntry.hh"
|
|
|
|
#include "globals.hh"
|
|
|
|
#include "g4rw/tpordvec.h"
|
|
|
|
class G4Material;
|
|
class G4MagneticField;
|
|
class G4UserLimits;
|
|
|
|
typedef G4RWTPtrOrderedVector<G3MedTableEntry> G3MediumVector;
|
|
|
|
class G3MedTable
|
|
{
|
|
public: // with description
|
|
|
|
G3MedTable();
|
|
virtual ~G3MedTable();
|
|
|
|
// methods
|
|
G3MedTableEntry* get(G4int id) const;
|
|
void put(G4int id, G4Material* material, G4MagneticField* field,
|
|
G4UserLimits* limits, G4int isvol);
|
|
void Clear();
|
|
|
|
private:
|
|
|
|
G3MediumVector* fMedVector;
|
|
};
|
|
|
|
extern G3MedTable G3Med;
|
|
#endif
|