Ignore:
Timestamp:
May 28, 2009, 4:26:57 PM (15 years ago)
Author:
garnier
Message:

maj sur la beta de geant 4.9.3

File:
1 edited

Legend:

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

    r1007 r1055  
    2424// ********************************************************************
    2525//
    26 // $Id: G4QIonIonElastic.cc,v 1.3 2008/10/02 21:10:07 dennis Exp $
    27 // GEANT4 tag $Name: geant4-09-02 $
     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 $
    2828//
    2929//      ---------------- G4QIonIonElastic class -----------------
     
    3434// ********** This CLASS is temporary moved from the photolepton_hadron directory *********
    3535// ****************************************************************************************
     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// -----------------------------------------------------------------------
    3639
    3740//#define debug
     
    153156                                         <<pElement->GetIsotope(j)->GetZ()<<"#"<<Z<<G4endl;
    154157          G4double abund=abuVector[j];
    155                                                                   std::pair<G4int,G4double>* pr= new std::pair<G4int,G4double>(N,abund);
     158          std::pair<G4int,G4double>* pr= new std::pair<G4int,G4double>(N,abund);
    156159#ifdef debug
    157160          G4cout<<"G4QIonIonElastic::GetMeanFP:pair#="<<j<<",N="<<N<<",ab="<<abund<<G4endl;
    158161#endif
    159162          newAbund->push_back(pr);
    160                                                   }
     163        }
    161164#ifdef debug
    162165        G4cout<<"G4QIonIonElastic::GetMeanFP: pairVectorLength="<<newAbund->size()<<G4endl;
     
    185188      G4cout<<"G4QIIEl::GMFP:true,P="<<Momentum<<",Z="<<Z<<",N="<<N<<",PDG="<<pPDG<<G4endl;
    186189#endif
    187                     G4bool ccsf=false;                    // Extract elastic Ion-Ion cross-section
     190      G4bool ccsf=false;                    // Extract elastic Ion-Ion cross-section
    188191#ifdef debug
    189192      G4cout<<"G4QIonIonElastic::GMFP: GetCS #1 j="<<j<<G4endl;
     
    232235  static G4bool CWinit = true;                   // CHIPS Warld needs to be initted
    233236  if(CWinit)
    234                 {
     237  {
    235238    CWinit=false;
    236239    G4QCHIPSWorld::Get()->GetParticles(nPartCWorld); // Create CHIPS World (234 part.max)
     
    292295#ifdef debug
    293296  G4int prPDG=particle->GetPDGEncoding();
    294                 G4cout<<"G4QIonIonElastic::PostStepDoIt: projPDG="<<projPDG<<", stPDG="<<prPDG<<G4endl;
     297  G4cout<<"G4QIonIonElastic::PostStepDoIt: projPDG="<<projPDG<<", stPDG="<<prPDG<<G4endl;
    295298#endif
    296299  if(!projPDG)
     
    304307  G4int EPIM=ElProbInMat.size();
    305308#ifdef debug
    306                 G4cout<<"G4QIonIonElastic::PSDI:m="<<EPIM<<",n="<<nE<<",T="<<ElProbInMat[EPIM-1]<<G4endl;
     309  G4cout<<"G4QIonIonElastic::PSDI:m="<<EPIM<<",n="<<nE<<",T="<<ElProbInMat[EPIM-1]<<G4endl;
    307310#endif
    308311  G4int i=0;
     
    311314    G4double rnd = ElProbInMat[EPIM-1]*G4UniformRand();
    312315    for(i=0; i<nE; ++i)
    313                   {
    314 #ifdef debug
    315                                   G4cout<<"G4QIonIonElastic::PSDI: EPM["<<i<<"]="<<ElProbInMat[i]<<", r="<<rnd<<G4endl;
     316    {
     317#ifdef debug
     318      G4cout<<"G4QIonIonElastic::PSDI: EPM["<<i<<"]="<<ElProbInMat[i]<<", r="<<rnd<<G4endl;
    316319#endif
    317320      if (rnd<ElProbInMat[i]) break;
     
    322325  Z=static_cast<G4int>(pElement->GetZ());
    323326#ifdef debug
    324                                 G4cout<<"G4QIonIonElastic::PostStepDoIt: i="<<i<<", Z(element)="<<Z<<G4endl;
     327    G4cout<<"G4QIonIonElastic::PostStepDoIt: i="<<i<<", Z(element)="<<Z<<G4endl;
    325328#endif
    326329  if(Z<=0)
     
    333336  G4int nofIsot=SPI->size();               // #of isotopes in the element i
    334337#ifdef debug
    335                 G4cout<<"G4QIonIonElastic::PosStDoIt: nI="<<nofIsot<<",T="<<(*SPI)[nofIsot-1]<<G4endl;
     338  G4cout<<"G4QIonIonElastic::PosStDoIt: nI="<<nofIsot<<",T="<<(*SPI)[nofIsot-1]<<G4endl;
    336339#endif
    337340  G4int j=0;
     
    342345    {
    343346#ifdef debug
    344                                   G4cout<<"G4QIonIonElastic::PostStDI: SP["<<j<<"]="<<(*SPI)[j]<<", r="<<rndI<<G4endl;
     347      G4cout<<"G4QIonIonElastic::PostStDI: SP["<<j<<"]="<<(*SPI)[j]<<", r="<<rndI<<G4endl;
    345348#endif
    346349      if(rndI < (*SPI)[j]) break;
     
    350353  G4int N =(*IsN)[j]; ;                    // Randomized number of neutrons
    351354#ifdef debug
    352                 G4cout<<"G4QIonIonElastic::PostStepDoIt:j="<<i<<",N(isotope)="<<N<<", MeV="<<MeV<<G4endl;
     355  G4cout<<"G4QIonIonElastic::PostStepDoIt:j="<<i<<",N(isotope)="<<N<<", MeV="<<MeV<<G4endl;
    353356#endif
    354357  if(N<0)
     
    492495  EnMomConservation-=scat4M;                        // It must be initialized by (pE+tM,pP)
    493496  // This is how in general the secondary should be identified
    494                 G4DynamicParticle* theSec = new G4DynamicParticle; // A secondary for the recoil hadron
     497  G4DynamicParticle* theSec = new G4DynamicParticle; // A secondary for the recoil hadron
    495498  G4int aA = Z+N;
    496499#ifdef pdebug
    497                 G4cout<<"G4QIonIonElastic::PostStepDoIt: Ion Z="<<Z<<", A="<<aA<<G4endl;
     500  G4cout<<"G4QIonIonElastic::PostStepDoIt: Ion Z="<<Z<<", A="<<aA<<G4endl;
    498501#endif
    499502  G4ParticleDefinition* theDefinition=G4ParticleTable::GetParticleTable()
Note: See TracChangeset for help on using the changeset viewer.