#include <G4NeutronHPInelastic.hh>
|
| G4NeutronHPInelastic () |
|
| ~G4NeutronHPInelastic () |
|
G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus) |
|
virtual const std::pair
< G4double, G4double > | GetFatalEnergyCheckLevels () const |
|
G4int | GetVerboseLevel () const |
|
void | SetVerboseLevel (G4int) |
|
| G4HadronicInteraction (const G4String &modelName="HadronicModel") |
|
virtual | ~G4HadronicInteraction () |
|
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 |
|
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 std::pair< G4double,
G4double > | GetEnergyMomentumCheckLevels () const |
|
void | SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel) |
|
virtual void | ModelDescription (std::ostream &outFile) const |
|
Definition at line 86 of file G4NeutronHPInelastic.hh.
G4NeutronHPInelastic::G4NeutronHPInelastic |
( |
| ) |
|
Definition at line 44 of file G4NeutronHPInelastic.cc.
References G4cout, G4endl, G4Element::GetElementTable(), G4Element::GetNumberOfElements(), lightions::Init(), python.hepunit::MeV, G4AutoDelete::Register(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().
52 istatus = system(
"echo %G4NEUTRONHPDATA%");
54 istatus = system(
"echo $G4NEUTRONHPDATA");
58 G4cout <<
"Warning! system(\"echo $G4NEUTRONHPDATA\") returns error value at G4NeutronHPInelastic" <<
G4endl;
62 if(!getenv(
"G4NEUTRONHPDATA"))
63 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
64 dirName = getenv(
"G4NEUTRONHPDATA");
66 dirName = dirName + tString;
132 for (
G4int i=0; i<numEle; i++)
139 (*theInelastic[i]).
Register(&theNFS,
"F01");
140 (*theInelastic[i]).
Register(&theNXFS,
"F02");
141 (*theInelastic[i]).
Register(&the2NDFS,
"F03");
142 (*theInelastic[i]).
Register(&the2NFS,
"F04");
143 (*theInelastic[i]).
Register(&the3NFS,
"F05");
144 (*theInelastic[i]).
Register(&theNAFS,
"F06");
145 (*theInelastic[i]).
Register(&theN3AFS,
"F07");
146 (*theInelastic[i]).
Register(&the2NAFS,
"F08");
147 (*theInelastic[i]).
Register(&the3NAFS,
"F09");
148 (*theInelastic[i]).
Register(&theNPFS,
"F10");
149 (*theInelastic[i]).
Register(&theN2AFS,
"F11");
150 (*theInelastic[i]).
Register(&the2N2AFS,
"F12");
151 (*theInelastic[i]).
Register(&theNDFS,
"F13");
152 (*theInelastic[i]).
Register(&theNTFS,
"F14");
153 (*theInelastic[i]).
Register(&theNHe3FS,
"F15");
154 (*theInelastic[i]).
Register(&theND2AFS,
"F16");
155 (*theInelastic[i]).
Register(&theNT2AFS,
"F17");
156 (*theInelastic[i]).
Register(&the4NFS,
"F18");
157 (*theInelastic[i]).
Register(&the2NPFS,
"F19");
158 (*theInelastic[i]).
Register(&the3NPFS,
"F20");
159 (*theInelastic[i]).
Register(&theN2PFS,
"F21");
160 (*theInelastic[i]).
Register(&theNPAFS,
"F22");
161 (*theInelastic[i]).
Register(&thePFS,
"F23");
162 (*theInelastic[i]).
Register(&theDFS,
"F24");
163 (*theInelastic[i]).
Register(&theTFS,
"F25");
164 (*theInelastic[i]).
Register(&theHe3FS,
"F26");
165 (*theInelastic[i]).
Register(&theAFS,
"F27");
166 (*theInelastic[i]).
Register(&the2AFS,
"F28");
167 (*theInelastic[i]).
Register(&the3AFS,
"F29");
168 (*theInelastic[i]).
Register(&the2PFS,
"F30");
169 (*theInelastic[i]).
Register(&thePAFS,
"F31");
170 (*theInelastic[i]).
Register(&theD2AFS,
"F32");
171 (*theInelastic[i]).
Register(&theT2AFS,
"F33");
172 (*theInelastic[i]).
Register(&thePDFS,
"F34");
173 (*theInelastic[i]).
Register(&thePTFS,
"F35");
174 (*theInelastic[i]).
Register(&theDAFS,
"F36");
175 (*theInelastic[i]).RestartRegistration();
178 while( !(*theInelastic[i]).HasDataInAnyFinalState() && itry < 6 );
184 G4bool exceptional =
false;
189 if ( !exceptional )
throw G4HadronicException(__FILE__, __LINE__,
"Channel: Do not know what to do with this element");
void SetMinEnergy(G4double anEnergy)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
G4HadronicInteraction(const G4String &modelName="HadronicModel")
void SetMaxEnergy(const G4double anEnergy)
static G4ElementTable * GetElementTable()
G4NeutronHPInelastic::~G4NeutronHPInelastic |
( |
| ) |
|
Definition at line 195 of file G4NeutronHPInelastic.cc.
198 for ( std::vector<G4NeutronHPChannelList*>::iterator
199 it = theInelastic.begin() ; it != theInelastic.end() ; it++ )
203 theInelastic.clear();
Implements G4HadronicInteraction.
Definition at line 208 of file G4NeutronHPInelastic.cc.
References G4NeutronHPManager::CloseReactionWhiteBoard(), G4UniformRand, G4Material::GetElement(), G4Element::GetIndex(), G4NeutronHPManager::GetInstance(), G4HadProjectile::GetMaterial(), G4Element::GetNumberOfElements(), G4Material::GetNumberOfElements(), G4Material::GetTemperature(), G4NeutronHPThermalBoost::GetThermalEnergy(), G4Material::GetVecNbOfAtomsPerVolume(), n, G4NeutronHPManager::OpenReactionWhiteBoard(), and G4Nucleus::SetParameters().
227 rWeight = NumAtomsPerVolume[i];
243 if( sum == 0 || random<=running/sum)
break;
void OpenReactionWhiteBoard()
static G4NeutronHPManager * GetInstance()
const G4Element * GetElement(G4int iel) const
const G4double * GetVecNbOfAtomsPerVolume() const
static size_t GetNumberOfElements()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
void CloseReactionWhiteBoard()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
G4double GetTemperature() const
const G4Material * GetMaterial() const
size_t GetNumberOfElements() const
const std::pair< G4double, G4double > G4NeutronHPInelastic::GetFatalEnergyCheckLevels |
( |
| ) |
const |
|
virtual |
G4int G4NeutronHPInelastic::GetVerboseLevel |
( |
| ) |
const |
|
virtual |
void G4NeutronHPInelastic::SetVerboseLevel |
( |
G4int |
newValue | ) |
|
|
virtual |
The documentation for this class was generated from the following files: