Message: Re: GetHadronicInteraction: No Model found Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GetHadronicInteraction: No Model found 

Forum: Physics List
Re: Question GetHadronicInteraction: No Model found (Ken Sutherland)
Re: Feedback Re: GetHadronicInteraction: No Model found (G.A.P.Cirrone)
Date: 10 Aug, 2008
From: Ken Sutherland <Ken Sutherland>

Thank you very much for your help.

I tried adding the following code in HEHadronIonLElastic.cc, but it didn't seem to have any effect. I have the feeling that the problem is not with HEHadronIonLElastic, but with another process, but I can't figure out how to trace back to which process is causing the error. I wonder if there is some other verbose flag I can turn on to pinpoint the problem.

Thank you again for any help.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

void HEHadronIonLElastic::ConstructProcess()
{
  G4ParticleDefinition* particle = 0;
  G4ProcessManager* processManager = 0;

  // **********************************************
  // *** Proton, Neutron, Pion plus, Pion minus ***
  // *** Deuteron, Triton, Alpha                ***
  // **********************************************

  G4HadronElasticProcess* hadronIonElasticProcess = new G4HadronElasticProcess();
  G4LElastic* hadronIonLElasticModel = new G4LElastic();

  // Added by me, but didn't seem to help...
  G4double minEnergy = 0. * MeV;
  G4double maxEnergy = 250. * MeV;
  hadronIonLElasticModel->SetMinEnergy(minEnergy);
  hadronIonLElasticModel->SetMaxEnergy(maxEnergy);

  hadronIonElasticProcess -> RegisterMe(hadronIonLElasticModel); 

  particle = G4Proton::Proton();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

  particle = G4Neutron::Neutron();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

  particle = G4PionPlus::PionPlus(); 
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess);

  particle = G4PionMinus::PionMinus();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

  particle = G4Deuteron::Deuteron();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

  particle = G4Triton::Triton();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess);

  particle = G4Alpha::Alpha();
  processManager = particle -> GetProcessManager();
  processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

  // particle = G4He3::He3();
  // processManager = particle -> GetProcessManager();
  // processManager -> AddDiscreteProcess(hadronIonElasticProcess); 

}

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2008/08/10/18.17-55557-ant4_Mizonube2_Output.txt
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2008/08/10/18.17-59038-ant4_Mizonube2_proton.mac

 Add Message Add Message
to: "Re: GetHadronicInteraction: No Model found"

 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 ]