source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/include/G4QIonIonCrossSection.hh @ 836

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

import all except CVS

File size: 4.9 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//
27// GEANT4 tag $Name:  $
28//
29//
30// GEANT4 physics class: G4QIonIonCrossSection -- header file
31// Created: M.V. Kossov, CERN/ITEP(Moscow), 19-Aug-07
32// The last update: M.V. Kossov, CERN/ITEP (Moscow) 19-Aug-07
33//-----------------------------------------------------------------------------------------
34// In this class, just as an experiment the real PDG codes (not CHIPS) are used
35//-----------------------------------------------------------------------------------------
36//
37// ****************************************************************************************
38// ********* This HEADER is temporary moved from the chips/interface directory *********
39// ******* DO NOT MAKE ANY CHANGE! With time it'll move back to photolepton...(M.K.) ******
40// ****************************************************************************************
41
42#ifndef G4QIonIonCrossSection_h
43#define G4QIonIonCrossSection_h 1
44
45#include "G4ParticleTable.hh"
46#include "G4NucleiProperties.hh"
47#include "G4NucleiPropertiesTable.hh"
48#include <vector>
49#include "G4VQCrossSection.hh"
50#include "G4QPDGCode.hh"
51#include "G4QElasticCrossSection.hh"
52#include "G4QProtonNuclearCrossSection.hh"
53#include "G4QNeutronNuclearCrossSection.hh"
54
55
56class G4QIonIonCrossSection : public G4VQCrossSection
57{
58protected:
59
60  G4QIonIonCrossSection()  {}
61
62public:
63
64  ~G4QIonIonCrossSection() {}
65
66  static G4VQCrossSection* GetPointer(); // Gives a pointer to this singletone
67
68  // At present momentum (pMom) must be in GeV(@@ Units),fCS=true:Inelastic, =false:Elastic
69  virtual G4double GetCrossSection(G4bool fCS, G4double pMom, G4int Z, G4int N, G4int PDG);
70
71  // Momentum=p/A (MeV/c)
72  G4double CalculateCrossSection(G4bool fCS, G4int F, G4int I, G4int PDG,
73                                 G4int tZ, G4int tN, G4double Momentum);
74
75  G4double ThresholdMomentum(G4int pZ, G4int pN, G4int tZ, G4int tN);// P-Threshold(MeV/c)
76
77private:
78  G4int    GetFunctions(G4int pZ, G4int pN, G4int tZ, G4int tN,
79                        G4double* LI, G4double* HI,  // Inelastic
80                        G4double* LE, G4double* HE); // Elastic
81
82  G4double CalculateTotal(G4double pA, G4double tA, G4double Momentum);
83  G4double CalculateElTot(G4double pA, G4double tA, G4double Momentum);
84  // Momentum=p/A (MeV/c), first=InelasticCS, second=elasticCS (mb)
85  std::pair<G4double,G4double> CalculateXS(G4int pZ,G4int pN,G4int tZ,G4int tN,G4double P);
86
87// Body
88private:
89  static G4double* lastLENI;// Pointer to the last array of LowEnergy Inel cross sections
90  static G4double* lastHENI;// Pointer to the last array of HighEnergy Inel cross sections
91  static G4double* lastLENE;// Pointer to the last array of LowEnergy Elast cross sections
92  static G4double* lastHENE;// Pointer to the last array of HighEnergy Elast cross sections
93  static G4double  lastE;   // Last used in the cross section Energy
94  static G4int     lastPDG; // The last projectile PDG
95  static G4int     lastN;   // The last N of calculated nucleus
96  static G4int     lastZ;   // The last Z of calculated nucleus
97  static G4double  lastP;   // Last used in the cross section Momentum
98  static G4double  lastTH;  // Last value of the Momentum Threshold
99  static G4double  lastICS; // Last value of the Inelastic Cross Section
100  static G4double  lastECS; // Last value of the Elastic Cross Section
101  static G4int     lastI;   // The last position in the DAMDB
102};
103
104#endif
Note: See TracBrowser for help on using the repository browser.