Message: Re: how to input neutron cross-section Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to input neutron cross-section 

Forum: Hadronic Processes
Re: Question how to input neutron cross-section (Davinder Siwal)
Re: Feedback Re: how to input neutron cross-section (Christina Zacharatou)
Date: 28 Jul, 2009
From: Davinder Siwal <Davinder Siwal>

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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: how to input neutron cross-section   (Christina Zacharatou - 28 Jul, 2009)
(_ None: Re: how to input neutron cross-section   (Davinder Siwal - 28 Jul, 2009)
(_ None: Re: how to input neutron cross-section   (Christina Zacharatou - 28 Jul, 2009)
 Add Message Add Message
to: "Re: how to input neutron cross-section"

 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 ]