Message: Linking of Pythia8 to Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Linking of Pythia8 to Geant4 

Forum: Event and Track Management
Date: 06 Jul, 2017
From: Luke Kasper <Luke Kasper>

I am currently trying to generate physics events via Pythia8 and run them through the geant4 simulation using the default example HepMCEx02. I was able to compile the example and then make and run it successfully using the hepmcAscii generator as the macro. However when trying to run with hepmc_pygen.in I received multiple error messages and after a bit of investigation, I realized that when running the example, pythia is not listed as one of the generators only hepmcAscii. I am wondering where I went wrong with compiling this example and what I can do to allow geant to recognize pythia 8 as a generator (pythia 8 is downloaded and running fine on its own it is only when trying to link the two that the problems arise). I am currently running geant 4.10.03 and pythia 8.1.23.

For reference the error messages are as follows: current generator type: pythia ***** COMMAND NOT FOUND </generator/pythia/pygive PMAS(6,1)=174.3D0> *****

***** Batch is interrupted!! *****
***** COMMAND NOT FOUND </generator/pythia/pyinit cms p p 14000> *****

***** Batch is interrupted!! *****

Then it reads out the analysis anyhow and at the end:

*** G4Exception : InvalidSetup
      issued by : H02PrimaryGeneratorAction::GeneratePrimaries
Generator is not instanciated.
*** Fatal Exception *** core dump ***

with no visualization. I installed these using Homebrew on OS X and installed both pythia and HepMC to /usr/local/Cellar so the installation should not be the issue. Any thoughts?

 Add Message Add Message
to: "Linking of Pythia8 to Geant4"

 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 ]