source: trunk/source/processes/hadronic/cross_sections/include/G4TripathiCrossSection.hh @ 966

Last change on this file since 966 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 3.0 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// by JPW, working, but to be cleaned up. @@@@
27
28#ifndef G4TripathiCrossSection_h
29#define G4TripathiCrossSection_h
30// Class Description
31// Implementation of formulas in analogy to NASA technical paper 3621 by
32// Tripathi, et al.; Cross-sections for ion ion scattering.
33
34// Class Description - End
35
36#include "globals.hh"
37#include "G4Proton.hh"
38
39#include "G4VCrossSectionDataSet.hh"
40
41class G4TripathiCrossSection : public G4VCrossSectionDataSet
42{
43   public:
44   
45   virtual
46   G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element*)
47   {
48     return IsZAApplicable(aPart, 0., 0.);
49   }
50
51   virtual
52   G4bool IsZAApplicable(const G4DynamicParticle* aPart, G4double /*ZZ*/,
53                         G4double /*AA*/)
54   {
55     G4bool result = false;
56     if(( aPart->GetDefinition()->GetBaryonNumber()>2.5) &&
57        ( aPart->GetKineticEnergy()/aPart->GetDefinition()->GetBaryonNumber()<1*GeV) ) result = true;
58     return result;
59   }
60
61
62   virtual
63   G4double GetCrossSection(const G4DynamicParticle*, 
64                            const G4Element*, G4double aTemperature);
65
66   virtual
67   G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double ZZ,
68                                 G4double AA, G4double aTemperature);
69
70   virtual
71   void BuildPhysicsTable(const G4ParticleDefinition&)
72   {}
73
74   virtual
75   void DumpPhysicsTable(const G4ParticleDefinition&) 
76   {G4cout << "G4TripathiCrossSection: uses formula"<<G4endl;}
77
78};
79
80#endif
Note: See TracBrowser for help on using the repository browser.