#include <G4NeutronHPElastic.hh>
|
| G4NeutronHPElastic () |
|
| ~G4NeutronHPElastic () |
|
G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus) |
|
virtual const std::pair< G4double, G4double > | GetFatalEnergyCheckLevels () const |
|
G4int | GetNiso () |
|
void | DoNotSuspend () |
|
| G4HadronicInteraction (const G4String &modelName="HadronicModel") |
|
virtual | ~G4HadronicInteraction () |
|
virtual G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0 |
|
virtual G4double | SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A) |
|
virtual G4bool | IsApplicable (const G4HadProjectile &, G4Nucleus &) |
|
G4double | GetMinEnergy () const |
|
G4double | GetMinEnergy (const G4Material *aMaterial, const G4Element *anElement) const |
|
void | SetMinEnergy (G4double anEnergy) |
|
void | SetMinEnergy (G4double anEnergy, const G4Element *anElement) |
|
void | SetMinEnergy (G4double anEnergy, const G4Material *aMaterial) |
|
G4double | GetMaxEnergy () const |
|
G4double | GetMaxEnergy (const G4Material *aMaterial, const G4Element *anElement) const |
|
void | SetMaxEnergy (const G4double anEnergy) |
|
void | SetMaxEnergy (G4double anEnergy, const G4Element *anElement) |
|
void | SetMaxEnergy (G4double anEnergy, const G4Material *aMaterial) |
|
const G4HadronicInteraction * | GetMyPointer () const |
|
G4int | GetVerboseLevel () const |
|
void | SetVerboseLevel (G4int value) |
|
const G4String & | GetModelName () const |
|
void | DeActivateFor (const G4Material *aMaterial) |
|
void | ActivateFor (const G4Material *aMaterial) |
|
void | DeActivateFor (const G4Element *anElement) |
|
void | ActivateFor (const G4Element *anElement) |
|
G4bool | IsBlocked (const G4Material *aMaterial) const |
|
G4bool | IsBlocked (const G4Element *anElement) const |
|
void | SetRecoilEnergyThreshold (G4double val) |
|
G4double | GetRecoilEnergyThreshold () const |
|
G4bool | operator== (const G4HadronicInteraction &right) const |
|
G4bool | operator!= (const G4HadronicInteraction &right) const |
|
virtual const std::pair< G4double, G4double > | GetFatalEnergyCheckLevels () const |
|
virtual std::pair< G4double, G4double > | GetEnergyMomentumCheckLevels () const |
|
void | SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel) |
|
virtual void | ModelDescription (std::ostream &outFile) const |
|
Definition at line 48 of file G4NeutronHPElastic.hh.
◆ G4NeutronHPElastic()
G4NeutronHPElastic::G4NeutronHPElastic |
( |
| ) |
|
Definition at line 38 of file G4NeutronHPElastic.cc.
40 {
41 overrideSuspension = false;
43 if(!getenv("G4NEUTRONHPDATA"))
44 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
45 dirName = getenv("G4NEUTRONHPDATA");
47 dirName = dirName + tString;
48
50
51
52
53
54
55
56 for (
G4int i = 0 ; i < numEle ; i++ )
57 {
60 while(!(*theElastic[i]).Register(theFS)) ;
61 }
62 delete theFS;
65 }
static size_t GetNumberOfElements()
static const G4ElementTable * GetElementTable()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
◆ ~G4NeutronHPElastic()
G4NeutronHPElastic::~G4NeutronHPElastic |
( |
| ) |
|
Definition at line 67 of file G4NeutronHPElastic.cc.
68 {
69
70 for ( std::vector<G4NeutronHPChannel*>::iterator
71 it = theElastic.begin() ; it != theElastic.end() ; it++ )
72 {
73 delete *it;
74 }
75 theElastic.clear();
76 }
◆ ApplyYourself()
Implements G4HadronicInteraction.
Definition at line 80 of file G4NeutronHPElastic.cc.
81 {
82
84
89 if(n!=1)
90 {
98 {
100 rWeight = NumAtomsPerVolume[i];
101
105 xSec[i] *= rWeight;
106 sum+=xSec[i];
107 }
111 {
112 running += xSec[i];
114
115 if( sum == 0 || random <= running/sum ) break;
116 }
117 delete [] xSec;
118
119 }
120
125 return finalState;
126 }
void SetStatusChange(G4HadFinalStateStatus aS)
const G4Material * GetMaterial() const
G4double GetTemperature() const
const G4Element * GetElement(G4int iel) const
size_t GetNumberOfElements() const
const G4double * GetVecNbOfAtomsPerVolume() const
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
static G4NeutronHPManager * GetInstance()
void OpenReactionWhiteBoard()
void CloseReactionWhiteBoard()
G4NeutronHPReactionWhiteBoard * GetReactionWhiteBoard()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
Referenced by ApplyYourself().
◆ DoNotSuspend()
void G4NeutronHPElastic::DoNotSuspend |
( |
| ) |
|
|
inline |
◆ GetFatalEnergyCheckLevels()
◆ GetNiso()
G4int G4NeutronHPElastic::GetNiso |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: