Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/src/G4QHadronInelasticDataSet.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4QHadronInelasticDataSet.cc,v 1.1 2009/11/20 10:08:36 mkossov Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4QHadronInelasticDataSet.cc,v 1.2 2010/05/26 12:19:06 mkossov Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929// GEANT4 physics class: G4QHadronInelasticDataSet -- header file
     
    160160                                                    G4double)
    161161{
    162   G4int IPIE=IsoProbInEl.size();            // How many old elements?
    163   if(IPIE) for(G4int ip=0; ip<IPIE; ++ip)   // Clean up the SumProb's of Isotopes (SPI)
     162  G4int IPIE=IsoProbInEl.size();          // How many old elements?
     163  if(IPIE) for(G4int ip=0; ip<IPIE; ++ip) // Clean up the SumProb's of Isotopes (SPI)
    164164  {
    165165    std::vector<G4double>* SPI=IsoProbInEl[ip]; // Pointer to the SPI vector
    166166    SPI->clear();
    167167    delete SPI;
    168     std::vector<G4int>* IsN=ElIsoN[ip];     // Pointer to the N vector
     168    std::vector<G4int>* IsN=ElIsoN[ip];   // Pointer to the N vector
    169169    IsN->clear();
    170170    delete IsN;
    171171  }
    172   ElementZ.clear();                         // Clear the body vector for Z of Elements
    173   IsoProbInEl.clear();                      // Clear the body vector for SPI
    174   ElIsoN.clear();                           // Clear the body vector for N of Isotopes
     172  ElementZ.clear();                       // Clear the body vector for Z of Elements
     173  IsoProbInEl.clear();                    // Clear the body vector for SPI
     174  ElIsoN.clear();                         // Clear the body vector for N of Isotopes
    175175  G4int Z = static_cast<G4int>(pElement->GetZ()); // Z of the Element
    176176  ElementZ.push_back(Z);                  // Remember Z of the Element
     
    190190      {
    191191        G4int N=pElement->GetIsotope(j)->GetN()-Z; // N means A=N+Z !
    192         if(pElement->GetIsotope(j)->GetZ()!=Z)G4cerr<<"G4QCollision::GetMeanFreePath"
    193                                <<": Z="<<pElement->GetIsotope(j)->GetZ()<<"#"<<Z<<G4endl;
     192        if(pElement->GetIsotope(j)->GetZ()!=Z)
     193          G4cerr<<"G4QHadronInelasticDataSet::GetCrossSection"<<": Z="
     194                <<pElement->GetIsotope(j)->GetZ()<<" # "<<Z<<G4endl;
    194195        G4double abund=abuVector[j];
    195196        std::pair<G4int,G4double>* pr= new std::pair<G4int,G4double>(N,abund);
     
    213214    G4int N=curIs->first;                 // #of Neuterons in the isotope j of El i
    214215    IsN->push_back(N);                    // Remember Min N for the Element
    215     G4double CSI=GetIsoZACrossSection(Pt,Z,N,0.);//CrossSection(j,i) for the isotope
     216    G4double CSI=GetIsoZACrossSection(Pt,Z,Z+N,0.);//CrossSection(j,i) for the isotope
    216217    curIs->second = CSI;
    217218    susi+=CSI;                            // Make a sum per isotopes
Note: See TracChangeset for help on using the changeset viewer.