G4QFreeScattering.hh

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 // GEANT4 tag $Name: not supported by cvs2svn $
00028 //
00029 //
00030 // GEANT4 physics class: G4QFreeScattering -- header file
00031 // M.V. Kossov, ITEP(Moscow), 24-OCT-01
00032 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 15-Oct-2006
00033 // ----------------------------------------------------------------------
00034 // Short description: Provides percentage of quasi-free and quasi-elastic
00035 // reactions in the inelastic reactions.
00036 // ----------------------------------------------------------------------
00037 
00038 #ifndef G4QFreeScattering_h
00039 #define G4QFreeScattering_h 1
00040 
00041 #include "globals.hh"
00042 #include "G4ios.hh"
00043 #include "Randomize.hh"
00044 #include "G4QThd.hh"
00045 #include <vector>
00046 #include "G4QPDGCode.hh"
00047 #include "G4QHadronVector.hh"
00048 
00049 class G4QFreeScattering
00050 {
00051  protected:
00052 
00053   G4QFreeScattering();                 // Constructor
00054 
00055  public:
00056 
00057   ~G4QFreeScattering();                 // Destructor
00058 
00059   static G4QFreeScattering* GetPointer(); // Gives a pointer to this singletone
00060 
00061   // scatter (pPDG,p4M) on a virtual nucleon (NPDG,N4M), result: final pair(newN4M,newp4M)
00062   // if(newN4M.e()==0.) - below threshold, XS=0, no scattering of the projectile happened
00063   std::pair<G4LorentzVector,G4LorentzVector> Scatter(G4int NPDG, G4LorentzVector N4M,
00064                                                      G4int pPDG, G4LorentzVector p4M);
00065   // Inelastic pion production Pi+N+H by (pPDG,p4M) on a virtual nucleon (NPDG,N4M)
00066   // Normally there are 3 QHadrons in the output, if ptr=0 -> DoNothing (under threshold) 
00067   G4QHadronVector* InElF(G4int NPDG, G4LorentzVector N4M, G4int pPDG, G4LorentzVector p4M);
00068 
00069   // hN El & Tot XS (IU) mean over nucleons of (Z,N): on p -> (Z=1,N=0), on n -> (Z=0,N=1)
00070   std::pair<G4double,G4double> GetElTotMean(G4double pIU, G4int hPDG, G4int Z, G4int N);
00071 
00072   // For hadron PDG with momentum Mom (GeV/c) on F(p/n) calculate <sig_el,sig_tot> pair(mb)
00073   // F=true corresponds to the Neutron target, F=false corresponds to the Proton target
00074   std::pair<G4double,G4double> GetElTotXS(G4double Mom, G4int PDG, G4bool F);//<sigEl,sigT>
00075   std::pair<G4double,G4double> FetchElTot(G4double pGeV,G4int PDG,G4bool F);//<E,T>fromAMDB
00076 
00077   // This member function is in internal CHIPS units and must not be used externally
00078   std::pair<G4double,G4double> CalcElTot(G4double pGeV,G4int Index);//(sigEl,sigTot)(Index)
00079 
00080  // Body
00081  private:
00082   static std::vector<std::pair<G4double,G4double>*> vX; // Vector of ETPointers to LogTable
00083 };
00084 #endif

Generated on Mon May 27 17:49:33 2013 for Geant4 by  doxygen 1.4.7