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: G4QuasiElRatios -- 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 // This class has been extracted from the CHIPS model. 00035 // All the dependencies on CHIPS classes have been removed. 00036 // Short description: Provides percentage of quasi-free and quasi-elastic 00037 // reactions in the inelastic reactions. 00038 // ---------------------------------------------------------------------- 00039 00040 #ifndef G4QuasiElRatios_h 00041 #define G4QuasiElRatios_h 1 00042 00043 #include "globals.hh" 00044 #include "G4ios.hh" 00045 #include "Randomize.hh" 00046 #include <vector> 00047 #include "G4LorentzVector.hh" 00048 00049 #include "G4ChipsProtonElasticXS.hh" 00050 #include "G4ChipsNeutronElasticXS.hh" 00051 00052 00053 class G4QuasiElRatios 00054 { 00055 protected: 00056 00057 G4QuasiElRatios(); // Constructor 00058 00059 public: 00060 00061 ~G4QuasiElRatios(); // Destructor 00062 00063 static G4QuasiElRatios* GetPointer(); // Gives a pointer to this singletone 00064 00065 // Pair(QuasiFree/Inelastic,QuasiElastic/QuasiFree) 00066 std::pair<G4double,G4double> GetRatios(G4double pIU, G4int prPDG, G4int tgZ, G4int tgN); 00067 // ChargeExchange/QuasiElastic factor pair<for protons (Z), for neutrons(N)> 00068 std::pair<G4double,G4double> GetChExFactor(G4double pIU, G4int pPDG, G4int Z, G4int N); 00069 // scatter (pPDG,p4M) on a virtual nucleon (NPDG,N4M), result: final pair(newN4M,newp4M) 00070 // if(newN4M.e()==0.) - below threshold, XS=0, no scattering of the projectile happened 00071 std::pair<G4LorentzVector,G4LorentzVector> Scatter(G4int NPDG, G4LorentzVector N4M, 00072 G4int pPDG, G4LorentzVector p4M); 00073 // ChExer (pPDG,p4M) on a virtual nucleon (NPDG,N4M), result: final pair(newN4M,newp4M) 00074 // if(newN4M.e()==0.) - keep projectile, XS=0, no interaction of the progectile happened 00075 // User should himself change the charge (PDG) (e.g. pn->np, pi+n->pi0p, pi-p->pi0n etc.) 00076 // Recepy: change target n to p or taget p to n and conserve enrgy, changing projectile 00077 // Do not use for the nucleon, as it is already included in quasielastic, and for pi0. 00078 std::pair<G4LorentzVector,G4LorentzVector> ChExer(G4int NPDG, G4LorentzVector N4M, 00079 G4int pPDG, G4LorentzVector p4M); 00080 // Mean hN El and Tot XS(IU) for the isotopic (Z,N): on p -> (Z=1,N=0), on n -> (Z=0,N=1) 00081 std::pair<G4double,G4double> GetElTot(G4double pIU, G4int hPDG, G4int Z, G4int N); //(IU) 00082 00083 // Calculate ChEx/El ratio coefficient (p is in independent units, (Z,N) is a target) 00084 G4double ChExElCoef(G4double p, G4int Z, G4int N, G4int pPDG); 00085 00086 // For hadron PDG with momentum Mom (GeV/c) on F(p/n) calculate <sig_el,sig_tot> pair(mb) 00087 // F=true corresponds to the Nroton target, F=false corresponds to the Proton target 00088 std::pair<G4double,G4double> GetElTotXS(G4double Mom, G4int PDG, G4bool F);//<sigEl,sigT> 00089 std::pair<G4double,G4double> FetchElTot(G4double pGeV,G4int PDG,G4bool F);//<E,T>fromAMDB 00090 00091 G4bool RelDecayIn2(G4LorentzVector& theMomentum, G4LorentzVector& f4Mom, 00092 G4LorentzVector& s4Mom, G4LorentzVector& dir, 00093 G4double maxCost = 1., G4double minCost = -1.); 00094 00095 private: 00096 G4ChipsProtonElasticXS* PCSmanager; 00097 G4ChipsNeutronElasticXS* NCSmanager; 00098 00099 // These working member functions are in CHIPS units and must not be used externally 00100 G4double GetQF2IN_Ratio(G4double TotCS_mb, G4int A); // QuasiFree/Inelastic (fast) 00101 G4double CalcQF2IN_Ratio(G4double TCSmb, G4int A); // R=QuasuFree/Inelastic (sig_t in mb) 00102 std::pair<G4double,G4double> CalcElTot(G4double pGeV,G4int Index);//(sigEl,sigTot)(Index) 00103 00104 // Body 00105 private: 00106 static std::vector<G4double*> vT; // Vector of pointers to LinTable 00107 static std::vector<G4double*> vL; // Vector of pointers to LogTable 00108 static std::vector<std::pair<G4double,G4double>*> vX; // Vector of ETPointers to LogTable 00109 }; 00110 #endif