G4ChipsNeutronElasticXS.hh

Go to the documentation of this file.
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: G4ChipsNeutronElasticXS -- header file
00031 // M.V. Kossov, ITEP(Moscow), 24-OCT-01
00032 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 12-Jan-2010 (from G4QElCrSect)
00033 //
00034 // -------------------------------------------------------------------------------
00035 // Short description: Interaction cross-sections for the elastic process. 
00036 // Class extracted from CHIPS and integrated in Geant4 by W.Pokorski
00037 // -------------------------------------------------------------------------------
00038 
00039 
00040 #ifndef G4ChipsNeutronElasticXS_h
00041 #define G4ChipsNeutronElasticXS_h 1
00042 
00043 #include <vector>
00044 #include "Randomize.hh"
00045 #include "G4VCrossSectionDataSet.hh"
00046 
00047 class G4ChipsNeutronElasticXS : public G4VCrossSectionDataSet
00048 {
00049 
00050 public:
00051 
00052   G4ChipsNeutronElasticXS();               // Constructor
00053 
00054   ~G4ChipsNeutronElasticXS();
00055 
00056   static const char* Default_Name() {return "ChipsNeutronElasticXS";}
00057 
00058   virtual G4bool IsIsoApplicable(const G4DynamicParticle* Pt, G4int Z, G4int A,    
00059                                  const G4Element* elm,
00060                                  const G4Material* mat );
00061 
00062   // At present momentum (pMom) in MeV/c, CS in mb (@@ Units)
00063   virtual G4double GetIsoCrossSection(const G4DynamicParticle*, G4int tgZ, G4int A,  
00064                                       const G4Isotope* iso = 0,
00065                                       const G4Element* elm = 0,
00066                                       const G4Material* mat = 0);
00067 
00068   virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg);
00069 
00070   G4double GetExchangeT(G4int tZ, G4int tN, G4int pPDG); // Randomizes -t=Q2 (in IU=MeV^2)
00071   G4double GetHMaxT();                   // Currrent Max(-t=Q2)/2. (in IU=MeV^2)
00072 
00073 private:
00074 
00075   G4double CalculateCrossSection(G4bool CS, G4int F, G4int I, G4int pPDG, G4int Z, G4int N,
00076                                                                               G4double pP);
00077 
00078   G4double GetSlope(G4int tZ, G4int tN, G4int pPDG);     // Slope of the 1st diff. maximum
00079 
00080   G4double GetPTables(G4double lpP, G4double lPm, G4int PDG, G4int tZ, G4int tN); // newLP
00081   G4double GetTabValues(G4double lp, G4int pPDG, G4int tgZ, G4int tgN); // return CS(Si/Bi)
00082   G4double GetQ2max(G4int pPDG, G4int tgZ, G4int tgN, G4double pP); // return -t=Q2
00083 
00084 // Body
00085 private:
00086   // --- Data formating AMDB (define the precalculated table structure) ---
00087   const G4int nPoints;// #of points in the AMDB tables     
00088   const G4int nLast;  // the Last element in the table
00089   G4double    lPMin;  // Min tabulated logarithmic Momentum  
00090   G4double    lPMax;  // Max tabulated logarithmic Momentum  
00091   G4double    dlnP;   // Log step in the table     
00092   // ---- Local (for particular pP, pPDG, tZ, tN) -----
00093   G4bool    onlyCS;   // flag to calculate only CS (not S1/B1,S2/B2,S3/B3)
00094   G4double  lastSIG;  // Last calculated cross section
00095   G4double  lastLP;   // Last log(mom_of_the_incident_hadron in GeV)
00096   G4double  lastTM;   // Last t_maximum                       
00097   G4int     lastN;    // The last N of calculated nucleus
00098   G4int     lastZ;    // The last Z of calculated nucleus
00099   G4double  lastP;    // Last used in the cross section Momentum
00100   G4double  lastTH;   // Last value of the Momentum Threshold
00101   G4double  lastCS;   // Last value of the Cross Section
00102   G4int     lastI;    // The last position in the DAMDB
00103   G4double  theSS;    // The Last squared slope of first diffruction 
00104   G4double  theS1;    // The Last mantissa of first diffruction 
00105   G4double  theB1;    // The Last slope of first diffruction    
00106   G4double  theS2;    // The Last mantissa of second diffruction
00107   G4double  theB2;    // The Last slope of second diffruction   
00108   G4double  theS3;    // The Last mantissa of third diffruction 
00109   G4double  theB3;    // The Last slope of third diffruction    
00110   G4double  theS4;    // The Last mantissa of 4-th diffruction 
00111   G4double  theB4;    // The Last slope of 4-th diffruction    
00112   // ---- Global (AMBD of P-dependent tables for pPDG,tZ,tN) -----
00113   G4int     lastTZ;   // Last atomic number of the target
00114   G4int     lastTN;   // Last number of neutrons of the target
00115   G4double  lastPIN;  // Last initialized max momentum
00116   G4double* lastCST;  // Last cross-section table
00117   G4double* lastPAR;  // Last parameters for functional calculation
00118   G4double* lastSST;  // E-dep of squared slope of the first difruction 
00119   G4double* lastS1T;  // E-dep of mantissa of the first difruction 
00120   G4double* lastB1T;  // E-dep of the slope of the first difruction
00121   G4double* lastS2T;  // E-dep of mantissa of the second difruction
00122   G4double* lastB2T;  // E-dep of the slope of theSecond difruction
00123   G4double* lastS3T;  // E-dep of mantissa of the third difruction 
00124   G4double* lastB3T;  // E-dep of the slope of the third difruction
00125   G4double* lastS4T;  // E-dep of mantissa of the 4-th difruction 
00126   G4double* lastB4T;  // E-dep of the slope of the 4-th difruction
00127 
00128   std::vector <G4double*> PAR;   // Vector of parameters for functional calculations
00129   std::vector <G4double*> CST;   // Vector of cross-section table
00130   std::vector <G4double*> SST;   // Vector of the first squared slope
00131   std::vector <G4double*> S1T;   // Vector of the first mantissa
00132   std::vector <G4double*> B1T;   // Vector of the first slope
00133   std::vector <G4double*> S2T;   // Vector of the secon mantissa
00134   std::vector <G4double*> B2T;   // Vector of the second slope
00135   std::vector <G4double*> S3T;   // Vector of the third mantissa
00136   std::vector <G4double*> B3T;   // Vector of the third slope
00137   std::vector <G4double*> S4T;   // Vector of the 4-th mantissa (gloria)
00138   std::vector <G4double*> B4T;   // Vector of the 4-th slope    (gloria)
00139  };
00140 #endif

Generated on Mon May 27 17:47:53 2013 for Geant4 by  doxygen 1.4.7