Changeset 1347 for trunk/source/processes/hadronic/models/de_excitation/photon_evaporation/src/G4NuclearLevel.cc
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/de_excitation/photon_evaporation/src/G4NuclearLevel.cc
r1340 r1347 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4NuclearLevel.cc,v 1.5 2010/10/10 23:01:39 mkelsey Exp $ 26 // $Id: G4NuclearLevel.cc,v 1.7 2010/11/17 16:50:53 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 28 // 27 29 // ------------------------------------------------------------------- 28 30 // GEANT 4 class file … … 55 57 // reading from experimental data. 56 58 // 59 // 28 October 2010, V.Ivanchenko moved copy constructor to source, cleanup 60 // 57 61 // ------------------------------------------------------------------- 58 62 59 63 #include "G4NuclearLevel.hh" 60 61 64 #include "globals.hh" 62 65 … … 73 76 } 74 77 75 G4NuclearLevel::G4NuclearLevel( const G4double energy, constG4double halfLife,76 constG4double angularMomentum)78 G4NuclearLevel::G4NuclearLevel(G4double energy, G4double halfLife, 79 G4double angularMomentum) 77 80 : _energy(energy), _halfLife(halfLife), _angularMomentum(angularMomentum), 78 81 _nGammas(0) { … … 80 83 } 81 84 82 G4NuclearLevel::G4NuclearLevel( const G4double energy, constG4double halfLife,83 constG4double angularMomentum,84 const std::vector< double>& eGamma,85 const std::vector< double>& wGamma,86 const std::vector< double>& polarities,87 const std::vector< double>& kCC, const std::vector<double>& l1CC,88 const std::vector< double>& l2CC, const std::vector<double>& l3CC,89 const std::vector< double>& m1CC, const std::vector<double>& m2CC,90 const std::vector< double>& m3CC, const std::vector<double>& m4CC,91 const std::vector< double>& m5CC, const std::vector<double>& nPlusCC,92 const std::vector< double>& totalCC)85 G4NuclearLevel::G4NuclearLevel(G4double energy, G4double halfLife, 86 G4double angularMomentum, 87 const std::vector<G4double>& eGamma, 88 const std::vector<G4double>& wGamma, 89 const std::vector<G4double>& polarities, 90 const std::vector<G4double>& kCC, const std::vector<G4double>& l1CC, 91 const std::vector<G4double>& l2CC, const std::vector<G4double>& l3CC, 92 const std::vector<G4double>& m1CC, const std::vector<G4double>& m2CC, 93 const std::vector<G4double>& m3CC, const std::vector<G4double>& m4CC, 94 const std::vector<G4double>& m5CC, const std::vector<G4double>& nPlusCC, 95 const std::vector<G4double>& totalCC) 93 96 94 97 : _energies(eGamma), _weights(wGamma), _polarities(polarities), … … 107 110 } 108 111 109 110 112 G4bool G4NuclearLevel::operator==(const G4NuclearLevel &right) const 111 113 { … … 118 120 return (this != (G4NuclearLevel *) &right); 119 121 } 120 121 122 122 123 G4bool G4NuclearLevel::operator<(const G4NuclearLevel &right) const … … 126 127 } 127 128 128 129 const std::vector<double>& G4NuclearLevel::GammaEnergies() const 129 const std::vector<G4double>& G4NuclearLevel::GammaEnergies() const 130 130 { 131 131 return _energies; 132 132 } 133 133 134 const std::vector< double>& G4NuclearLevel::GammaWeights() const134 const std::vector<G4double>& G4NuclearLevel::GammaWeights() const 135 135 { 136 136 return _weights; … … 138 138 139 139 140 const std::vector< double>& G4NuclearLevel::GammaProbabilities() const140 const std::vector<G4double>& G4NuclearLevel::GammaProbabilities() const 141 141 { 142 142 return _prob; … … 144 144 145 145 146 const std::vector< double>& G4NuclearLevel::GammaCumulativeProbabilities() const146 const std::vector<G4double>& G4NuclearLevel::GammaCumulativeProbabilities() const 147 147 { 148 148 return _cumProb; … … 150 150 151 151 152 const std::vector< double>& G4NuclearLevel::GammaPolarities() const152 const std::vector<G4double>& G4NuclearLevel::GammaPolarities() const 153 153 { 154 154 return _polarities; 155 155 } 156 156 157 const std::vector< double>& G4NuclearLevel::KConvertionProbabilities() const157 const std::vector<G4double>& G4NuclearLevel::KConvertionProbabilities() const 158 158 { 159 159 return _kCC; 160 160 } 161 161 162 const std::vector< double>& G4NuclearLevel::L1ConvertionProbabilities() const162 const std::vector<G4double>& G4NuclearLevel::L1ConvertionProbabilities() const 163 163 { 164 164 return _l1CC; 165 165 } 166 166 167 const std::vector< double>& G4NuclearLevel::L2ConvertionProbabilities() const167 const std::vector<G4double>& G4NuclearLevel::L2ConvertionProbabilities() const 168 168 { 169 169 return _l2CC; 170 170 } 171 171 172 const std::vector< double>& G4NuclearLevel::L3ConvertionProbabilities() const172 const std::vector<G4double>& G4NuclearLevel::L3ConvertionProbabilities() const 173 173 { 174 174 return _l3CC; 175 175 } 176 176 177 const std::vector< double>& G4NuclearLevel::M1ConvertionProbabilities() const177 const std::vector<G4double>& G4NuclearLevel::M1ConvertionProbabilities() const 178 178 { 179 179 return _m1CC; 180 180 } 181 181 182 const std::vector< double>& G4NuclearLevel::M2ConvertionProbabilities() const182 const std::vector<G4double>& G4NuclearLevel::M2ConvertionProbabilities() const 183 183 { 184 184 return _m2CC; 185 185 } 186 186 187 const std::vector< double>& G4NuclearLevel::M3ConvertionProbabilities() const187 const std::vector<G4double>& G4NuclearLevel::M3ConvertionProbabilities() const 188 188 { 189 189 return _m3CC; 190 190 } 191 191 192 const std::vector< double>& G4NuclearLevel::M4ConvertionProbabilities() const192 const std::vector<G4double>& G4NuclearLevel::M4ConvertionProbabilities() const 193 193 { 194 194 return _m4CC; 195 195 } 196 196 197 const std::vector< double>& G4NuclearLevel::M5ConvertionProbabilities() const197 const std::vector<G4double>& G4NuclearLevel::M5ConvertionProbabilities() const 198 198 { 199 199 return _m5CC; 200 200 } 201 201 202 const std::vector< double>& G4NuclearLevel::NPlusConvertionProbabilities() const202 const std::vector<G4double>& G4NuclearLevel::NPlusConvertionProbabilities() const 203 203 { 204 204 return _nPlusCC; 205 205 } 206 206 207 const std::vector< double>& G4NuclearLevel::TotalConvertionProbabilities() const207 const std::vector<G4double>& G4NuclearLevel::TotalConvertionProbabilities() const 208 208 { 209 209 return _totalCC; … … 225 225 } 226 226 227 228 227 G4int G4NuclearLevel::NumberOfGammas() const 229 228 { … … 294 293 } 295 294 296 297 295 const G4NuclearLevel& G4NuclearLevel::operator=(const G4NuclearLevel &right) 296 { 297 if(this != &right) 298 { 299 _energies = right._energies; 300 _weights =right._weights; 301 _prob =right._prob; 302 _cumProb =right._cumProb; 303 _polarities =right._polarities; 304 _kCC = right._kCC; 305 _l1CC =right._l1CC; 306 _l2CC =right._l2CC; 307 _l3CC =right._l3CC; 308 _m1CC = right._m1CC; 309 _m2CC = right._m2CC; 310 _m3CC = right._m3CC; 311 _m4CC = right._m4CC; 312 _m5CC = right._m5CC; 313 _nPlusCC = right._nPlusCC; 314 _totalCC = right._totalCC; 315 _energy = right._energy; 316 _halfLife = right._halfLife; 317 _angularMomentum = right._angularMomentum; 318 _nGammas = right._nGammas; 319 } 320 return *this; 321 } 322 323 G4NuclearLevel::G4NuclearLevel(const G4NuclearLevel &right) 324 { 325 _energies = right._energies; 326 _weights =right._weights; 327 _prob =right._prob; 328 _cumProb =right._cumProb; 329 _polarities =right._polarities; 330 _kCC = right._kCC; 331 _l1CC =right._l1CC; 332 _l2CC =right._l2CC; 333 _l3CC =right._l3CC; 334 _m1CC = right._m1CC; 335 _m2CC = right._m2CC; 336 _m3CC = right._m3CC; 337 _m4CC = right._m4CC; 338 _m5CC = right._m5CC; 339 _nPlusCC = right._nPlusCC; 340 _totalCC = right._totalCC; 341 _energy = right._energy; 342 _halfLife = right._halfLife; 343 _angularMomentum = right._angularMomentum; 344 _nGammas = right._nGammas; 345 } 346 347 348
Note: See TracChangeset
for help on using the changeset viewer.