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 // $Id$ 00028 // 00029 // 00030 // GEANT4 physics class: G4QNuNuNuclearCrossSection -- header file 00031 // M.V. Kossov, CERN-ITEP(Moscow), 20-DEC-2005 00032 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 20-DEC-2005 00033 // 00034 // Short description: this G4 singletone class calculates (nu,nu) Nuclear cross section 00035 // (Energy limit: E<320GeV->badExtrapolation) for a particular isotope (proportional to A) 00036 // **************************************************************************************** 00037 00038 #ifndef G4QNuNuNuclearCrossSection_h 00039 #define G4QNuNuNuclearCrossSection_h 1 00040 00041 #include "G4ParticleTable.hh" 00042 #include "G4NucleiProperties.hh" 00043 #include <vector> 00044 #include "Randomize.hh" 00045 #include "G4MuonPlus.hh" 00046 #include "G4MuonMinus.hh" 00047 #include "G4VQCrossSection.hh" 00048 00049 class G4QNuNuNuclearCrossSection : public G4VQCrossSection 00050 { 00051 protected: 00052 00053 G4QNuNuNuclearCrossSection() {}; 00054 00055 public: 00056 00057 ~G4QNuNuNuclearCrossSection(); 00058 00059 static G4VQCrossSection* GetPointer(); // Gives a pointer to this singletone 00060 00061 G4double ThresholdEnergy(G4int Z, G4int N, G4int PDG=14); 00062 00063 // At present momentum (pMom) must be in GeV (@@ Units) 00064 virtual G4double GetCrossSection(G4bool fCS, G4double pMom, G4int tgZ, G4int tgN, 00065 G4int pPDG=0); 00066 00067 G4double CalculateCrossSection(G4bool CS, G4int F, G4int I, G4int PDG, G4int Z, 00068 G4int N, G4double Momentum); 00069 00070 G4int GetExchangePDGCode(); 00071 00072 G4double GetDirectPart(G4double Q2); 00073 00074 G4double GetNPartons(G4double Q2); 00075 00076 G4double GetQEL_ExchangeQ2(); 00077 00078 G4double GetNQE_ExchangeQ2(); 00079 00080 // Get static members 00081 G4double GetLastTOTCS() {return lastSig;} 00082 G4double GetLastQELCS() {return lastQEL;} 00083 00084 private: 00085 G4int GetFunctions(G4int z, G4int n, G4double* t, G4double* q, G4double* e); 00086 G4double HighEnergyTX(G4double lE); 00087 G4double HighEnergyQE(G4double lE); 00088 00089 // Body 00090 private: 00091 static G4bool onlyCS; // flag to calculate only CS (not TX & QE) 00092 static G4double lastSig; // Last calculated total cross section 00093 static G4double lastQEL; // Last calculated quasi-elastic cross section 00094 static G4int lastL; // Last bin used in the cross section TheLastBin 00095 static G4double lastE; // Last energy used in the cross section Energy 00096 static G4double* lastEN; // Pointer to the last array of the energy axis 00097 static G4double* lastTX; // Pointer to the last array of the total CS function 00098 static G4double* lastQE; // Pointer to the last array of the QE CS function 00099 static G4int lastPDG; // The last projectile PDG 00100 static G4int lastN; // The last N of calculated nucleus 00101 static G4int lastZ; // The last Z of calculated nucleus 00102 static G4double lastP; // Last used in the cross section Momentum 00103 static G4double lastTH; // Last value of the Momentum Threshold 00104 static G4double lastCS; // Last value of the Cross Section 00105 static G4int lastI; // The last position in the DAMDB 00106 static std::vector <G4double*>* TX; // Vector of pointers to the TX tabulated functions 00107 static std::vector <G4double*>* QE; // Vector of pointers to the QE tabulated functions 00108 }; 00109 00110 #endif