Files
geant4/source/processes/hadronic/models/im_r_matrix/src/G4XAqmElastic.cc
T

115 lines
3.6 KiB
C++

//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// -------------------------------------------------------------------
// GEANT4 Class file
//
// For information related to this code contact:
//
// File name: G4XAqmElastic
//
// Author:
//
// Creation date: 15 April 1999
//
// Modifications:
//
// Additive Quark Model Elastic cross section
// (H.J. Lipkin and F. Scheck, Phys.Rev. 16 (1966) 71
//
// -------------------------------------------------------------------
#include "globals.hh"
#include "G4ios.hh"
#include "G4Pow.hh"
#include "G4XAqmElastic.hh"
#include "G4XAqmTotal.hh"
#include "G4KineticTrack.hh"
// Validity range of this cross-section
const G4double G4XAqmElastic::_lowLimit = 0.;
const G4double G4XAqmElastic::_highLimit = DBL_MAX;
G4XAqmElastic::G4XAqmElastic()
{
// As a first approximation the model is assumed to be valid over
// the entire energy range
}
G4XAqmElastic::~G4XAqmElastic()
{ }
G4bool G4XAqmElastic::operator==(const G4XAqmElastic &right) const
{
return (this == (G4XAqmElastic *) &right);
}
G4bool G4XAqmElastic::operator!=(const G4XAqmElastic &right) const
{
return (this != (G4XAqmElastic *) &right);
}
G4double G4XAqmElastic::CrossSection(const G4KineticTrack& trk1, const G4KineticTrack& trk2) const
{
G4double sigma = 0.;
// Reference to be checked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
static const G4double coeff = 0.39;
static const G4double param = 1.5;
G4XAqmTotal aqmTotal;
G4double sigmaTot = aqmTotal.CrossSection(trk1,trk2);
sigma = coeff * G4Pow::GetInstance()->powA(sigmaTot,param);
// Verify that elastic cross section < total cross section
if (sigma > sigmaTot)
throw G4HadronicException(__FILE__, __LINE__, "G4XAqmElastic::CrossSection - elastic cross section greater than total");
return sigma;
}
G4String G4XAqmElastic::Name() const
{
G4String name("AqmElasticCrossSection");
return name;
}
G4bool G4XAqmElastic::IsValid(G4double e) const
{
G4bool answer = InLimits(e,_lowLimit,_highLimit);
return answer;
}