Ignore:
Timestamp:
Nov 19, 2009, 2:53:25 PM (15 years ago)
Author:
garnier
Message:

update par rapport a CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopeComptonModel.cc

    r1055 r1192  
    2424// ********************************************************************
    2525//
    26 // $Id: G4PenelopeComptonModel.cc,v 1.4 2009/04/18 18:29:34 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
     26// $Id: G4PenelopeComptonModel.cc,v 1.8 2009/10/23 09:29:24 pandola Exp $
     27// GEANT4 tag $Name: emlowen-V09-02-64 $
    2828//
    2929// Author: Luciano Pandola
     
    4444//                  - do not apply low-energy limit (default is 0)
    4545//                  - do not apply production threshold on level of the model
     46// 21 Oct 2009   L Pandola    Remove un-necessary fUseAtomicDeexcitation flag - now managed by
     47//                            G4VEmModel::DeexcitationFlag()
     48//                            Add ActivateAuger() method
    4649//
    4750
     
    5861#include "G4PenelopeIntegrator.hh"
    5962#include "G4AtomicTransitionManager.hh"
    60 #include "G4AtomicDeexcitation.hh"
    6163#include "G4AtomicShell.hh"
    6264#include "G4Gamma.hh"
     
    7981  ZForIntegration = 1;
    8082
    81   fUseAtomicDeexcitation = true;
     83  //by default, the model will use atomic deexcitation
     84  SetDeexcitationFlag(true);
     85  ActivateAuger(false);
     86
    8287  verboseLevel= 0;
    8388  // Verbosity scale:
     
    523528      {
    524529        G4DynamicParticle* aPhoton;
    525         G4AtomicDeexcitation deexcitationManager;
    526530        deexcitationManager.SetCutForSecondaryPhotons(cutg);
    527531        deexcitationManager.SetCutForAugerElectrons(cute);
    528         deexcitationManager.ActivateAugerElectronProduction(false);
    529532     
    530533        photonVector = deexcitationManager.GenerateParticles(Z,shellId);
     
    749752}
    750753
     754//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     755
     756void G4PenelopeComptonModel::ActivateAuger(G4bool augerbool)
     757{
     758  if (!DeexcitationFlag() && augerbool)
     759    {
     760      G4cout << "WARNING - G4PenelopeComptonModel" << G4endl;
     761      G4cout << "The use of the Atomic Deexcitation Manager is set to false " << G4endl;
     762      G4cout << "Therefore, Auger electrons will be not generated anyway" << G4endl;
     763    }
     764  deexcitationManager.ActivateAugerElectronProduction(augerbool);
     765  if (verboseLevel > 1)
     766    G4cout << "Auger production set to " << augerbool << G4endl;
     767}
     768
     769//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset for help on using the changeset viewer.