Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

Location:
trunk/source/processes/electromagnetic/highenergy
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/highenergy/History

    r1315 r1340  
    1 $Id: History,v 1.36 2010/06/04 10:23:31 vnivanch Exp $
     1$Id: History,v 1.37 2010/10/26 15:40:03 vnivanch Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     2026 October 10: V.Ivanchenko (emhighenergy-V09-03-02)
     21- Fixed problem reported by the Coverity tools (mainly pedantic
     22  initialisation)
     23- Added G4mplIonisationWithDeltaModel which is substituted
     24  G4mplIonisationModel by default - delat-ray production is required
     25  both by ATLAS and CMS
    1926
    202704 March 10: V.Ivanchenko (emhighenergy-V09-03-01)
  • trunk/source/processes/electromagnetic/highenergy/include/G4GammaConversionToMuons.hh

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4GammaConversionToMuons.hh,v 1.2 2006/06/29 19:32:18 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4GammaConversionToMuons.hh,v 1.3 2010/10/26 14:15:40 vnivanch Exp $
     28// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2929//
    3030//         ------------ G4GammaConversionToMuons physics process ------
     
    132132     G4double HighestEnergyLimit ;    // high energy limit of the tables
    133133
    134      G4double fminimalEnergy;         // minimalEnergy of produced particles
    135 
    136134     G4double MeanFreePath;           // actual MeanFreePath (current medium)
    137135     G4double CrossSecFactor;         // factor to artificially increase
  • trunk/source/processes/electromagnetic/highenergy/include/G4hhIonisation.hh

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4hhIonisation.hh,v 1.6 2009/02/20 16:38:33 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4hhIonisation.hh,v 1.7 2010/10/26 14:15:40 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    9090  G4double   mass;
    9191  G4double   ratio;
    92   G4double   minKinEnergy;
    93   G4double   maxKinEnergy;
    9492
    9593  const G4ParticleDefinition* theParticle;
     
    9896
    9997  G4bool                      isInitialised;
    100 
    101   G4double                    eth;
    102 
    10398};
    10499
  • trunk/source/processes/electromagnetic/highenergy/include/G4mplIonisationModel.hh

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4mplIonisationModel.hh,v 1.7 2009/02/20 16:38:33 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4mplIonisationModel.hh,v 1.8 2010/10/26 15:40:03 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    109109  G4double beta2lim;
    110110  G4double bg2lim;
    111   G4double factlow;
    112111  G4double chargeSquare;
    113112  G4double dedxlim;
    114113  G4int    nmpl;
    115114  G4double pi_hbarc2_over_mc2;
    116   G4double approxConst;
    117115};
    118116
  • trunk/source/processes/electromagnetic/highenergy/src/G4GammaConversionToMuons.cc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4GammaConversionToMuons.cc,v 1.7 2008/10/16 14:29:48 vnivanch Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4GammaConversionToMuons.cc,v 1.8 2010/10/26 14:15:40 vnivanch Exp $
     28// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2929//
    3030//         ------------ G4GammaConversionToMuons physics process ------
     
    5353{
    5454  SetProcessSubType(15);
     55  MeanFreePath = DBL_MAX;
    5556}
    5657
  • trunk/source/processes/electromagnetic/highenergy/src/G4eeToHadronsModel.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4eeToHadronsModel.cc,v 1.9 2008/07/10 18:06:39 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4eeToHadronsModel.cc,v 1.10 2010/10/26 14:15:40 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    7676{
    7777  theGamma = G4Gamma::Gamma();
     78  highKinEnergy = HighEnergyLimit();
     79  lowKinEnergy  = LowEnergyLimit();
     80  emin = lowKinEnergy;
     81  emax = highKinEnergy;
     82  peakKinEnergy = highKinEnergy;
     83  epeak = emax;
    7884}
    7985
     
    9298                                    const G4DataVector&)
    9399{
    94   if(isInitialised) return;
     100  if(isInitialised) { return; }
    95101  isInitialised  = true;
    96102
  • trunk/source/processes/electromagnetic/highenergy/src/G4eeToHadronsMultiModel.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4eeToHadronsMultiModel.cc,v 1.8 2009/04/12 17:48:21 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4eeToHadronsMultiModel.cc,v 1.9 2010/10/26 14:15:40 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    6868    verbose(ver),
    6969    isInitialised(false)
    70 {}
     70{
     71  thKineticEnergy  = DBL_MAX;
     72  maxKineticEnergy = 1.2*GeV;
     73}
    7174
    7275//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     
    9093  if(!isInitialised) {
    9194    isInitialised = true;
    92 
    93     thKineticEnergy  = DBL_MAX;
    94     maxKineticEnergy = 1.2*GeV;
    9595
    9696    cross = new G4eeCrossSections();
  • trunk/source/processes/electromagnetic/highenergy/src/G4hhIonisation.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4hhIonisation.cc,v 1.10 2010/06/04 10:23:31 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4hhIonisation.cc,v 1.11 2010/10/26 14:15:40 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    102102                                                 const G4ParticleDefinition* bpart)
    103103{
    104   if(isInitialised) return;
     104  if(isInitialised) { return; }
    105105
    106106  theParticle = part;
    107   if(bpart) G4cout << "G4hhIonisation::InitialiseEnergyLossProcess WARNING: no "
    108                    << "base particle should be defined for the process "
    109                    << GetProcessName() << G4endl;
    110 
     107  if(bpart) {
     108    G4cout << "G4hhIonisation::InitialiseEnergyLossProcess WARNING: no "
     109           << "base particle should be defined for the process "
     110           << GetProcessName() << G4endl;
     111  }
    111112  SetBaseParticle(0);
    112113  SetSecondaryParticle(G4Electron::Electron());
     
    114115  mass  = theParticle->GetPDGMass();
    115116  ratio = electron_mass_c2/mass;
    116   eth = 2.0*MeV*mass/proton_mass_c2;
     117  G4double eth = 2*MeV*mass/proton_mass_c2;
    117118  flucModel = new G4BohrFluctuations();
    118119
    119120  G4int nm = 1;
    120121
    121   minKinEnergy = MinKinEnergy();
     122  G4double minKinEnergy = MinKinEnergy();
    122123
    123124  if(eth > minKinEnergy) {
  • trunk/source/processes/electromagnetic/highenergy/src/G4mplIonisation.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4mplIonisation.cc,v 1.10 2010/03/28 16:45:38 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4mplIonisation.cc,v 1.11 2010/10/26 15:40:03 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    4949#include "G4Electron.hh"
    5050#include "G4mplIonisationModel.hh"
     51#include "G4mplIonisationWithDeltaModel.hh"
    5152#include "G4BohrFluctuations.hh"
    5253
     
    8586                                                  const G4ParticleDefinition*)
    8687{
    87   if(isInitialised) return;
     88  if(isInitialised) { return; }
    8889
    8990  SetBaseParticle(0);
    9091  SetSecondaryParticle(G4Electron::Electron());
    9192
    92   G4mplIonisationModel* ion  = new G4mplIonisationModel(magneticCharge,"PAI");
     93  G4mplIonisationWithDeltaModel* ion =
     94    new G4mplIonisationWithDeltaModel(magneticCharge,"PAI");
    9395  ion->SetLowEnergyLimit(MinKinEnergy());
    9496  ion->SetHighEnergyLimit(MaxKinEnergy());
  • trunk/source/processes/electromagnetic/highenergy/src/G4mplIonisationModel.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4mplIonisationModel.cc,v 1.7 2009/04/12 17:35:41 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4mplIonisationModel.cc,v 1.8 2010/10/26 15:40:03 vnivanch Exp $
     27// GEANT4 tag $Name: emhighenergy-V09-03-02 $
    2828//
    2929// -------------------------------------------------------------------
     
    7474{
    7575  nmpl         = G4int(abs(magCharge) * 2 * fine_structure_const + 0.5);
    76   if(nmpl > 6)      nmpl = 6;
    77   else if(nmpl < 1) nmpl = 1;
     76  if(nmpl > 6)      { nmpl = 6; }
     77  else if(nmpl < 1) { nmpl = 1; }
    7878  pi_hbarc2_over_mc2 = pi * hbarc * hbarc / electron_mass_c2;
    7979  chargeSquare = magCharge * magCharge;
    8080  dedxlim = 45.*nmpl*nmpl*GeV*cm2/g;
    8181  fParticleChange = 0;
     82  mass = 0.0;
    8283}
    8384
     
    9495  monopole = p;
    9596  mass     = monopole->GetPDGMass();
    96   if(!fParticleChange) fParticleChange = GetParticleChangeForLoss();
     97  if(!fParticleChange) { fParticleChange = GetParticleChangeForLoss(); }
    9798}
    9899
Note: See TracChangeset for help on using the changeset viewer.