Ignore:
Timestamp:
Apr 20, 2009, 5:54:05 PM (15 years ago)
Author:
garnier
Message:

update to geant4.9.2

Location:
trunk/source/processes/hadronic/cross_sections/src
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/cross_sections/src/G4BGGNucleonElasticXS.cc

    r962 r1007  
    2525//
    2626// $Id: G4BGGNucleonElasticXS.cc,v 1.3 2008/12/01 16:50:23 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/hadronic/cross_sections/src/G4BGGNucleonInelasticXS.cc

    r962 r1007  
    2525//
    2626// $Id: G4BGGNucleonInelasticXS.cc,v 1.3 2008/12/01 16:50:23 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/hadronic/cross_sections/src/G4BGGPionElasticXS.cc

    r962 r1007  
    2525//
    2626// $Id: G4BGGPionElasticXS.cc,v 1.3 2008/12/01 16:50:23 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/hadronic/cross_sections/src/G4BGGPionInelasticXS.cc

    r962 r1007  
    2525//
    2626// $Id: G4BGGPionInelasticXS.cc,v 1.3 2008/12/01 16:50:23 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929// -------------------------------------------------------------------
  • trunk/source/processes/hadronic/cross_sections/src/G4CrossSectionDataStore.cc

    r962 r1007  
    2424// ********************************************************************
    2525//
    26 // $Id: G4CrossSectionDataStore.cc,v 1.16 2009/01/24 11:54:47 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
    28 //
    29 // -------------------------------------------------------------------
    30 //
    31 // GEANT4 Class file
    32 //
    33 //
    34 // File name:     G4CrossSectionDataStore
    35 //
    36 //
    37 // Modifications:
    38 // 23.01.2009 V.Ivanchenko add destruction of data sets
    39 //
    4026//
    4127
     
    4733#include "G4Nucleus.hh"
    4834
    49 G4CrossSectionDataStore::G4CrossSectionDataStore() :
    50   NDataSetList(0), verboseLevel(0)
    51 {}
    52 
    53 G4CrossSectionDataStore::~G4CrossSectionDataStore()
    54 {}
    5535
    5636G4double
     
    412392  return anElement;
    413393}
     394*/
    414395
    415396std::pair<G4double, G4double>
     
    532513  return std::pair<G4double, G4double>(ZZ, AA);
    533514}
    534 */
     515
    535516
    536517void
    537518G4CrossSectionDataStore::AddDataSet(G4VCrossSectionDataSet* aDataSet)
    538519{
    539   DataSetList.push_back(aDataSet);
    540   NDataSetList++;
    541 }
     520   if (NDataSetList == NDataSetMax) {
     521      G4cout << "WARNING: G4CrossSectionDataStore::AddDataSet: "<<G4endl;
     522      G4cout << "         reached maximum number of data sets";
     523      G4cout << "         data set not added !!!!!!!!!!!!!!!!";
     524      return;
     525   }
     526   DataSetList[NDataSetList] = aDataSet;
     527   NDataSetList++;
     528}
     529
    542530
    543531void
     
    545533BuildPhysicsTable(const G4ParticleDefinition& aParticleType)
    546534{
    547   if(NDataSetList > 0) {
    548     for (G4int i=0; i<NDataSetList; i++) {
     535   if (NDataSetList == 0)
     536   {
     537     G4Exception("G4CrossSectionDataStore", "007", FatalException,
     538                 "BuildPhysicsTable: no data sets registered");
     539     return;
     540   }
     541   for (G4int i = NDataSetList-1; i >= 0; i--) {
    549542      DataSetList[i]->BuildPhysicsTable(aParticleType);
    550     }
    551   }
     543   }
    552544}
    553545
     
    557549DumpPhysicsTable(const G4ParticleDefinition& aParticleType)
    558550{
    559   if (NDataSetList == 0) {
    560     G4cout << "WARNING - G4CrossSectionDataStore::DumpPhysicsTable: "
    561            << " no data sets registered"<<G4endl;
    562     return;
    563   }
    564   for (G4int i = NDataSetList-1; i >= 0; i--) {
    565     DataSetList[i]->DumpPhysicsTable(aParticleType);
    566   }
    567 }
     551   if (NDataSetList == 0) {
     552      G4cout << "WARNING - G4CrossSectionDataStore::DumpPhysicsTable: no data sets registered"<<G4endl;
     553      return;
     554   }
     555   for (G4int i = NDataSetList-1; i >= 0; i--) {
     556      DataSetList[i]->DumpPhysicsTable(aParticleType);
     557   }
     558}
  • trunk/source/processes/hadronic/cross_sections/src/G4ElectroNuclearCrossSection.cc

    r962 r1007  
    2626//
    2727// $Id: G4ElectroNuclearCrossSection.cc,v 1.29 2008/10/24 19:15:17 dennis Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronCaptureDataSet.cc

    r962 r1007  
    2626//
    2727// $Id: G4HadronCaptureDataSet.cc,v 1.8 2006/06/29 19:57:35 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronCrossSections.cc

    r962 r1007  
    2525//
    2626//
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     27// GEANT4 tag $Name: geant4-09-02 $
    2828//
    2929//
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronElasticDataSet.cc

    r962 r1007  
    2626//
    2727// $Id: G4HadronElasticDataSet.cc,v 1.8 2006/06/29 19:57:39 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronFissionDataSet.cc

    r962 r1007  
    2626//
    2727// $Id: G4HadronFissionDataSet.cc,v 1.8 2006/06/29 19:57:41 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4HadronInelasticDataSet.cc

    r962 r1007  
    2626//
    2727// $Id: G4HadronInelasticDataSet.cc,v 1.8 2006/06/29 19:57:43 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4PhotoNuclearCrossSection.cc

    r962 r1007  
    2626//
    2727// The lust update: M.V. Kossov, CERN/ITEP(Moscow) 17-June-02
    28 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     28// GEANT4 tag $Name: geant4-09-02 $
    2929//
    3030//
  • trunk/source/processes/hadronic/cross_sections/src/G4PiData.cc

    r962 r1007  
    2424// ********************************************************************
    2525//
    26 // GEANT4 tag $Name: geant4-09-02-ref-02 $
     26// GEANT4 tag $Name: geant4-09-02 $
    2727//
    2828// --------------------------------------------------------------------
  • trunk/source/processes/hadronic/cross_sections/src/G4VCrossSectionDataSet.cc

    r962 r1007  
    2424// ********************************************************************
    2525//
    26 // $Id: G4VCrossSectionDataSet.cc,v 1.8 2009/01/24 11:54:47 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-02-ref-02 $
    28 //
    29 // -------------------------------------------------------------------
    30 //
    31 // GEANT4 Class file
    32 //
    33 //
    34 // File name:    G4VCrossSectionDataSet
    35 //
    36 // Author  F.W. Jones, TRIUMF, 20-JAN-97
    37 //
    38 // Modifications:
    39 // 23.01.2009 V.Ivanchenko move constructor and destructor to source
    40 //
     26// $Id: G4VCrossSectionDataSet.cc,v 1.7 2006/12/29 02:05:48 dennis Exp $
     27//
    4128
    4229#include "G4VCrossSectionDataSet.hh"
    43 #include "G4CrossSectionDataSetRegistry.hh"
    44 
    45 G4VCrossSectionDataSet::G4VCrossSectionDataSet() :
    46   verboseLevel(0)
    47 {
    48   G4CrossSectionDataSetRegistry::Instance()->Register(this);
    49 }
    50 
    51 G4VCrossSectionDataSet::~G4VCrossSectionDataSet()
    52 {
    53   G4CrossSectionDataSetRegistry::Instance()->DeRegister(this);
    54 }
    5530
    5631// Override this method to test for particle and isotope applicability
Note: See TracChangeset for help on using the changeset viewer.