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

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/standard/src/G4ComptonScattering.cc

    r819 r961  
    2424// ********************************************************************
    2525//
    26 // $Id: G4ComptonScattering.cc,v 1.27 2006/09/14 10:27:19 maire Exp $
    27 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     26// $Id: G4ComptonScattering.cc,v 1.31 2009/02/20 12:06:37 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2828//
    2929//
     
    7474    isInitialised(false)
    7575{
    76   SetLambdaBinning(90);
    77   SetMinKinEnergy(0.1*keV);
    78   SetMaxKinEnergy(100.0*GeV);
     76  SetProcessSubType(fComptonScattering);
    7977}
    8078
     
    8684//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
    8785
     86G4bool G4ComptonScattering::IsApplicable(const G4ParticleDefinition& p)
     87{
     88  return (&p == G4Gamma::Gamma());
     89}
     90
     91//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     92
    8893void G4ComptonScattering::InitialiseProcess(const G4ParticleDefinition*)
    8994{
     
    9297    SetBuildTableFlag(true);
    9398    SetSecondaryParticle(G4Electron::Electron());
    94     G4double emin = MinKinEnergy();
    95     G4double emax = MaxKinEnergy();
    9699    if(!Model()) SetModel(new G4KleinNishinaCompton);
    97     Model()->SetLowEnergyLimit(emin);
    98     Model()->SetHighEnergyLimit(emax);
     100    Model()->SetLowEnergyLimit(MinKinEnergy());
     101    Model()->SetHighEnergyLimit(MaxKinEnergy());
    99102    AddEmModel(1, Model());
    100103  }
     
    104107
    105108void G4ComptonScattering::PrintInfo()
    106 {
    107   G4cout
    108     << " Total cross sections has a good parametrisation"
    109     << " from 10 KeV to (100/Z) GeV"
    110     << "\n      Sampling according " << Model()->GetName() << " model"
    111     << G4endl;
    112 }         
     109{}         
    113110
    114111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset for help on using the changeset viewer.