Message: Re: segmentation fault from (G4HadronCrossSections::Instance())->GetInelasticCrossSection(...) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: segmentation fault from (G4HadronCrossSections::Instance())->GetInelasticCrossSection(...) 

Forum: Hadronic Processes
Re: Question segmentation fault from (G4HadronCrossSections::Instance())->GetInelasticCrossSection(...) (Jonas)
Date: 12 Oct, 2016
From: Jonas <Jonas>

Problem solved, we have to use

G4PhotoNuclearCrossSection* photonuclearXsection = new G4PhotoNuclearCrossSection();

and then

// G4PhotoNuclearCrossSection::GetElementCrossSection(const G4DynamicParticle* aPart, G4int ZZ, const G4Material*)
G4double xsection = photonuclearXsection->GetElementCrossSection(particle, Z, material);

because G4HadronCrossSections does not include gamma-hadron cross sections it seems.


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: segmentation fault from (G4HadronCrossSections::Instance())->GetInelasticCrossSection(...)   (Vladimir Ivanchenko - 16 Oct, 2016)
 Add Message Add Message
to: "Re: segmentation fault from (G4HadronCrossSections::Instance())->GetInelasticCrossSection(...)"

 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 ]