- Timestamp:
- Jan 8, 2010, 11:56:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/de_excitation/ablation/include/G4WilsonAblationModel.hh
r819 r1228 40 40 // MODULE: G4WilsonAblationModel.hh 41 41 // 42 // Version: B.143 // Date: 15/04/0442 // Version: 1.0 43 // Date: 08/12/2009 44 44 // Author: P R Truscott 45 45 // Organisation: QinetiQ Ltd, UK … … 58 58 // Beta release 59 59 // 60 // 08 December 2009, P R Truscott, QinetiQ Ltd, UK 61 // Ver 1.0 62 // Introduced vector of evaporation channels and evaporation factory. Also 63 // copied directly over the SumProbabilities class in G4Evaporation.hh at 64 // version 9.2.r9, just in cases there's any subtle differences. See .cc 65 // file comments to see impact of the rest of the changes. 66 // 60 67 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 61 68 //////////////////////////////////////////////////////////////////////////////// … … 67 74 #include "G4ParticleDefinition.hh" 68 75 #include "globals.hh" 76 #include "G4VEvaporationFactory.hh" 77 #include "G4EvaporationFactory.hh" 78 69 79 70 80 #include <vector> … … 99 109 VectorOfFragmentTypes evapType; 100 110 101 class SumProbabilities : 102 public std::binary_function<G4double,G4double,G4double> 103 { 104 public: 105 SumProbabilities() : total(0.0) {} 106 G4double operator() (G4double& /* probSoFar */, G4VEvaporationChannel*& frag) 107 { 108 total += frag->GetEmissionProbability(); 109 return total; 110 } 111 std::vector<G4VEvaporationChannel*> * theChannels; 112 G4VEvaporationFactory * theChannelFactory; 111 113 112 G4double GetTotal() { return total; } 113 public: 114 G4double total; 114 class SumProbabilities : public std::binary_function<G4double,G4double,G4double> 115 { 116 public: 117 SumProbabilities() : total(0.0) {} 118 G4double operator() (G4double& /* probSoFar */, G4VEvaporationChannel*& frag) 119 { 120 G4double temp_prob = frag->GetEmissionProbability(); 121 if(temp_prob >= 0.0) total += temp_prob; 122 // total += frag->GetEmissionProbability(); 123 return total; 124 } 125 126 G4double GetTotal() { return total; } 127 public: 128 G4double total; 129 115 130 }; 116 117 118 131 119 132 };
Note: See TracChangeset
for help on using the changeset viewer.