Message: error executing a DNA file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question error executing a DNA file 

Forum: Medical Applications
Date: 24 Mar, 2016
From: Bigot Mathilde <Bigot Mathilde>

Dear All,

I managed to compile a program with geant4.10.02.p01, that was originally made for geant4.10.01, changing some parts of it.

However, I have some problems during its execution: I get this message:

------- EEE ------- G4Exception-START ------- EEE -------
*** G4Exception : CONF_NOT_CREATED
      issued by : G4MoleculeTable::GetConfiguration
The configuration Eau was not recorded in the table

*** Fatal Exception *** core dump *** ------- EEE ------- G4Exception-END ------- EEE -------

Here is Eau.cc, the source describing H2O // // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: G4H2O.cc 85152 2014-10-24 16:07:37Z matkara $ // // Author: Mathieu Karamitors // // History: // ----------- // 10 Oct 2011 M.Karamitros created // // -------------------------------------------------------------------

#include "Eau.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleTable.hh"

// ###################################################################### // ### Eau ### // ######################################################################

Eau* Eau::theInstance = 0;

Eau* Eau::Definition()
{
  if (theInstance != 0) return theInstance;

  const G4String name = "Eau";
  // search in particle table]
  G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
  G4ParticleDefinition* anInstance = pTable->FindParticle(name);

  if (anInstance == 0)
  {
    const G4String formatedName = "Eau";

    // create molecule
    //
    //      G4MoleculeDefinition(const G4String& name,
    //          G4double mass,
    //          G4double diffCoeff,
    //          G4int    charge = 0,
    //          G4int    electronicLevels = 0,
    //          G4double radius = -1,
    //          G4int    atomsNumber = -1,
    //          G4double lifetime = -1,
    //          G4String aType = "",
    //          G4FakeParticleID ID = G4FakeParticleID::Create()
    //      );

    G4double mass = 18.0153 * g / Avogadro * c_squared;
    anInstance = new G4MoleculeDefinition(name, mass, 2e-19 * (cm * cm / s),
                                          0, // charge
                                          8, 2.75 * angstrom, 3,
                                          0 /*lifetime*/); //picosecond set in dissociation process

    ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(0);
    ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(1);
    ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(2);
    ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(3);
    ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(4);
    ((G4MoleculeDefinition*) anInstance)->SetFormatedName(formatedName);

  }
  theInstance = reinterpret_cast<Eau*>(anInstance);
  return theInstance;
}

If you have any ideas to solve this, I'll be glad to read them.

Thank you all and Best wishes, M. Bigot

 Add Message Add Message
to: "error executing a DNA file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]