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

Last change on this file since 1315 was 1196, checked in by garnier, 15 years ago

update CVS release candidate geant4.9.3.01

File size: 3.1 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  G4TripathiCrossSection();
46  ~G4TripathiCrossSection();
47
48   virtual
49   G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element*)
50   {
51     return IsZAApplicable(aPart, 0., 0.);
52   }
53
54   virtual
55   G4bool IsZAApplicable(const G4DynamicParticle* aPart, G4double /*ZZ*/,
56                         G4double /*AA*/)
57   {
58     G4bool result = false;
59     if(( aPart->GetDefinition()->GetBaryonNumber()>2.5) &&
60        ( aPart->GetKineticEnergy()/aPart->GetDefinition()->GetBaryonNumber()<1*GeV) ) result = true;
61     return result;
62   }
63
64
65   virtual
66   G4double GetCrossSection(const G4DynamicParticle*, 
67                            const G4Element*, G4double aTemperature);
68
69   virtual
70   G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double ZZ,
71                                 G4double AA, G4double aTemperature);
72
73   virtual
74   void BuildPhysicsTable(const G4ParticleDefinition&)
75   {}
76
77   virtual
78   void DumpPhysicsTable(const G4ParticleDefinition&) 
79   {G4cout << "G4TripathiCrossSection: uses formula"<<G4endl;}
80
81};
82
83#endif
Note: See TracBrowser for help on using the repository browser.