diff --git a/DDG4/src/Geant4InputHandling.cpp b/DDG4/src/Geant4InputHandling.cpp index 902a43f5f4e75aec56361637d1ca605ddb8e16fc..f708b1ec9c015428c0ec50c45e98b7bb86a3c783 100644 --- a/DDG4/src/Geant4InputHandling.cpp +++ b/DDG4/src/Geant4InputHandling.cpp @@ -344,11 +344,11 @@ int dd4hep::sim::smearInteraction(const Geant4Action* caller, static G4PrimaryParticle* createG4Primary(const Geant4ParticleHandle p) { G4PrimaryParticle* g4 = 0; if ( 0 != p->pdgID ) { - g4 = new G4PrimaryParticle(p->pdgID, p->psx, p->psy, p->psz); + g4 = new G4PrimaryParticle(p->pdgID, p->psx, p->psy, p->psz, p.energy()); } else { const G4ParticleDefinition* def = p.definition(); - g4 = new G4PrimaryParticle(def, p->psx, p->psy, p->psz); + g4 = new G4PrimaryParticle(def, p->psx, p->psy, p->psz, p.energy()); g4->SetCharge(p.charge()); } g4->SetMass(p->mass);