Changeset 1055 for trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/src/G4QIonIonElastic.cc
- Timestamp:
- May 28, 2009, 4:26:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/src/G4QIonIonElastic.cc
r1007 r1055 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4QIonIonElastic.cc,v 1. 3 2008/10/02 21:10:07 dennisExp $27 // GEANT4 tag $Name: geant4-09-0 2$26 // $Id: G4QIonIonElastic.cc,v 1.4 2009/02/23 09:49:24 mkossov Exp $ 27 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 28 28 // 29 29 // ---------------- G4QIonIonElastic class ----------------- … … 34 34 // ********** This CLASS is temporary moved from the photolepton_hadron directory ********* 35 35 // **************************************************************************************** 36 // Short description: a simple process for the Ion-Ion elastic scattering. 37 // For heavy by heavy ions it can reach 50% of the total cross-section. 38 // ----------------------------------------------------------------------- 36 39 37 40 //#define debug … … 153 156 <<pElement->GetIsotope(j)->GetZ()<<"#"<<Z<<G4endl; 154 157 G4double abund=abuVector[j]; 155 158 std::pair<G4int,G4double>* pr= new std::pair<G4int,G4double>(N,abund); 156 159 #ifdef debug 157 160 G4cout<<"G4QIonIonElastic::GetMeanFP:pair#="<<j<<",N="<<N<<",ab="<<abund<<G4endl; 158 161 #endif 159 162 newAbund->push_back(pr); 160 163 } 161 164 #ifdef debug 162 165 G4cout<<"G4QIonIonElastic::GetMeanFP: pairVectorLength="<<newAbund->size()<<G4endl; … … 185 188 G4cout<<"G4QIIEl::GMFP:true,P="<<Momentum<<",Z="<<Z<<",N="<<N<<",PDG="<<pPDG<<G4endl; 186 189 #endif 187 190 G4bool ccsf=false; // Extract elastic Ion-Ion cross-section 188 191 #ifdef debug 189 192 G4cout<<"G4QIonIonElastic::GMFP: GetCS #1 j="<<j<<G4endl; … … 232 235 static G4bool CWinit = true; // CHIPS Warld needs to be initted 233 236 if(CWinit) 234 237 { 235 238 CWinit=false; 236 239 G4QCHIPSWorld::Get()->GetParticles(nPartCWorld); // Create CHIPS World (234 part.max) … … 292 295 #ifdef debug 293 296 G4int prPDG=particle->GetPDGEncoding(); 294 297 G4cout<<"G4QIonIonElastic::PostStepDoIt: projPDG="<<projPDG<<", stPDG="<<prPDG<<G4endl; 295 298 #endif 296 299 if(!projPDG) … … 304 307 G4int EPIM=ElProbInMat.size(); 305 308 #ifdef debug 306 309 G4cout<<"G4QIonIonElastic::PSDI:m="<<EPIM<<",n="<<nE<<",T="<<ElProbInMat[EPIM-1]<<G4endl; 307 310 #endif 308 311 G4int i=0; … … 311 314 G4double rnd = ElProbInMat[EPIM-1]*G4UniformRand(); 312 315 for(i=0; i<nE; ++i) 313 314 #ifdef debug 315 316 { 317 #ifdef debug 318 G4cout<<"G4QIonIonElastic::PSDI: EPM["<<i<<"]="<<ElProbInMat[i]<<", r="<<rnd<<G4endl; 316 319 #endif 317 320 if (rnd<ElProbInMat[i]) break; … … 322 325 Z=static_cast<G4int>(pElement->GetZ()); 323 326 #ifdef debug 324 327 G4cout<<"G4QIonIonElastic::PostStepDoIt: i="<<i<<", Z(element)="<<Z<<G4endl; 325 328 #endif 326 329 if(Z<=0) … … 333 336 G4int nofIsot=SPI->size(); // #of isotopes in the element i 334 337 #ifdef debug 335 338 G4cout<<"G4QIonIonElastic::PosStDoIt: nI="<<nofIsot<<",T="<<(*SPI)[nofIsot-1]<<G4endl; 336 339 #endif 337 340 G4int j=0; … … 342 345 { 343 346 #ifdef debug 344 347 G4cout<<"G4QIonIonElastic::PostStDI: SP["<<j<<"]="<<(*SPI)[j]<<", r="<<rndI<<G4endl; 345 348 #endif 346 349 if(rndI < (*SPI)[j]) break; … … 350 353 G4int N =(*IsN)[j]; ; // Randomized number of neutrons 351 354 #ifdef debug 352 355 G4cout<<"G4QIonIonElastic::PostStepDoIt:j="<<i<<",N(isotope)="<<N<<", MeV="<<MeV<<G4endl; 353 356 #endif 354 357 if(N<0) … … 492 495 EnMomConservation-=scat4M; // It must be initialized by (pE+tM,pP) 493 496 // This is how in general the secondary should be identified 494 497 G4DynamicParticle* theSec = new G4DynamicParticle; // A secondary for the recoil hadron 495 498 G4int aA = Z+N; 496 499 #ifdef pdebug 497 500 G4cout<<"G4QIonIonElastic::PostStepDoIt: Ion Z="<<Z<<", A="<<aA<<G4endl; 498 501 #endif 499 502 G4ParticleDefinition* theDefinition=G4ParticleTable::GetParticleTable()
Note: See TracChangeset
for help on using the changeset viewer.