Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // 28 // 29 // GEANT4 physics class: G4ChipsAntiBaryonElas 30 // M.V. Kossov, ITEP(Moscow), 5-Feb-2010 31 // The last update: M.V. Kossov, CERN/ITEP (Mo 32 // 33 // 34 // ------------------------------------------- 35 // Short description: Interaction cross-sectio 36 // Class extracted from CHIPS and integrated i 37 // ------------------------------------------- 38 39 #ifndef G4ChipsAntiBaryonElasticXS_h 40 #define G4ChipsAntiBaryonElasticXS_h 1 41 42 #include <vector> 43 #include "Randomize.hh" 44 #include "G4VCrossSectionDataSet.hh" 45 46 class G4ChipsAntiBaryonElasticXS : public G4V 47 { 48 49 public: 50 51 G4ChipsAntiBaryonElasticXS(); 52 53 ~G4ChipsAntiBaryonElasticXS(); 54 55 static const char* Default_Name() {return "C 56 57 virtual void CrossSectionDescription(std::os 58 59 virtual G4bool IsIsoApplicable(const G4Dynam 60 const G4Element* elm, 61 const G4Material* mat ); 62 63 // At present momentum (pMom) in MeV/c, CS i 64 virtual G4double GetIsoCrossSection(const G4 65 const G4Isotope* iso = 0, 66 const G4Element* elm = 0, 67 const G4Material* mat = 0); 68 69 virtual G4double GetChipsCrossSection(G4doub 70 71 G4double GetExchangeT(G4int tZ, G4int tN, G4 72 73 private: 74 75 G4double CalculateCrossSection(G4bool CS, G4 76 77 G4double GetSlope(G4int tZ, G4int tN, G4int 78 G4double GetHMaxT(); // Cu 79 80 G4double GetPTables(G4double lpP, G4double l 81 G4double GetTabValues(G4double lp, G4int pPD 82 G4double GetQ2max(G4int pPDG, G4int tgZ, G4i 83 84 // Body 85 private: 86 87 // --- Data formating AMDB (define the preca 88 const G4int nPoints;// #of points in the AM 89 const G4int nLast; // the Last element in 90 G4double lPMin; // Min tabulated logari 91 G4double lPMax; // Max tabulated logari 92 G4double dlnP; // Log step in the tabl 93 // ---- Local (for particular pP, pPDG, tZ, 94 G4bool onlyCS; // flag to calculate on 95 G4double lastSIG; // Last calculated cros 96 G4double lastLP; // Last log(mom_of_the_ 97 G4double lastTM; // Last t_maximum 98 G4int lastN; // The last N of calcul 99 G4int lastZ; // The last Z of calcul 100 G4double lastP; // Last used in the cro 101 G4double lastTH; // Last value of the Mo 102 G4double lastCS; // Last value of the Cr 103 G4int lastI; // The last position in 104 G4double theSS; // The Last squared slo 105 G4double theS1; // The Last mantissa of 106 G4double theB1; // The Last slope of fi 107 G4double theS2; // The Last mantissa of 108 G4double theB2; // The Last slope of se 109 G4double theS3; // The Last mantissa of 110 G4double theB3; // The Last slope of th 111 G4double theS4; // The Last mantissa of 112 G4double theB4; // The Last slope of 4- 113 // ---- Global (AMBD of P-dependent tables f 114 G4int lastTZ; // Last atomic number o 115 G4int lastTN; // Last number of neutr 116 G4double lastPIN; // Last initialized max 117 G4double* lastCST; // Last cross-section t 118 G4double* lastPAR; // Last parameters for 119 G4double* lastSST; // E-dep of squared slo 120 G4double* lastS1T; // E-dep of mantissa of 121 G4double* lastB1T; // E-dep of the slope o 122 G4double* lastS2T; // E-dep of mantissa of 123 G4double* lastB2T; // E-dep of the slope o 124 G4double* lastS3T; // E-dep of mantissa of 125 G4double* lastB3T; // E-dep of the slope o 126 G4double* lastS4T; // E-dep of mantissa of 127 G4double* lastB4T; // E-dep of the slope o 128 129 std::vector <G4double*> PAR; // Vector of 130 std::vector <G4double*> CST; // Vector of 131 std::vector <G4double*> SST; // Vector of 132 std::vector <G4double*> S1T; // Vector of 133 std::vector <G4double*> B1T; // Vector of 134 std::vector <G4double*> S2T; // Vector of 135 std::vector <G4double*> B2T; // Vector of 136 std::vector <G4double*> S3T; // Vector of 137 std::vector <G4double*> B3T; // Vector of 138 std::vector <G4double*> S4T; // Vector of 139 std::vector <G4double*> B4T; // Vector of 140 141 std::vector <G4int> colN; // Vector of N f 142 std::vector <G4int> colZ; // Vector of Z f 143 std::vector <G4double> colP; // Vector of 144 std::vector <G4double> colTH; // Vector of 145 std::vector <G4double> colCS; // Vector of 146 147 std::vector <G4double> PIN; // Vector of 148 149 }; 150 #endif 151