// // ******************************************************************** // * 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: G4QKaonPlusElasticCrossSection.cc,v 1.1 2010/02/16 07:53:05 mkossov Exp $ // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ // // // G4 Physics class: G4QKaonPlusElasticCrossSection 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 "G4QKaonPlusElasticCrossSection.hh" // Initialization of the static parameters const G4int G4QKaonPlusElasticCrossSection::nPoints=128;//#ofPt in AMDB table(>anyPar)/D const G4int G4QKaonPlusElasticCrossSection::nLast=nPoints-1;// theLastElement inTable /D G4double G4QKaonPlusElasticCrossSection::lPMin=-8.; //Min tabulatedLogarithmMomentum/D G4double G4QKaonPlusElasticCrossSection::lPMax= 8.; //Max tabulatedLogarithmMomentum/D G4double G4QKaonPlusElasticCrossSection::dlnP=(lPMax-lPMin)/nLast;// LogStep inTable /D G4bool G4QKaonPlusElasticCrossSection::onlyCS=true;//Flag toCalculOnlyCS(not Si/Bi)/L G4double G4QKaonPlusElasticCrossSection::lastSIG=0.; //Last calculated cross section /L G4double G4QKaonPlusElasticCrossSection::lastLP=-10.;//LastLog(mom_of IncidentHadron)/L G4double G4QKaonPlusElasticCrossSection::lastTM=0.; //Last t_maximum /L G4double G4QKaonPlusElasticCrossSection::theSS=0.; //TheLastSqSlope of 1st difr.Max/L G4double G4QKaonPlusElasticCrossSection::theS1=0.; //TheLastMantissa of 1st difrMax/L G4double G4QKaonPlusElasticCrossSection::theB1=0.; //TheLastSlope of 1st difructMax/L G4double G4QKaonPlusElasticCrossSection::theS2=0.; //TheLastMantissa of 2nd difrMax/L G4double G4QKaonPlusElasticCrossSection::theB2=0.; //TheLastSlope of 2nd difructMax/L G4double G4QKaonPlusElasticCrossSection::theS3=0.; //TheLastMantissa of 3d difr.Max/L G4double G4QKaonPlusElasticCrossSection::theB3=0.; //TheLastSlope of 3d difruct.Max/L G4double G4QKaonPlusElasticCrossSection::theS4=0.; //TheLastMantissa of 4th difrMax/L G4double G4QKaonPlusElasticCrossSection::theB4=0.; //TheLastSlope of 4th difructMax/L G4int G4QKaonPlusElasticCrossSection::lastTZ=0; // Last atomic number of theTarget G4int G4QKaonPlusElasticCrossSection::lastTN=0; // Last # of neutrons in theTarget G4double G4QKaonPlusElasticCrossSection::lastPIN=0.;// Last initialized max momentum G4double* G4QKaonPlusElasticCrossSection::lastCST=0; // Elastic cross-section table G4double* G4QKaonPlusElasticCrossSection::lastPAR=0; // ParametersForFunctionCalculation G4double* G4QKaonPlusElasticCrossSection::lastSST=0; // E-dep ofSqardSlope of 1st difMax G4double* G4QKaonPlusElasticCrossSection::lastS1T=0; // E-dep of mantissa of 1st dif.Max G4double* G4QKaonPlusElasticCrossSection::lastB1T=0; // E-dep of the slope of 1st difMax G4double* G4QKaonPlusElasticCrossSection::lastS2T=0; // E-dep of mantissa of 2nd difrMax G4double* G4QKaonPlusElasticCrossSection::lastB2T=0; // E-dep of the slope of 2nd difMax G4double* G4QKaonPlusElasticCrossSection::lastS3T=0; // E-dep of mantissa of 3d difr.Max G4double* G4QKaonPlusElasticCrossSection::lastB3T=0; // E-dep of the slope of 3d difrMax G4double* G4QKaonPlusElasticCrossSection::lastS4T=0; // E-dep of mantissa of 4th difrMax G4double* G4QKaonPlusElasticCrossSection::lastB4T=0; // E-dep of the slope of 4th difMax G4int G4QKaonPlusElasticCrossSection::lastN=0; // The last N of calculated nucleus G4int G4QKaonPlusElasticCrossSection::lastZ=0; // The last Z of calculated nucleus G4double G4QKaonPlusElasticCrossSection::lastP=0.; // LastUsed inCrossSection Momentum G4double G4QKaonPlusElasticCrossSection::lastTH=0.; // Last threshold momentum G4double G4QKaonPlusElasticCrossSection::lastCS=0.; // Last value of the Cross Section G4int G4QKaonPlusElasticCrossSection::lastI=0; // The last position in the DAMDB std::vector G4QKaonPlusElasticCrossSection::PAR;//Vector ofParsForFunctCalcul std::vector G4QKaonPlusElasticCrossSection::CST;//Vector ofCrossSection table std::vector G4QKaonPlusElasticCrossSection::SST;//Vector ofThe1st SquardSlope std::vector G4QKaonPlusElasticCrossSection::S1T;//Vector of the 1st mantissa std::vector G4QKaonPlusElasticCrossSection::B1T;//Vector of the1st slope std::vector G4QKaonPlusElasticCrossSection::S2T;//Vector of the2nd mantissa std::vector G4QKaonPlusElasticCrossSection::B2T;//Vector of the2nd slope std::vector G4QKaonPlusElasticCrossSection::S3T;//Vector of the3d mantissa std::vector G4QKaonPlusElasticCrossSection::B3T;//Vector of the3d slope std::vector G4QKaonPlusElasticCrossSection::S4T;//Vector ofThe4th mantissa(g) std::vector G4QKaonPlusElasticCrossSection::B4T;//Vector ofThe4th slope(glor) G4QKaonPlusElasticCrossSection::G4QKaonPlusElasticCrossSection() { } G4QKaonPlusElasticCrossSection::~G4QKaonPlusElasticCrossSection() { 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<<"G4QKaPlusElCS::GetCS:>>>f="<Found pPDG="< CS=0"<New(inDB) Calculated CS="<lastTH) // Correct the threshold { #ifdef pdebug G4cout<<"G4QKaonPlusElCS::GetCS: T="< Threshold="<Threshold="< fin="< ILP="<= max="< ILP="< p+p=p+p { #ifdef tdebug G4cout<<"G4QKaonPlusElCS::GetExT: TM="<"<=-1.||theB1<=1.))G4cout<<"*NAN*G4QKaonPlusElCS::GetSlope:B1="<92) { G4cout<<"*Warning*G4QKaonPlusElasticCS::GetTabV:(1-92)NoIsotopes for Z="<0"<