G4NeutronHPorLCaptureModel Class Reference

#include <G4NeutronHPorLCaptureModel.hh>

Inheritance diagram for G4NeutronHPorLCaptureModel:

G4HadronicInteraction

Public Member Functions

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

Detailed Description

Definition at line 42 of file G4NeutronHPorLCaptureModel.hh.


Constructor & Destructor Documentation

G4NeutronHPorLCaptureModel::G4NeutronHPorLCaptureModel (  ) 

Definition at line 36 of file G4NeutronHPorLCaptureModel.cc.

00037 {
00038    theHPCapture = new G4NeutronHPorLCapture();
00039    theLCapture = new G4LCapture();
00040    theHPNames = new G4NeutronHPNames();
00041 }

G4NeutronHPorLCaptureModel::~G4NeutronHPorLCaptureModel (  ) 

Definition at line 42 of file G4NeutronHPorLCaptureModel.cc.

00043 {
00044    delete theHPCapture;
00045    delete theLCapture;
00046    delete theHPNames;
00047 }


Member Function Documentation

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

Implements G4HadronicInteraction.

Definition at line 49 of file G4NeutronHPorLCaptureModel.cc.

References G4NeutronHPorLCapture::ApplyYourself(), G4LCapture::ApplyYourself(), G4HadProjectile::GetKineticEnergy(), G4NeutronHPNames::GetName(), G4Nucleus::GetZ_asInt(), and G4NeutronHPorLCapture::IsThisElementOK().

00050 {
00051    if ( aTrack.GetKineticEnergy() > 20*MeV ) 
00052    {
00053       //G4cout << "Select LE model " << G4endl;
00054       return theLCapture->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 ( theHPCapture->IsThisElementOK( theNameOfElement ) )
00063    {
00064       //G4cout << "Select HP model " << G4endl;
00065       return theHPCapture->ApplyYourself( aTrack , aTargetNucleus ); 
00066    }
00067    else
00068    {
00069       //G4cout << "Select LE model " << G4endl;
00070       return theLCapture->ApplyYourself( aTrack , aTargetNucleus ); 
00071    }
00072 }

G4VCrossSectionDataSet* G4NeutronHPorLCaptureModel::GiveHPXSectionDataSet (  )  [inline]

Definition at line 49 of file G4NeutronHPorLCaptureModel.hh.

References G4NeutronHPorLCapture::GiveXSectionDataSet().

00049 { return theHPCapture->GiveXSectionDataSet(); } 


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