26#include "G4Material.hh"
28const int Geant4GM::Medium::fgkParamSize = 20;
36 fMaterial(
MaterialMap::Instance()->GetMaterial(material)),
38 fParameters(new G4double[fgkParamSize])
48 for (G4int i = 0; i < fgkParamSize; i++) {
49 if (i < nofParameters)
50 fParameters[i] = parameters[i];
80void Geant4GM::Medium::CheckIndex(
int i)
const
82 if (i < 0 || i >= NofParameters()) {
83 std::cerr <<
" Geant4GM::Medium::CheckIndex: " << std::endl;
84 std::cerr <<
" Index of parameter outside limits." << std::endl;
85 std::cerr <<
"*** Error: Aborting execution ***" << std::endl;
109 return fParameters[i];
The map between VGM and Geant4 material.
The VGM implementation of interface to tracking medium.
virtual int Id() const
Return its unique identifier.
virtual std::string Name() const
Return its name.
virtual double Parameter(int i) const
Return the i-th parameter.
The VGM interface to materials.