Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (15 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/de_excitation/ablation/include/G4WilsonAblationModel.hh

    r819 r1228  
    4040// MODULE:              G4WilsonAblationModel.hh
    4141//
    42 // Version:             B.1
    43 // Date:                15/04/04
     42// Version:             1.0
     43// Date:                08/12/2009
    4444// Author:              P R Truscott
    4545// Organisation:        QinetiQ Ltd, UK
     
    5858// Beta release
    5959//
     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//
    6067// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6168////////////////////////////////////////////////////////////////////////////////
     
    6774#include "G4ParticleDefinition.hh"
    6875#include "globals.hh"
     76#include "G4VEvaporationFactory.hh"
     77#include "G4EvaporationFactory.hh"
     78
    6979
    7080#include <vector>
     
    99109    VectorOfFragmentTypes  evapType;
    100110
    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;
    111113
    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   
    115130  };
    116                                                                                
    117 
    118131
    119132};
Note: See TracChangeset for help on using the changeset viewer.