Changeset 1315 for trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/src/G4QHadronInelasticDataSet.cc
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/src/G4QHadronInelasticDataSet.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4QHadronInelasticDataSet.cc,v 1. 1 2009/11/20 10:08:36 mkossov Exp $27 // GEANT4 tag $Name: geant4-09-0 3$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 $ 28 28 // 29 29 // GEANT4 physics class: G4QHadronInelasticDataSet -- header file … … 160 160 G4double) 161 161 { 162 G4int IPIE=IsoProbInEl.size(); 163 if(IPIE) for(G4int ip=0; ip<IPIE; ++ip) 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) 164 164 { 165 165 std::vector<G4double>* SPI=IsoProbInEl[ip]; // Pointer to the SPI vector 166 166 SPI->clear(); 167 167 delete SPI; 168 std::vector<G4int>* IsN=ElIsoN[ip]; 168 std::vector<G4int>* IsN=ElIsoN[ip]; // Pointer to the N vector 169 169 IsN->clear(); 170 170 delete IsN; 171 171 } 172 ElementZ.clear(); 173 IsoProbInEl.clear(); 174 ElIsoN.clear(); 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 175 175 G4int Z = static_cast<G4int>(pElement->GetZ()); // Z of the Element 176 176 ElementZ.push_back(Z); // Remember Z of the Element … … 190 190 { 191 191 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; 194 195 G4double abund=abuVector[j]; 195 196 std::pair<G4int,G4double>* pr= new std::pair<G4int,G4double>(N,abund); … … 213 214 G4int N=curIs->first; // #of Neuterons in the isotope j of El i 214 215 IsN->push_back(N); // Remember Min N for the Element 215 G4double CSI=GetIsoZACrossSection(Pt,Z, N,0.);//CrossSection(j,i) for the isotope216 G4double CSI=GetIsoZACrossSection(Pt,Z,Z+N,0.);//CrossSection(j,i) for the isotope 216 217 curIs->second = CSI; 217 218 susi+=CSI; // Make a sum per isotopes
Note: See TracChangeset
for help on using the changeset viewer.