G4XAqmElastic.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // -------------------------------------------------------------------
00028 //      GEANT4 Class file
00029 //
00030 //      For information related to this code contact:
00031 //
00032 //      File name:     G4XAqmElastic
00033 //
00034 //      Author:        
00035 // 
00036 //      Creation date: 15 April 1999
00037 //
00038 //      Modifications: 
00039 //      
00040 // Additive Quark Model Elastic cross section 
00041 // (H.J. Lipkin and F. Scheck, Phys.Rev. 16 (1966) 71
00042 //
00043 // -------------------------------------------------------------------
00044 
00045 #include "globals.hh"
00046 #include "G4ios.hh"
00047 #include "G4XAqmElastic.hh"
00048 #include "G4XAqmTotal.hh"
00049 #include "G4KineticTrack.hh"
00050 #include "G4ParticleDefinition.hh"
00051 
00052 
00053 // Validity range of this cross-section
00054 const G4double G4XAqmElastic::_lowLimit = 0.;
00055 const G4double G4XAqmElastic::_highLimit = DBL_MAX;
00056 
00057 G4XAqmElastic::G4XAqmElastic()
00058 { 
00059   // As a first approximation the model is assumed to be valid over 
00060   // the entire energy range
00061 }
00062 
00063 
00064 G4XAqmElastic::~G4XAqmElastic()
00065 { }
00066 
00067 
00068 G4bool G4XAqmElastic::operator==(const G4XAqmElastic &right) const
00069 {
00070   return (this == (G4XAqmElastic *) &right);
00071 }
00072 
00073 
00074 G4bool G4XAqmElastic::operator!=(const G4XAqmElastic &right) const
00075 {
00076   return (this != (G4XAqmElastic *) &right);
00077 }
00078 
00079 
00080 G4double G4XAqmElastic::CrossSection(const G4KineticTrack& trk1, const G4KineticTrack& trk2) const
00081 {
00082   G4double sigma = 0.;
00083 
00084   // Reference to be checked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00085   const G4double coeff = 0.39;
00086   const G4double param = 1.5;
00087 
00088   G4XAqmTotal aqmTotal;
00089 
00090   G4double sigmaTot = aqmTotal.CrossSection(trk1,trk2);
00091   sigma = coeff * std::pow(sigmaTot,param);  
00092 
00093   // Verify that elastic cross section < total cross section
00094 
00095   if (sigma > sigmaTot) 
00096     throw G4HadronicException(__FILE__, __LINE__, "G4XAqmElastic::CrossSection - elastic cross section greater than total");
00097 
00098   return sigma;
00099 }
00100 
00101 
00102 G4String G4XAqmElastic::Name() const
00103 {
00104   G4String name("AqmElasticCrossSection");
00105   return name;
00106 }
00107 
00108 
00109 G4bool G4XAqmElastic::IsValid(G4double e) const
00110 {
00111   G4bool answer = InLimits(e,_lowLimit,_highLimit);
00112 
00113   return answer;
00114 }

Generated on Mon May 27 17:50:26 2013 for Geant4 by  doxygen 1.4.7