| Message: Re: how to input neutron cross-section | Not Logged In (login) |
|
thanks for reply so now i am trying to point to the top directory G4NDL where the data is present ad try to get the cross section values by including
theNeutronData = G4NeutronHPElasticDatra->GetCrossSection(const G4DynamicParticle,const G4Element*,G4Double); into the following physics list physics
if(particleName == "neutron")
{
// Elastic scattering
G4HadronElasticProcess* neutelProc = new G4HadronElasticProcess;
G4LElastic* neutelModel = new G4LElastic;
G4NeutronHPElastic* theElasticNeutron = new G4NeutronHPElastic;
G4NeutronHPElasticData* theNeutronData = new G4NeutronHPElasticData;
theNeutronData = G4NeutronHPElasticData::GetCrossSection(const G4DynamicParticle* aP, const G4Element*anE, G4double aT);
neutelProc->RegisterMe(neutelModel);
neutelModel->SetMinEnergy(0.0*MeV);
neutelModel->SetMaxEnergy(19.9*MeV);
neutelProc->AddDataSet(theNeutronData);
neutelProc->RegisterMe(theElasticNeutron);
pmanager->AddDiscreteProcess(neutelProc);
}
and my cmpiler giving me arror as...................... [guest@physDT6 nsim]$ make Making dependency for file src/nsimPhysicsList.cc ... Compiling nsimPhysicsList.cc ... src/nsimPhysicsList.cc: In member function ‘virtual void nsimPhysicsList::ConstructNeutronProcesses()’: src/nsimPhysicsList.cc:198: error: expected primary-expression before ‘const’ src/nsimPhysicsList.cc:198: error: expected primary-expression before ‘const’ src/nsimPhysicsList.cc:198: error: expected primary-expression before ‘aT’ /home/guest/CLHEP/include/CLHEP/Random/Randomize.h: At global scope: /home/guest/CLHEP/include/CLHEP/Random/Randomize.h:67: warning: ‘CLHEP::HepRandomGenActive’ defined but not used make: *** [/home/guest/g4work/tmp/Linux-g++/nsim/nsimPhysicsList.o] Error 1 but i don't know how to set the argumets of GetCrossSection member function
|
| Inline Depth: | Outline Depth: | Add message: |
|
to: |