Import Geant4 10.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 14:11:04 +02:00
parent c9b32a6c0a
commit d4af681f38
4886 changed files with 420149 additions and 1023309 deletions
@@ -41,6 +41,9 @@
#include "G4LENDModel.hh"
#include "G4PreCompoundModel.hh"
#include "G4HadronicInteractionRegistry.hh"
class G4LENDInelastic : public G4LENDModel
{
@@ -54,11 +57,21 @@ class G4LENDInelastic : public G4LENDModel
// theModelName = "LENDInelastic for ";
// theModelName += proj->GetParticleName();
create_used_target_map();
G4HadronicInteraction* p =
G4HadronicInteractionRegistry::Instance()->FindModel("PRECO");
G4VPreCompoundModel* pre = static_cast<G4VPreCompoundModel*>(p);
if(!pre) { pre = new G4PreCompoundModel(); }
preco = pre;
};
~G4LENDInelastic(){;};
G4HadFinalState* ApplyYourself( const G4HadProjectile& aTrack, G4Nucleus& aTargetNucleus );
private:
G4VPreCompoundModel* preco;
};
#endif