Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/de_excitation/evaporation/src/G4Evaporation.cc

    r819 r962  
    2525//
    2626//
    27 // $Id: G4Evaporation.cc,v 1.7 2007/02/14 13:37:49 ahoward Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4Evaporation.cc,v 1.12 2008/12/09 17:57:36 ahoward Exp $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030// Hadronic Process: Nuclear De-excitations
     
    3333// Alex Howard - added protection for negative probabilities in the sum, 14/2/07
    3434//
     35// Modif (03 September 2008) by J. M. Quesada for external choice of inverse
     36// cross section option
     37// JMQ (06 September 2008) Also external choices have been added for
     38// superimposed Coulomb barrier (if useSICBis set true, by default is false)
     39
    3540#include "G4Evaporation.hh"
    3641#include "G4EvaporationFactory.hh"
     
    8994}
    9095
    91 
    9296G4FragmentVector * G4Evaporation::BreakItUp(const G4Fragment &theNucleus)
    9397{
     
    105109    // Number of channels
    106110    G4int TotNumberOfChannels = theChannels->size(); 
    107        
    108111
    109112    // Starts loop over evaporated particles
    110113    for (;;)
    111       {
     114 
     115   {   
    112116        // loop over evaporation channels
    113117        std::vector<G4VEvaporationChannel*>::iterator i;
    114118        for (i=theChannels->begin(); i != theChannels->end(); i++)
    115119          {
     120  // for inverse cross section choice
     121            (*i)->SetOPTxs(OPTxs);
     122  // for superimposed Coulomb Barrier for inverse cross sections
     123            (*i)->UseSICB(useSICB);
     124
    116125            (*i)->Initialize(theResidualNucleus);
    117126          }
     
    172181            if( j >= TotNumberOfChannels )
    173182              {
     183                G4cerr << " Residual A: " << theResidualNucleus.GetA() << " Residual Z: " << theResidualNucleus.GetZ() << " Excitation Energy: " << theResidualNucleus.GetExcitationEnergy() << G4endl;
     184                G4cerr << " j has not chosen a channel, j = " << j << " TotNumberOfChannels " << TotNumberOfChannels << " Total Probability: " << TotalProbability << G4endl;
     185                for (j=0; j < TotNumberOfChannels; j++)
     186                  {
     187                    G4cerr << " j: " << j << " EmissionProbChannel: " << EmissionProbChannel[j] << " and shoot: " << shoot << " (<ProbChannel?) " << G4endl;
     188                  }             
    174189                throw G4HadronicException(__FILE__, __LINE__,  "G4Evaporation::BreakItUp: Can't define emission probability of the channels!" );
    175190              }
     
    216231                  theResidualNucleus.SetCreatorModel(G4String("ResidualNucleus"));
    217232#endif
     233
    218234                }
    219235              }
Note: See TracChangeset for help on using the changeset viewer.