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

Location:
trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/History

    r1196 r1315  
    1212     * Please list in reverse chronological order (last date on top)
    1313     ---------------------------------------------------------------
     14
     1525-May-2010 M.Kosov                            (hadr-chips-inter-V09-03-00)
     16---------------------------------------------------------------------------
     17Z+N instead of N for A, which sometimes in G4Had is called N.
     18
     1924-Jan-2010 M.Kosov                            (hadr-chips-V09-03-01)
     20-----------------------------------------------------------------------
     21Mutual tag: G4Hadr interface to CHIPS elastic is added
    1422
    152317-Nov-2009 M.Kosov                            (hadr-chips-V09-02-24)
  • trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/include/G4QHadronInelasticDataSet.hh

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4QHadronInelasticDataSet.hh,v 1.1 2009/11/20 10:08:36 mkossov Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4QHadronInelasticDataSet.hh,v 1.2 2010/01/22 17:02:49 mkossov Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929// GEANT4 physics class: G4QHadronInelasticDataSet -- header file
     
    117117private:
    118118
    119   //G4VQCrossSection* CHIPSpAin;
    120   //G4VQCrossSection* CHIPSnAin;
    121   //G4VQCrossSection* CHIPSpimAin;   
    122   //G4VQCrossSection* CHIPSpipAin;
    123   //G4VQCrossSection* CHIPSkpAin;
    124   //G4VQCrossSection* CHIPSkmAin;
    125   //G4VQCrossSection* CHIPSk0Ain;
    126   //G4VQCrossSection* CHIPShAin;
    127   //G4VQCrossSection* CHIPShpAin;
    128   //G4VQCrossSection* CHIPSabpAin;
    129   //G4VQCrossSection* CHIPSabAin;
    130   ////G4VQCrossSection* CHIPSphAin;
    131   ////G4VQCrossSection* CHIPSeAin;
    132   ////G4VQCrossSection* CHIPSmuAin;
    133   ////G4VQCrossSection* CHIPStauAin;
    134   ////G4VQCrossSection* CHIPSnumAin;
    135   ////G4VQCrossSection* CHIPSanumAin;
    136   ////G4VQCrossSection* CHIPSnueAin;
    137   ////G4VQCrossSection* CHIPSanueAin;
    138   ////G4VQCrossSection* CHIPSnunuAin;
    139   ////G4VQCrossSection* CHIPSananAin;
    140119  G4QIsotope* Isotopes;                             // Pointer to the G4QIsotopes singleton
    141120  static std::vector <G4int> ElementZ;                // Z of the element(i) in theLastCalc
  • 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.