Skip to content
Snippets Groups Projects
Geant4Field.cpp 652 B
Newer Older
//====================================================================
//  AIDA Detector description implementation for LCD
//--------------------------------------------------------------------
//
//  Author     : M.Frank
//
//====================================================================
// Framework include files
#include "DDG4/Geant4Field.h"

using namespace DD4hep::Simulation;

G4bool Geant4Field::DoesFieldChangeEnergy() const {
  return m_field.changesEnergy();
}

void Geant4Field::GetFieldValue(const double pos[4], double *field) const {
  field[0] = field[1] = field[2] = 0.0;
  return m_field.magneticField(pos, field);