Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4QFreeScattering.hh
Go to the documentation of this file.
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: not supported by cvs2svn $
28 //
29 //
30 // GEANT4 physics class: G4QFreeScattering -- header file
31 // M.V. Kossov, ITEP(Moscow), 24-OCT-01
32 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 15-Oct-2006
33 // ----------------------------------------------------------------------
34 // Short description: Provides percentage of quasi-free and quasi-elastic
35 // reactions in the inelastic reactions.
36 // ----------------------------------------------------------------------
37 
38 #ifndef G4QFreeScattering_h
39 #define G4QFreeScattering_h 1
40 
41 #include "globals.hh"
42 #include "G4ios.hh"
43 #include "Randomize.hh"
44 #include "G4QThd.hh"
45 #include <vector>
46 #include "G4QPDGCode.hh"
47 #include "G4QHadronVector.hh"
48 
50 {
51  protected:
52 
53  G4QFreeScattering(); // Constructor
54 
55  public:
56 
57  ~G4QFreeScattering(); // Destructor
58 
59  static G4QFreeScattering* GetPointer(); // Gives a pointer to this singletone
60 
61  // scatter (pPDG,p4M) on a virtual nucleon (NPDG,N4M), result: final pair(newN4M,newp4M)
62  // if(newN4M.e()==0.) - below threshold, XS=0, no scattering of the projectile happened
63  std::pair<G4LorentzVector,G4LorentzVector> Scatter(G4int NPDG, G4LorentzVector N4M,
64  G4int pPDG, G4LorentzVector p4M);
65  // Inelastic pion production Pi+N+H by (pPDG,p4M) on a virtual nucleon (NPDG,N4M)
66  // Normally there are 3 QHadrons in the output, if ptr=0 -> DoNothing (under threshold)
68 
69  // hN El & Tot XS (IU) mean over nucleons of (Z,N): on p -> (Z=1,N=0), on n -> (Z=0,N=1)
70  std::pair<G4double,G4double> GetElTotMean(G4double pIU, G4int hPDG, G4int Z, G4int N);
71 
72  // For hadron PDG with momentum Mom (GeV/c) on F(p/n) calculate <sig_el,sig_tot> pair(mb)
73  // F=true corresponds to the Neutron target, F=false corresponds to the Proton target
74  std::pair<G4double,G4double> GetElTotXS(G4double Mom, G4int PDG, G4bool F);//<sigEl,sigT>
75  std::pair<G4double,G4double> FetchElTot(G4double pGeV,G4int PDG,G4bool F);//<E,T>fromAMDB
76 
77  // This member function is in internal CHIPS units and must not be used externally
78  std::pair<G4double,G4double> CalcElTot(G4double pGeV,G4int Index);//(sigEl,sigTot)(Index)
79 
80  // Body
81  private:
82  static std::vector<std::pair<G4double,G4double>*> vX; // Vector of ETPointers to LogTable
83 };
84 #endif