#include <G4NeutronHPCapture.hh>
|
| G4NeutronHPCapture () |
|
| ~G4NeutronHPCapture () |
|
G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus) |
|
virtual const std::pair< G4double, G4double > | GetFatalEnergyCheckLevels () const |
|
| 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 G4NeutronHPCapture.hh.
◆ G4NeutronHPCapture()
G4NeutronHPCapture::G4NeutronHPCapture |
( |
| ) |
|
Definition at line 41 of file G4NeutronHPCapture.cc.
43 {
46
47 if(!getenv("G4NEUTRONHPDATA"))
48 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
49 dirName = getenv("G4NEUTRONHPDATA");
51 dirName = dirName + tString;
53
54
55
56
58
59
60
61
62
63
64 for (
G4int i = 0 ; i < numEle ; i++ )
65 {
68 (*theCapture[i]).Register(theFS);
69 }
70 delete theFS;
71
72
73 }
static size_t GetNumberOfElements()
static const G4ElementTable * GetElementTable()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
◆ ~G4NeutronHPCapture()
G4NeutronHPCapture::~G4NeutronHPCapture |
( |
| ) |
|
Definition at line 75 of file G4NeutronHPCapture.cc.
76 {
77
78
79 for ( std::vector<G4NeutronHPChannel*>::iterator
80 ite = theCapture.begin() ; ite != theCapture.end() ; ite++ )
81 {
82 delete *ite;
83 }
84 theCapture.clear();
85 }
◆ ApplyYourself()
Implements G4HadronicInteraction.
Definition at line 88 of file G4NeutronHPCapture.cc.
89 {
90
92
94 if(getenv(
"NeutronHPCapture"))
G4cout <<
" ####### G4NeutronHPCapture called"<<
G4endl;
98 if(n!=1)
99 {
107 {
109 rWeight = NumAtomsPerVolume[i];
110
114 xSec[i] *= rWeight;
115 sum+=xSec[i];
116 }
120 {
121 running += xSec[i];
123
124 if( sum == 0 || random <= running/sum ) break;
125 }
126 if(i==n) i=std::max(0, n-1);
127 delete [] xSec;
128 }
129
130
131
135 return result;
136 }
G4DLLIMPORT std::ostream G4cout
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().
◆ GetFatalEnergyCheckLevels()
The documentation for this class was generated from the following files: