// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4QKaonMinusElasticCrossSection.cc,v 1.1 2010/02/16 07:53:05 mkossov Exp $ // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ // // // G4 Physics class: G4QKaonMinusElasticCrossSection for pA elastic cross sections // Created: M.V. Kossov, CERN/ITEP(Moscow), 5-Feb-2010 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 5-Feb-2010 // //================================================================================ // Short description: Interaction cross-sections for the G4QElastic process // ------------------------------------------------------------------------------- //#define debug //#define isodebug //#define pdebug //#define ppdebug //#define tdebug //#define sdebug #include "G4QKaonMinusElasticCrossSection.hh" // Initialization of the static parameters const G4int G4QKaonMinusElasticCrossSection::nPoints=128;//#ofPt in AMDB table(>anyPar)/D const G4int G4QKaonMinusElasticCrossSection::nLast=nPoints-1;// theLastElement inTable /D G4double G4QKaonMinusElasticCrossSection::lPMin=-8.; //Min tabulatedLogarithmMomentum/D G4double G4QKaonMinusElasticCrossSection::lPMax= 8.; //Max tabulatedLogarithmMomentum/D G4double G4QKaonMinusElasticCrossSection::dlnP=(lPMax-lPMin)/nLast;// LogStep inTable /D G4bool G4QKaonMinusElasticCrossSection::onlyCS=true;//Flag toCalculOnlyCS(not Si/Bi)/L G4double G4QKaonMinusElasticCrossSection::lastSIG=0.; //Last calculated cross section /L G4double G4QKaonMinusElasticCrossSection::lastLP=-10.;//LastLog(mom_of IncidentHadron)/L G4double G4QKaonMinusElasticCrossSection::lastTM=0.; //Last t_maximum /L G4double G4QKaonMinusElasticCrossSection::theSS=0.; //TheLastSqSlope of 1st difr.Max/L G4double G4QKaonMinusElasticCrossSection::theS1=0.; //TheLastMantissa of 1st difrMax/L G4double G4QKaonMinusElasticCrossSection::theB1=0.; //TheLastSlope of 1st difructMax/L G4double G4QKaonMinusElasticCrossSection::theS2=0.; //TheLastMantissa of 2nd difrMax/L G4double G4QKaonMinusElasticCrossSection::theB2=0.; //TheLastSlope of 2nd difructMax/L G4double G4QKaonMinusElasticCrossSection::theS3=0.; //TheLastMantissa of 3d difr.Max/L G4double G4QKaonMinusElasticCrossSection::theB3=0.; //TheLastSlope of 3d difruct.Max/L G4double G4QKaonMinusElasticCrossSection::theS4=0.; //TheLastMantissa of 4th difrMax/L G4double G4QKaonMinusElasticCrossSection::theB4=0.; //TheLastSlope of 4th difructMax/L G4int G4QKaonMinusElasticCrossSection::lastTZ=0; // Last atomic number of theTarget G4int G4QKaonMinusElasticCrossSection::lastTN=0; // Last # of neutrons in theTarget G4double G4QKaonMinusElasticCrossSection::lastPIN=0.;// Last initialized max momentum G4double* G4QKaonMinusElasticCrossSection::lastCST=0; // Elastic cross-section table G4double* G4QKaonMinusElasticCrossSection::lastPAR=0; // ParametersForFunctionCalculation G4double* G4QKaonMinusElasticCrossSection::lastSST=0; // E-dep ofSqardSlope of 1st difMax G4double* G4QKaonMinusElasticCrossSection::lastS1T=0; // E-dep of mantissa of 1st dif.Max G4double* G4QKaonMinusElasticCrossSection::lastB1T=0; // E-dep of the slope of 1st difMax G4double* G4QKaonMinusElasticCrossSection::lastS2T=0; // E-dep of mantissa of 2nd difrMax G4double* G4QKaonMinusElasticCrossSection::lastB2T=0; // E-dep of the slope of 2nd difMax G4double* G4QKaonMinusElasticCrossSection::lastS3T=0; // E-dep of mantissa of 3d difr.Max G4double* G4QKaonMinusElasticCrossSection::lastB3T=0; // E-dep of the slope of 3d difrMax G4double* G4QKaonMinusElasticCrossSection::lastS4T=0; // E-dep of mantissa of 4th difrMax G4double* G4QKaonMinusElasticCrossSection::lastB4T=0; // E-dep of the slope of 4th difMax G4int G4QKaonMinusElasticCrossSection::lastN=0; // The last N of calculated nucleus G4int G4QKaonMinusElasticCrossSection::lastZ=0; // The last Z of calculated nucleus G4double G4QKaonMinusElasticCrossSection::lastP=0.; // LastUsed inCrossSection Momentum G4double G4QKaonMinusElasticCrossSection::lastTH=0.; // Last threshold momentum G4double G4QKaonMinusElasticCrossSection::lastCS=0.; // Last value of the Cross Section G4int G4QKaonMinusElasticCrossSection::lastI=0; // The last position in the DAMDB std::vector G4QKaonMinusElasticCrossSection::PAR;//Vector ofParsForFunctCalcul std::vector G4QKaonMinusElasticCrossSection::CST;//Vector ofCrossSection table std::vector G4QKaonMinusElasticCrossSection::SST;//Vector ofThe1st SquardSlope std::vector G4QKaonMinusElasticCrossSection::S1T;//Vector of the 1st mantissa std::vector G4QKaonMinusElasticCrossSection::B1T;//Vector of the1st slope std::vector G4QKaonMinusElasticCrossSection::S2T;//Vector of the2nd mantissa std::vector G4QKaonMinusElasticCrossSection::B2T;//Vector of the2nd slope std::vector G4QKaonMinusElasticCrossSection::S3T;//Vector of the3d mantissa std::vector G4QKaonMinusElasticCrossSection::B3T;//Vector of the3d slope std::vector G4QKaonMinusElasticCrossSection::S4T;//Vector ofThe4th mantissa(g) std::vector G4QKaonMinusElasticCrossSection::B4T;//Vector ofThe4th slope(glor) G4QKaonMinusElasticCrossSection::G4QKaonMinusElasticCrossSection() { } G4QKaonMinusElasticCrossSection::~G4QKaonMinusElasticCrossSection() { std::vector::iterator pos; for (pos=CST.begin(); pos colN; // Vector of N for calculated nuclei (isotops) static std::vector colZ; // Vector of Z for calculated nuclei (isotops) static std::vector colP; // Vector of last momenta for the reaction static std::vector colTH; // Vector of energy thresholds for the reaction static std::vector colCS; // Vector of last cross sections for the reaction // ***---*** End of the mandatory Static Definitions of the Associative Memory ***---*** G4double pEn=pMom; onlyCS=fCS; #ifdef pdebug G4cout<<"G4QKaMiusElCS::GetCS:>>>f="<Found pPDG="< CS=0"<New(inDB) Calculated CS="<lastTH) // Correct the threshold { #ifdef pdebug G4cout<<"G4QKaonMinusElCS::GetCS: T="< Threshold="<Threshold="< fin="< ILP="<= max="< ILP="< p+p=p+p { #ifdef tdebug G4cout<<"G4QKaonMinusElCS::GetExT: TM="<"<=-1.||theB1<=1.))G4cout<<"*NAN*G4QKaonMinusElCS::GetSlope:B1="<92) { G4cout<<"*Warning*G4QKaonMinusElasticCS::GetTabV:(1-92)NoIsotopes for Z="<0"<