I use this code in GammaNuclearPhysics.cc in example Hadr03
void GammaNuclearPhysicsLEND::ConstructProcess()
{
G4ProcessManager* pManager = G4Gamma::Gamma()->GetProcessManager();
//
//G4PhotoNuclearProcess* process = new G4PhotoNuclearProcess();
//
G4PhotoFissionProcess* process = new G4PhotoFissionProcess();
G4LENDorBERTModel* lend = new G4LENDorBERTModel(G4Gamma::Gamma());
lend->SetMaxEnergy(20MeV);
process->RegisterMe(lend);
//
//G4LENDCombinedCrossSection lendXS = new G4LENDCombinedCrossSection(G4Gamma::Gamma());
G4LENDFissionCrossSection* lendXS = new G4LENDFissionCrossSection(G4Gamma::Gamma());
process->AddDataSet(lendXS);
//
pManager->AddDiscreteProcess(process);
}
After compiling and running there are shown the next message:
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : had001
issued by : G4CrossSectionDataStore::BuildPhysicsTable
No cross section is registered for gamma
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
*** G4Exception: Aborting execution ***
How solve the problem ?