Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // ABLAXX statistical de-excitation model 26 // ABLAXX statistical de-excitation model 27 // Jose Luis Rodriguez, UDC (translation from << 27 // Jose Luis Rodriguez, CEA (translation from ABLA07 and contact person) 28 // Pekka Kaitaniemi, HIP (initial translation << 28 // Pekka Kaitaniemi, HIP (translation) 29 // Aleksandra Kelic, GSI (ABLA07 code) << 29 // Christelle Schmidt, IPNL (fission code) 30 // Davide Mancusi, CEA (contact person INCL) 30 // Davide Mancusi, CEA (contact person INCL) 31 // Aatos Heikkinen, HIP (project coordination) 31 // Aatos Heikkinen, HIP (project coordination) 32 // 32 // >> 33 #define ABLAXX_IN_GEANT4_MODE 1 33 34 34 #include "G4AblaVirtualData.hh" << 35 #include "globals.hh" 35 #include "globals.hh" 36 36 >> 37 #include "G4AblaVirtualData.hh" >> 38 >> 39 #ifdef ABLAXX_IN_GEANT4_MODE 37 G4AblaVirtualData::G4AblaVirtualData() {} 40 G4AblaVirtualData::G4AblaVirtualData() {} >> 41 #else >> 42 G4AblaVirtualData::G4AblaVirtualData(G4INCL::Config *) {} >> 43 #endif >> 44 G4AblaVirtualData::~G4AblaVirtualData() {} 38 45 39 G4bool G4AblaVirtualData::setAlpha(G4int A, G4 << 46 bool G4AblaVirtualData::setAlpha(int A, int Z, double value) 40 { 47 { 41 alpha[A][Z] = value; << 48 alpha[A][Z] = value; 42 49 43 return true; << 50 return true; 44 } 51 } 45 52 46 G4bool G4AblaVirtualData::setEcnz(G4int A, G4i << 53 bool G4AblaVirtualData::setEcnz(int A, int Z, double value) 47 { 54 { 48 ecnz[A][Z] = value; << 55 ecnz[A][Z] = value; 49 56 50 return true; << 57 return true; 51 } 58 } 52 59 53 G4bool G4AblaVirtualData::setVgsld(G4int A, G4 << 60 bool G4AblaVirtualData::setVgsld(int A, int Z, double value) 54 { 61 { 55 vgsld[A][Z] = value; << 62 vgsld[A][Z] = value; 56 63 57 return true; << 64 return true; 58 } 65 } 59 66 60 G4bool G4AblaVirtualData::setRms(G4int A, G4in << 67 bool G4AblaVirtualData::setPace2(int A, int Z, double value) 61 { 68 { 62 rms[A][Z] = value; << 69 pace2[A][Z] = value; 63 70 64 return true; << 71 return true; 65 } 72 } 66 73 67 G4bool G4AblaVirtualData::setMexp(G4int A, G4i << 74 bool G4AblaVirtualData::setRms(int A, int Z, double value) 68 { 75 { 69 mexp[A][Z] = value; << 76 rms[A][Z] = value; 70 77 71 return true; << 78 return true; 72 } 79 } 73 80 74 G4bool G4AblaVirtualData::setMexpID(G4int A, G << 81 bool G4AblaVirtualData::setMexp(int A, int Z, double value) 75 { 82 { 76 mexpid[A][Z] = value; << 83 mexp[A][Z] = value; 77 84 78 return true; << 85 return true; 79 } 86 } 80 87 81 G4bool G4AblaVirtualData::setBeta2(G4int A, G4 << 88 bool G4AblaVirtualData::setMexpID(int A, int Z, int value) 82 { 89 { 83 beta2[A][Z] = value; << 90 mexpid[A][Z] = value; 84 91 85 return true; << 92 return true; 86 } 93 } 87 94 88 G4bool G4AblaVirtualData::setBeta4(G4int A, G4 << 95 bool G4AblaVirtualData::setBeta2(int A, int Z, double value) 89 { 96 { 90 beta4[A][Z] = value; << 97 beta2[A][Z] = value; 91 98 92 return true; << 99 return true; 93 } 100 } 94 101 95 G4double G4AblaVirtualData::getAlpha(G4int A, << 102 bool G4AblaVirtualData::setBeta4(int A, int Z, double value) >> 103 { >> 104 beta4[A][Z] = value; 96 105 97 G4double G4AblaVirtualData::getEcnz(G4int A, G << 106 return true; >> 107 } 98 108 99 G4double G4AblaVirtualData::getVgsld(G4int A, << 100 109 101 G4double G4AblaVirtualData::getRms(G4int A, G4 << 110 double G4AblaVirtualData::getAlpha(int A, int Z) >> 111 { >> 112 return alpha[A][Z]; >> 113 } 102 114 103 G4double G4AblaVirtualData::getMexp(G4int A, G << 115 double G4AblaVirtualData::getEcnz(int A, int Z) >> 116 { >> 117 return ecnz[A][Z]; >> 118 } 104 119 105 G4int G4AblaVirtualData::getMexpID(G4int A, G4 << 120 double G4AblaVirtualData::getVgsld(int A, int Z) >> 121 { >> 122 return vgsld[A][Z]; >> 123 } 106 124 107 G4double G4AblaVirtualData::getBeta2(G4int A, << 125 double G4AblaVirtualData::getPace2(int A, int Z) >> 126 { >> 127 return pace2[A][Z]; >> 128 } >> 129 >> 130 double G4AblaVirtualData::getRms(int A, int Z) >> 131 { >> 132 return rms[A][Z]; >> 133 } >> 134 >> 135 double G4AblaVirtualData::getMexp(int A, int Z) >> 136 { >> 137 return mexp[A][Z]; >> 138 } 108 139 109 G4double G4AblaVirtualData::getBeta4(G4int A, << 140 int G4AblaVirtualData::getMexpID(int A, int Z) >> 141 { >> 142 return mexpid[A][Z]; >> 143 } >> 144 >> 145 double G4AblaVirtualData::getBeta2(int A, int Z) >> 146 { >> 147 return beta2[A][Z]; >> 148 } >> 149 >> 150 double G4AblaVirtualData::getBeta4(int A, int Z) >> 151 { >> 152 return beta4[A][Z]; >> 153 } >> 154 >> 155 int G4AblaVirtualData::getAlphaRows() >> 156 { >> 157 return alphaRows; >> 158 } >> 159 >> 160 int G4AblaVirtualData::getAlphaCols() >> 161 { >> 162 return alphaCols; >> 163 } >> 164 int G4AblaVirtualData::getPaceRows() >> 165 { >> 166 return paceRows; >> 167 } >> 168 int G4AblaVirtualData::getPaceCols() >> 169 { >> 170 return paceCols; >> 171 } 110 172