// // ******************************************************************** // * 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. * // ******************************************************************** // // // The lust update: M.V. Kossov, CERN/ITEP(Moscow) 17-June-02 // GEANT4 tag $Name: hadr-chips-V09-03-08 $ // // // G4 Physics class: G4QKaonMinusNuclearCrossSection for gamma+A cross sections // Created: M.V. Kossov, CERN/ITEP(Moscow), 20-Dec-03 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 15-Feb-04 // -------------------------------------------------------------------------------- // **************************************************************************************** // This Header is a part of the CHIPS physics package (author: M. Kosov) // **************************************************************************************** // Short description: CHIPS cross-sections for kaon(minus)-nuclear interactions // ------------------------------------------------------------------------------------- // //#define debug //#define pdebug //#define debug3 //#define debugn //#define debugs #include "G4QKaonMinusNuclearCrossSection.hh" // Initialization of the G4double* G4QKaonMinusNuclearCrossSection::lastLEN=0; // Pointer to lastArray of LowEn CS G4double* G4QKaonMinusNuclearCrossSection::lastHEN=0; // Pointer to lastArray of HighEn CS G4int G4QKaonMinusNuclearCrossSection::lastN=0; // The last N of calculated nucleus G4int G4QKaonMinusNuclearCrossSection::lastZ=0; // The last Z of calculated nucleus G4double G4QKaonMinusNuclearCrossSection::lastP=0.; // Last used in CrossSection Momentum G4double G4QKaonMinusNuclearCrossSection::lastTH=0.; // Last threshold momentum G4double G4QKaonMinusNuclearCrossSection::lastCS=0.; // Last value of the Cross Section G4int G4QKaonMinusNuclearCrossSection::lastI=0; // The last position in the DAMDB std::vector* G4QKaonMinusNuclearCrossSection::LEN = new std::vector; std::vector* G4QKaonMinusNuclearCrossSection::HEN = new std::vector; // Returns Pointer to the G4VQCrossSection class G4VQCrossSection* G4QKaonMinusNuclearCrossSection::GetPointer() { static G4QKaonMinusNuclearCrossSection theCrossSection;//**Static body of Cross Section** return &theCrossSection; } G4QKaonMinusNuclearCrossSection::~G4QKaonMinusNuclearCrossSection() { G4int lens=LEN->size(); for(G4int i=0; isize(); for(G4int i=0; i 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 ***---*** #ifdef debug G4cout<<"G4QKmCS::GetCS:>>> f="< New (inDB) Calculated CS="<lastTH) // Correct the threshold (@@ No intermediate Zeros) { #ifdef debug G4cout<<"G4QKmCS::GetCS: New P="< Threshold="<G4QKmCrossSec::GetCrosSec: pPDG=-321, j="< CS=0 } else if(std::fabs(lastP-pMom)G4QKmCS::GetCroSec: P="<"<G4QKmNucCS::CalcCS:Tab for Z="<size(); if(sync!=I) { G4cerr<<"***G4QPiMinusNuclCS::CalcCrossSect: Sinc="<push_back(lastLEN); // remember the Low Energy Table HEN->push_back(lastHEN); // remember the High Energy Table } // End of creation of the new set of parameters } // End of parameters udate // ============================== NOW the Magic Formula ================================= #ifdef debug G4cout<<"G4QKmNCS::CalcCS:lTH="<