Files
geant4/source/processes/hadronic/cross_sections/include/G4IonProtonCrossSection.hh
T
2016-06-09 10:56:29 +02:00

75 lines
2.9 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
#ifndef G4IonProtonCrossSection_h
#define G4IonProtonCrossSection_h
#include "globals.hh"
#include "G4Proton.hh"
// Class Description
// Cross-sections for ion proton scattering up to 20 GeV, getting the low
// energy threshold behaviour right.
// H.P. Wellisch (TRIUMF), D. Axen (British Columbia U.). 1996.
// Published in Phys.Rev.C54:1329-1332,1996
// Class Description - End
#include "G4VCrossSectionDataSet.hh"
#include "G4ProtonInelasticCrossSection.hh"
class G4IonProtonCrossSection : public G4VCrossSectionDataSet
{
public:
virtual
G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element*anEle)
{
G4bool result = false;
if(( anEle->GetN()<1.1) &&
( aPart->GetKineticEnergy()/aPart->GetDefinition()->GetBaryonNumber()<20*GeV&&
aPart->GetDefinition()->GetBaryonNumber()>4)
) result = true;
return result;
}
virtual
G4double GetCrossSection(const G4DynamicParticle* aPart,
const G4Element*, G4double )
{
G4ProtonInelasticCrossSection theForward;
G4double result = theForward.GetCrossSection(aPart->GetKineticEnergy(),
aPart->GetDefinition()->GetBaryonNumber(),
aPart->GetDefinition()->GetPDGCharge());
return result;
}
virtual
void BuildPhysicsTable(const G4ParticleDefinition&)
{}
virtual
void DumpPhysicsTable(const G4ParticleDefinition&)
{G4cout << "G4IonProtonCrossSection: uses formula"<<G4endl;}
};
#endif