G4NeutronHPorLFissionModel Class Reference

#include <G4NeutronHPorLFissionModel.hh>

Inheritance diagram for G4NeutronHPorLFissionModel:

G4HadronicInteraction

Public Member Functions

 G4NeutronHPorLFissionModel ()
 ~G4NeutronHPorLFissionModel ()
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
G4VCrossSectionDataSetGiveHPXSectionDataSet ()

Detailed Description

Definition at line 41 of file G4NeutronHPorLFissionModel.hh.


Constructor & Destructor Documentation

G4NeutronHPorLFissionModel::G4NeutronHPorLFissionModel (  ) 

Definition at line 36 of file G4NeutronHPorLFissionModel.cc.

00037 {
00038    theHPFission = new G4NeutronHPorLFission();
00039    theLFission = new G4LFission();
00040    theHPNames = new G4NeutronHPNames();
00041 }

G4NeutronHPorLFissionModel::~G4NeutronHPorLFissionModel (  ) 

Definition at line 42 of file G4NeutronHPorLFissionModel.cc.

00043 {
00044    delete theHPFission;
00045    delete theLFission;
00046    delete theHPNames;
00047 }


Member Function Documentation

G4HadFinalState * G4NeutronHPorLFissionModel::ApplyYourself ( const G4HadProjectile aTrack,
G4Nucleus aTargetNucleus 
) [virtual]

Implements G4HadronicInteraction.

Definition at line 49 of file G4NeutronHPorLFissionModel.cc.

References G4NeutronHPorLFission::ApplyYourself(), G4LFission::ApplyYourself(), G4HadProjectile::GetKineticEnergy(), G4NeutronHPNames::GetName(), G4Nucleus::GetZ_asInt(), and G4NeutronHPorLFission::IsThisElementOK().

00050 {
00051    if ( aTrack.GetKineticEnergy() > 20*MeV ) 
00052    {
00053       //G4cout << "Select LE model " << G4endl;
00054       return theLFission->ApplyYourself( aTrack , aTargetNucleus );
00055    }
00056 
00057    //G4int Z =  (G4int)(aTargetNucleus.GetZ()+0.5);  
00058    //migrate to integer A and Z
00059    G4int Z =  aTargetNucleus.GetZ_asInt();  
00060    G4String theNameOfElement = theHPNames->GetName( Z-1 ); // GetName(0) reply "Hydrogen" 
00061 
00062    if ( theHPFission->IsThisElementOK( theNameOfElement ) )
00063    {
00064       //G4cout << "Select HP model " << G4endl;
00065       return theHPFission->ApplyYourself( aTrack , aTargetNucleus ); 
00066    }
00067    else
00068    {
00069       //G4cout << "Select LE model " << G4endl;
00070       return theLFission->ApplyYourself( aTrack , aTargetNucleus ); 
00071    }
00072 }

G4VCrossSectionDataSet* G4NeutronHPorLFissionModel::GiveHPXSectionDataSet (  )  [inline]

Definition at line 48 of file G4NeutronHPorLFissionModel.hh.

References G4NeutronHPorLFission::GiveXSectionDataSet().

00048 { return theHPFission->GiveXSectionDataSet(); } 


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:41 2013 for Geant4 by  doxygen 1.4.7