49 const G4int G4QAntiBaryonElasticCrossSection::nPoints=128;
 
   50 const G4int G4QAntiBaryonElasticCrossSection::nLast=nPoints-1;
 
   51 G4double  G4QAntiBaryonElasticCrossSection::lPMin=-8.;  
 
   52 G4double  G4QAntiBaryonElasticCrossSection::lPMax= 8.;  
 
   53 G4double  G4QAntiBaryonElasticCrossSection::dlnP=(lPMax-lPMin)/nLast;
 
   54 G4bool    G4QAntiBaryonElasticCrossSection::onlyCS=
true;
 
   55 G4double  G4QAntiBaryonElasticCrossSection::lastSIG=0.; 
 
   56 G4double  G4QAntiBaryonElasticCrossSection::lastLP=-10.;
 
   57 G4double  G4QAntiBaryonElasticCrossSection::lastTM=0.;  
 
   58 G4double  G4QAntiBaryonElasticCrossSection::theSS=0.;   
 
   59 G4double  G4QAntiBaryonElasticCrossSection::theS1=0.;   
 
   60 G4double  G4QAntiBaryonElasticCrossSection::theB1=0.;   
 
   61 G4double  G4QAntiBaryonElasticCrossSection::theS2=0.;   
 
   62 G4double  G4QAntiBaryonElasticCrossSection::theB2=0.;   
 
   63 G4double  G4QAntiBaryonElasticCrossSection::theS3=0.;   
 
   64 G4double  G4QAntiBaryonElasticCrossSection::theB3=0.;   
 
   65 G4double  G4QAntiBaryonElasticCrossSection::theS4=0.;   
 
   66 G4double  G4QAntiBaryonElasticCrossSection::theB4=0.;   
 
   67 G4int     G4QAntiBaryonElasticCrossSection::lastTZ=0;   
 
   68 G4int     G4QAntiBaryonElasticCrossSection::lastTN=0;   
 
   69 G4double  G4QAntiBaryonElasticCrossSection::lastPIN=0.; 
 
   70 G4double* G4QAntiBaryonElasticCrossSection::lastCST=0;  
 
   71 G4double* G4QAntiBaryonElasticCrossSection::lastPAR=0;  
 
   72 G4double* G4QAntiBaryonElasticCrossSection::lastSST=0;  
 
   73 G4double* G4QAntiBaryonElasticCrossSection::lastS1T=0;  
 
   74 G4double* G4QAntiBaryonElasticCrossSection::lastB1T=0;  
 
   75 G4double* G4QAntiBaryonElasticCrossSection::lastS2T=0;  
 
   76 G4double* G4QAntiBaryonElasticCrossSection::lastB2T=0;  
 
   77 G4double* G4QAntiBaryonElasticCrossSection::lastS3T=0;  
 
   78 G4double* G4QAntiBaryonElasticCrossSection::lastB3T=0;  
 
   79 G4double* G4QAntiBaryonElasticCrossSection::lastS4T=0;  
 
   80 G4double* G4QAntiBaryonElasticCrossSection::lastB4T=0;  
 
   81 G4int     G4QAntiBaryonElasticCrossSection::lastN=0;    
 
   82 G4int     G4QAntiBaryonElasticCrossSection::lastZ=0;    
 
   83 G4double  G4QAntiBaryonElasticCrossSection::lastP=0.;   
 
   84 G4double  G4QAntiBaryonElasticCrossSection::lastTH=0.;  
 
   85 G4double  G4QAntiBaryonElasticCrossSection::lastCS=0.;  
 
   86 G4int     G4QAntiBaryonElasticCrossSection::lastI=0;    
 
   88 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::PAR;
 
   89 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::CST;
 
   90 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::SST;
 
   91 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::S1T;
 
   92 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::B1T;
 
   93 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::S2T;
 
   94 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::B2T;
 
   95 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::S3T;
 
   96 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::B3T;
 
   97 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::S4T;
 
   98 std::vector<G4double*> G4QAntiBaryonElasticCrossSection::B4T;
 
  106   std::vector<G4double*>::iterator pos;
 
  107   for (pos=CST.begin(); pos<CST.end(); pos++)
 
  110   for (pos=PAR.begin(); pos<PAR.end(); pos++)
 
  113   for (pos=SST.begin(); pos<SST.end(); pos++)
 
  116   for (pos=S1T.begin(); pos<S1T.end(); pos++)
 
  119   for (pos=B1T.begin(); pos<B1T.end(); pos++)
 
  122   for (pos=S2T.begin(); pos<S2T.end(); pos++)
 
  125   for (pos=B2T.begin(); pos<B2T.end(); pos++)
 
  128   for (pos=S3T.begin(); pos<S3T.end(); pos++)
 
  131   for (pos=B3T.begin(); pos<B3T.end(); pos++)
 
  134   for (pos=S4T.begin(); pos<S4T.end(); pos++)
 
  137   for (pos=B4T.begin(); pos<B4T.end(); pos++)
 
  146   return &theCrossSection;
 
  154   static std::vector <G4int>    colN;  
 
  155   static std::vector <G4int>    colZ;  
 
  156   static std::vector <G4double> colP;  
 
  157   static std::vector <G4double> colTH; 
 
  158   static std::vector <G4double> colCS; 
 
  163   G4cout<<
"G4QaBaElCS::GetCS:>>> f="<<fCS<<
", p="<<pMom<<
", Z="<<tgZ<<
"("<<lastZ<<
") ,N=" 
  164         <<tgN<<
"("<<lastN<<
"), T="<<pEn<<
"("<<lastTH<<
")"<<
",Sz="<<colN.size()<<
G4endl;
 
  167   if(pPDG<-3334 || pPDG>-1111)
 
  169     G4cout<<
"*Warning*G4QAntiBaryElCS::GetCS:**> Found pPDG="<<pPDG<<
" =--=> CS=0"<<
G4endl;
 
  178   if(lastI) 
for(
G4int i=0; i<lastI; i++) 
 
  180     if(colN[i]==tgN && colZ[i]==tgZ) 
 
  185       G4cout<<
"G4QaBElCS::GetCS:*Found* P="<<pMom<<
",Threshold="<<lastTH<<
",i="<<i<<
G4endl;
 
  191         G4cout<<
"G4QaBElCS::GetCS:Found T="<<pEn<<
" < Threshold="<<lastTH<<
",CS=0"<<
G4endl;
 
  210       G4cout<<
"G4QaBElCS::G:UpdateDB P="<<pMom<<
",f="<<fCS<<
",I="<<lastI<<
",i="<<i<<
G4endl;
 
  214       G4cout<<
"G4QAntiBElCS::GetCrosSec: *****> New (inDB) Calculated CS="<<lastCS<<
G4endl;
 
  217       if(lastCS<=0. && pEn>lastTH)    
 
  220         G4cout<<
"G4QAntiBarElCS::GetCS: NewT="<<pEn<<
"(CS=0) > Threshold="<<lastTH<<
G4endl;
 
  227     G4cout<<
"---G4QAntiBarElCrossSection::GetCrosSec:pPDG="<<pPDG<<
",i="<<i<<
",N="<<colN[i]
 
  228           <<
",Z["<<i<<
"]="<<colZ[i]<<
G4endl;
 
  235     G4cout<<
"G4QaBElCS::GetCrosSec:CalcNew P="<<pMom<<
",f="<<fCS<<
",lastI="<<lastI<<
G4endl;
 
  243       G4cout<<
"G4QaBaElCrossSection::GetCrossSect: NewThresh="<<lastTH<<
",T="<<pEn<<
G4endl;
 
  248         G4cout<<
"G4QaBarElCS::GetCS: First T="<<pEn<<
"(CS=0) > Threshold="<<lastTH<<
G4endl;
 
  254     G4cout<<
"G4QaBElCS::GetCrosSec: New CS="<<lastCS<<
",lZ="<<lastN<<
",lN="<<lastZ<<
G4endl;
 
  259     colP.push_back(pMom);
 
  260     colTH.push_back(lastTH);
 
  261     colCS.push_back(lastCS);
 
  271     G4cout<<
"G4QAntiBaryonElasticCrossSection::GetCS: Update lastI="<<lastI<<
G4endl;
 
  279   G4cout<<
"G4QAntiBaryonElasticCrossSection::GetCrosSec:***End***,onlyCS="<<onlyCS<<
G4endl;
 
  290   static std::vector <G4double>  PIN;   
 
  295   G4cout<<
"G4QAntiBaryonElasticCS::CalcCS:->onlyCS="<<onlyCS<<
",F="<<F<<
",p="<<pIU<<
G4endl;
 
  297   lastLP=std::log(pMom);                
 
  315       G4cout<<
"G4QAntiBarElCS::CalcCS: DB's updated for I="<<I<<
",*,PIN4="<<PIN[4]<<
G4endl;
 
  319     G4cout<<
"G4QAntiBaryonElasticCS::CalcCS:*read*, LP="<<lastLP<<
",PIN="<<lastPIN<<
G4endl;
 
  321     if(lastLP>lastPIN && lastLP<lPMax)
 
  323       lastPIN=GetPTables(lastLP,lastPIN,PDG,tgZ,tgN);
 
  325       G4cout<<
"G4QaBElCS::CalcCS:updated(I),LP="<<lastLP<<
"<IN["<<I<<
"]="<<lastPIN<<
G4endl;
 
  345     G4cout<<
"G4QAntiBaryonElasticCS::CalcCS:*ini*,lastLP="<<lastLP<<
",min="<<lPMin<<
G4endl;
 
  347     lastPIN = GetPTables(lastLP,lPMin,PDG,tgZ,tgN); 
 
  349     G4cout<<
"G4QAnBaElCS::CCS:i,Z="<<tgZ<<
",N="<<tgN<<
",PDG="<<PDG<<
",LP"<<lastPIN<<
G4endl;
 
  351     PIN.push_back(lastPIN);             
 
  352     PAR.push_back(lastPAR);             
 
  353     CST.push_back(lastCST);             
 
  354     SST.push_back(lastSST);             
 
  355     S1T.push_back(lastS1T);             
 
  356     B1T.push_back(lastB1T);             
 
  357     S2T.push_back(lastS2T);             
 
  358     B2T.push_back(lastB2T);             
 
  359     S3T.push_back(lastS3T);             
 
  360     B3T.push_back(lastB3T);             
 
  361     S4T.push_back(lastS4T);             
 
  362     B4T.push_back(lastB4T);             
 
  366   G4cout<<
"G4QaBElCS::CalcCS:?update?,LP="<<lastLP<<
",IN="<<lastPIN<<
",ML="<<lPMax<<
G4endl;
 
  368   if(lastLP>lastPIN && lastLP<lPMax)
 
  370     lastPIN = GetPTables(lastLP,lastPIN,PDG,tgZ,tgN);
 
  372     G4cout<<
"G4QAntiBarElCS::CalcCS: *updated(O)*, LP="<<lastLP<<
" < IN="<<lastPIN<<
G4endl;
 
  376   G4cout<<
"G4QaBaElCS::CalcCS: lastLP="<<lastLP<<
",lPM="<<lPMin<<
",lPIN="<<lastPIN<<
G4endl;
 
  378   if(!onlyCS) lastTM=GetQ2max(PDG, tgZ, tgN, pMom); 
 
  380   G4cout<<
"G4QAnBarElCrosSec::CalcCS:oCS="<<onlyCS<<
",-t="<<lastTM<<
", p="<<lastLP<<
G4endl;
 
  382   if(lastLP>lPMin && lastLP<=lastPIN)   
 
  386       G4double shift=(lastLP-lPMin)/dlnP+.000001; 
 
  387       G4int    blast=
static_cast<int>(shift); 
 
  388       if(blast<0 || blast>=nLast) 
G4cout<<
"G4QaBarElCS::CCS:b="<<blast<<
","<<nLast<<
G4endl;
 
  389       lastSIG = lastCST[blast];
 
  392         theSS  = lastSST[blast];
 
  393         theS1  = lastS1T[blast];
 
  394         theB1  = lastB1T[blast];
 
  395         theS2  = lastS2T[blast];
 
  396         theB2  = lastB2T[blast];
 
  397         theS3  = lastS3T[blast];
 
  398         theB3  = lastB3T[blast];
 
  399         theS4  = lastS4T[blast];
 
  400         theB4  = lastB4T[blast];
 
  403       G4cout<<
"G4QAntiBaryonElasticCS::CalculateCS:(E) S1="<<theS1<<
", B1="<<theB1<<
G4endl;
 
  409       G4int    blast=
static_cast<int>(shift);    
 
  411       if(blast>=nLast) blast=nLast-1;            
 
  415       lastSIG= SIGL+shift*(lastCST[lastL]-SIGL); 
 
  417       G4cout<<
"G4QAntiBaryonElasticCrossSection::CalcCrossSection:Sig="<<lastSIG<<
",P=" 
  418             <<pMom<<
",Z="<<tgZ<<
",N="<<tgN<<
",PDG="<<PDG<<
",onlyCS="<<onlyCS<<
G4endl;
 
  423         theSS=SSTL+shift*(lastSST[lastL]-SSTL); 
 
  425         theS1=S1TL+shift*(lastS1T[lastL]-S1TL); 
 
  428         G4cout<<
"G4QAntiBaryonElasticCS::CalcCrossSection:b="<<blast<<
",ls="<<lastL<<
",SL=" 
  429               <<S1TL<<
",SU="<<lastS1T[lastL]<<
",BL="<<B1TL<<
",BU="<<lastB1T[lastL]<<
G4endl;
 
  431         theB1=B1TL+shift*(lastB1T[lastL]-B1TL); 
 
  433         theS2=S2TL+shift*(lastS2T[lastL]-S2TL); 
 
  435         theB2=B2TL+shift*(lastB2T[lastL]-B2TL); 
 
  437         theS3=S3TL+shift*(lastS3T[lastL]-S3TL); 
 
  439         G4cout<<
"G4QAntiBaryonElasticCrossSection::CCS:s3l="<<S3TL<<
",sh3="<<shift<<
",s3h=" 
  440               <<lastS3T[lastL]<<
",b="<<blast<<
",l="<<lastL<<
G4endl;
 
  443         theB3=B3TL+shift*(lastB3T[lastL]-B3TL); 
 
  445         theS4=S4TL+shift*(lastS4T[lastL]-S4TL); 
 
  447         G4cout<<
"G4QAntiBaryonElasticCrossSection::CCS:s4l="<<S4TL<<
",sh4="<<shift<<
",s4h=" 
  448               <<lastS4T[lastL]<<
",b="<<blast<<
",l="<<lastL<<
G4endl;
 
  451         theB4=B4TL+shift*(lastB4T[lastL]-B4TL); 
 
  454       G4cout<<
"G4QAntiBaryonElasticCS::CalculateCS:(I) S1="<<theS1<<
", B1="<<theB1<<
G4endl;
 
  458   else lastSIG=GetTabValues(lastLP, PDG, tgZ, tgN); 
 
  459   if(lastSIG<0.) lastSIG = 0.;                   
 
  461   G4cout<<
"G4QAntiBaryonElasticCrossSection::CalculateCS: END, onlyCS="<<onlyCS<<
G4endl;
 
  472   const G4int n_appel=30;                
 
  474   G4double app_el[n_appel]={1.25,3.5,80.,1.,.0557,6.72,5.,74.,3.,3.4,.2,.17,.001,8.,.055,
 
  475                             3.64,5.e-5,4000.,1500.,.46,1.2e6,3.5e6,5.e-5,1.e10,8.5e8,
 
  476                             1.e10,1.1,3.4e6,6.8e6,0.};
 
  479   if(PDG>-3334 && PDG<-1111)
 
  492     if(lastPAR[nLast]!=pwd) 
 
  494       if ( tgZ == 1 && tgN == 0 )
 
  496         for (
G4int ip=0; ip<n_appel; ip++) lastPAR[ip]=app_el[ip]; 
 
  520         lastPAR[0]=.23*asa/(1.+a*.15);                                       
 
  521         lastPAR[1]=2.8*asa/(1.+a*(.015+.05/ssa));                            
 
  522         lastPAR[2]=15.*a/(1.+.005*a2);                                       
 
  523         lastPAR[3]=.013*a2/(1.+a3*(.006+a*.00001));                          
 
  535           lastPAR[10]=1.2e7*a8+380*a17;                      
 
  536           lastPAR[11]=.7/(1.+4.e-12*a16);                    
 
  537           lastPAR[12]=2.5/a8/(a4+1.e-16*a32);                
 
  539           lastPAR[14]=1.2*a2+2.3;                            
 
  542           lastPAR[16]=.01/(1.+.0024*a5);                     
 
  544           lastPAR[18]=9.e-7/(1.+.035*a5);                    
 
  545           lastPAR[19]=(42.+2.7e-11*a16)/(1.+.14*
a);          
 
  549           lastPAR[22]=2.4e-3*a8/(1.+2.6e-4*a7);              
 
  550           lastPAR[23]=3.5e-36*a32*a8/(1.+5.e-15*a32/
a);      
 
  552           lastPAR[24]=1.e5/(a8+2.5e12/a16);                  
 
  553           lastPAR[25]=8.e7/(a12+1.e-27*a28*a28);             
 
  554           lastPAR[26]=.0006*a3;                              
 
  556           lastPAR[27]=10.+4.e-8*a12*
a;                       
 
  561           lastPAR[31]=1./(1.+.0001*a8);                      
 
  562           lastPAR[32]=1.5e-4/(1.+5.e-6*a12);                 
 
  566           lastPAR[35]=2.e-7*a4;                              
 
  570           lastPAR[38]=1.e8*std::exp(.32*asa);                
 
  571           lastPAR[39]=20.*std::exp(.45*asa);                 
 
  572           lastPAR[40]=7.e3+2.4e6/a5;                         
 
  573           lastPAR[41]=2.5e5*std::exp(.085*a3);               
 
  576           lastPAR[43]=920.+.03*a8*a3;                        
 
  577           lastPAR[44]=93.+.0023*a12;                         
 
  579          G4cout<<
"G4QaBElCS::CalcCS:la "<<lastPAR[38]<<
", "<<lastPAR[39]<<
", "<<lastPAR[40]
 
  580                <<
", "<<lastPAR[42]<<
", "<<lastPAR[43]<<
", "<<lastPAR[44]<<
G4endl;
 
  591           lastPAR[ 9]=4.5*std::pow(
a,1.15);                  
 
  592           lastPAR[10]=.06*std::pow(
a,.6);                    
 
  593           lastPAR[11]=.6*
a/(1.+2.e15/a16);                   
 
  594           lastPAR[12]=.17/(
a+9.e5/a3+1.5e33/a32);            
 
  595           lastPAR[13]=(.001+7.e-11*a5)/(1.+4.4
e-11*a5);      
 
  596           lastPAR[14]=(p1a10*p1a10+2.e-29)/(1.+2.
e-22*a12);  
 
  598           lastPAR[15]=400./a12+2.e-22*a9;                    
 
  599           lastPAR[16]=1.e-32*a12/(1.+5.e22/a14);             
 
  600           lastPAR[17]=1000./a2+9.5*sa*ssa;                   
 
  601           lastPAR[18]=4.e-6*
a*asa+1.e11/a16;                 
 
  602           lastPAR[19]=(120./
a+.002*a2)/(1.+2.e14/a16);       
 
  603           lastPAR[20]=9.+100./
a;                             
 
  605           lastPAR[21]=.002*a3+3.e7/a6;                       
 
  606           lastPAR[22]=7.e-15*a4*asa;                         
 
  607           lastPAR[23]=9000./a4;                              
 
  609           lastPAR[24]=.0011*asa/(1.+3.e34/a32/a4);           
 
  610           lastPAR[25]=1.e-5*a2+2.e14/a16;                    
 
  611           lastPAR[26]=1.2e-11*a2/(1.+1.5e19/a12);            
 
  612           lastPAR[27]=.016*asa/(1.+5.e16/a16);               
 
  614           lastPAR[28]=.002*a4/(1.+7.e7/std::pow(
a-6.83,14)); 
 
  615           lastPAR[29]=2.e6/a6+7.2/std::pow(
a,.11);           
 
  616           lastPAR[30]=11.*a3/(1.+7.e23/a16/a8);              
 
  617           lastPAR[31]=100./asa;                              
 
  619           lastPAR[32]=(.1+4.4e-5*a2)/(1.+5.e5/a4);           
 
  620           lastPAR[33]=3.5e-4*a2/(1.+1.e8/a8);                
 
  621           lastPAR[34]=1.3+3.e5/a4;                           
 
  622           lastPAR[35]=500./(a2+50.)+3;                       
 
  623           lastPAR[36]=1.e-9/
a+s4a16*s4a16;                   
 
  625           lastPAR[37]=.4*asa+3.e-9*a6;                       
 
  626           lastPAR[38]=.0005*a5;                              
 
  630           lastPAR[41]=.05+.005*
a;                            
 
  631           lastPAR[42]=7.e-8/sa;                              
 
  635           lastPAR[46]=3.e32/(a32+1.e32);                     
 
  639           lastPAR[49]=7.e3*
a/(sa+1.);                        
 
  640           lastPAR[50]=900.*sa/(1.+500./a3);                  
 
  642          G4cout<<
"G4QaBElCS::CalcCS:ha "<<lastPAR[41]<<
", "<<lastPAR[42]<<
", "<<lastPAR[43]
 
  643                <<
", "<<lastPAR[44]<<
", "<<lastPAR[45]<<
", "<<lastPAR[46]<<
G4endl;
 
  647         lastPAR[51]=1.e15+2.e27/a4/(1.+2.e-18*a16);
 
  654       lastCST[0]=GetTabValues(lp, PDG, tgZ, tgN); 
 
  666       G4cout<<
"G4QAntiBaryonElasticCrossSection::GetPTables:ip=0(init), lp="<<lp<<
",S1=" 
  667             <<theS1<<
",B1="<<theB1<<
",S2="<<theS2<<
",B2="<<theB3<<
",S3="<<theS3
 
  668             <<
",B3="<<theB3<<
",S4="<<theS4<<
",B4="<<theB4<<
G4endl;
 
  673       G4int ini = 
static_cast<int>((ILP-lPMin+.000001)/dlnP)+1; 
 
  677         G4int fin = 
static_cast<int>((LP-lPMin)/dlnP)+1; 
 
  678         if(fin>=nPoints) fin=nLast;               
 
  687             lastCST[ip]=GetTabValues(lp, PDG, tgZ, tgN); 
 
  699             G4cout<<
"G4QAntiBaryonElasticCrossSection::GetPTables:ip="<<ip<<
",lp="<<lp
 
  700                   <<
",S1="<<theS1<<
",B1="<<theB1<<
",S2="<<theS2<<
",B2="<<theB2<<
",S3=" 
  701                   <<theS3<<
",B3="<<theB3<<
",S4="<<theS4<<
",B4="<<theB4<<
G4endl;
 
  706         else G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetPTables: PDG="<<PDG
 
  707                    <<
", Z="<<tgZ<<
", N="<<tgN<<
", i="<<ini<<
" > fin="<<fin<<
", LP="<<LP
 
  708                    <<
" > ILP="<<ILP<<
" nothing is done!"<<
G4endl;
 
  710       else G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetPTables: PDG="<<PDG
 
  711                  <<
", Z="<<tgZ<<
", N="<<tgN<<
", i="<<ini<<
">= max="<<nPoints<<
", LP="<<LP
 
  712                  <<
" > ILP="<<ILP<<
", lPMax="<<lPMax<<
" nothing is done!"<<
G4endl;
 
  715     else G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetPTab:PDG="<<PDG<<
",Z="<<tgZ
 
  716                <<
", N="<<tgN<<
", LP="<<LP<<
" <= ILP="<<ILP<<
" nothing is done!"<<
G4endl;
 
  725     ed << 
"PDG = " << PDG << 
", Z = " << tgZ << 
", N = " << tgN
 
  726        << 
", while it is defined only for Anti Baryons" << 
G4endl;
 
  727     G4Exception(
"G4QAntiBaryonElasticCrossSection::GetPTables()", 
"HAD_CHPS_0000",
 
  741   G4cout<<
"G4QAnBaElCS::GetExcT: F="<<onlyCS<<
",Z="<<tgZ<<
",N="<<tgN<<
",PDG="<<PDG<<
G4endl;
 
  743   if(PDG<-3334 || PDG>-1111)
G4cout<<
"*Warning*G4QAntiBaryonElCS::GetExT:PDG="<<PDG<<
G4endl;
 
  744   if(onlyCS)
G4cout<<
"WarningG4QAntiBaryonElasticCrossSection::GetExchanT:onlyCS=1"<<
G4endl;
 
  750     G4cout<<
"G4QAnBarElCS::GetExchangeT: TM="<<lastTM<<
",S1="<<theS1<<
",B1="<<theB1<<
",S2=" 
  751           <<theS2<<
",B2="<<theB2<<
",S3="<<theS3<<
",B3="<<theB3<<
",GeV2="<<GeVSQ<<
G4endl;
 
  756     G4double ts1=-std::log(1.-R1)/theB1;
 
  757     G4double ds1=std::fabs(ts1-lastTM)/lastTM;
 
  759       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:1p "<<ts1<<
"#"<<lastTM
 
  760             <<
",d="<<ds1<<
",R1="<<R1<<
",E1="<<E1<<
G4endl;
 
  763     G4double R2=(1.-std::exp(-E2*E2*E2));
 
  765     G4double ts2=std::pow(-std::log(1.-R2),.333333333)/theB2;
 
  766     G4double ds2=std::fabs(ts2-lastTM)/lastTM;
 
  768       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:2p "<<ts2<<
"#"<<lastTM
 
  769             <<
",d="<<ds2<<
",R2="<<R2<<
",E2="<<E2<<
G4endl;
 
  774     G4double ts3=-std::log(1.-R3)/theB3;
 
  775     G4double ds3=std::fabs(ts3-lastTM)/lastTM;
 
  777       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:3p "<<ts3<<
"#"<<lastTM
 
  778             <<
",d="<<ds3<<
",R3="<<R1<<
",E3="<<E3<<
G4endl;
 
  789       q2=-std::log(1.-ran)/theB1;
 
  795       q2=-std::log(1.-ran);
 
  797       q2=std::pow(q2,third)/theB2;
 
  803       q2=-std::log(1.-ran)/theB3;
 
  810     G4cout<<
"G4QAntiBaryonElasticCrossSection::GetExT:a="<<a<<
",t="<<lastTM<<
",S1="<<theS1
 
  811           <<
",B1="<<theB1<<
",SS="<<theSS<<
",S2="<<theS2<<
",B2="<<theB2<<
",S3="<<theS3
 
  812           <<
",B3="<<theB3<<
",S4="<<theS4<<
",B4="<<theB4<<
G4endl;
 
  814     G4double E1=lastTM*(theB1+lastTM*theSS);
 
  818     G4double ts1=-std::log(1.-R1)/theB1;
 
  819     if(std::fabs(tss)>1.
e-7) ts1=(std::sqrt(theB1*(theB1+(tss+tss)*ts1))-theB1)/tss;
 
  822       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:1a "<<ts1<<
"#"<<lastTM
 
  823             <<
",d="<<ds1<<
",R1="<<R1<<
",E1="<<E1<<
G4endl;
 
  830     G4double ts2=-std::log(1.-R2)/theB2;
 
  831     if(a<6.5)ts2=std::pow(ts2,third);
 
  832     else     ts2=std::pow(ts2,fifth);
 
  833     G4double ds2=std::fabs(ts2-lastTM)/lastTM;
 
  835       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:2a "<<ts2<<
"#"<<lastTM
 
  836             <<
",d="<<ds2<<
",R2="<<R2<<
",E2="<<E2<<
G4endl;
 
  839     if(a>6.5)E3*=tm2*tm2*tm2;                       
 
  842     G4double ts3=-std::log(1.-R3)/theB3;
 
  843     if(a>6.5)ts3=std::pow(ts3,sevth);
 
  844     G4double ds3=std::fabs(ts3-lastTM)/lastTM;
 
  846       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:3a "<<ts3<<
"#"<<lastTM
 
  847             <<
",d="<<ds3<<
",R3="<<R3<<
",E3="<<E3<<
G4endl;
 
  852     G4double ts4=-std::log(1.-R4)/theB4;
 
  853     G4double ds4=std::fabs(ts4-lastTM)/lastTM;
 
  855       G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GetExT:4a "<<ts4<<
"#"<<lastTM
 
  856             <<
",d="<<ds4<<
",R4="<<R4<<
",E4="<<E4<<
G4endl;
 
  866     G4cout<<
"G4QaBElCS::GExT:1="<<I1<<
",2="<<I2<<
",3="<<I3<<
",4="<<I4<<
",r="<<rand<<
G4endl;
 
  872       q2=-std::log(1.-ran)/theB1;
 
  873       if(std::fabs(tss)>1.
e-7) q2=(std::sqrt(theB1*(theB1+(tss+tss)*q2))-theB1)/tss;
 
  875       G4cout<<
"G4QaBElCS::GExT:Q2="<<q2<<
",ss="<<tss/2<<
",b1="<<theB1<<
",t1="<<ts1<<
G4endl;
 
  882       q2=-std::log(1.-ran)/theB2;
 
  884       if(a<6.5) q2=std::pow(q2,third);
 
  885       else      q2=std::pow(q2,fifth);
 
  887       G4cout<<
"G4QaBaElCS::GetExT:Q2="<<q2<<
",r2="<<R2<<
",b2="<<theB2<<
",t2="<<ts2<<
G4endl;
 
  894       q2=-std::log(1.-ran)/theB3;
 
  896       if(a>6.5) q2=std::pow(q2,sevth);
 
  898       G4cout<<
"G4QaBaElCS::GetExT:Q2="<<q2<<
",r3="<<R2<<
",b3="<<theB2<<
",t3="<<ts2<<
G4endl;
 
  905       q2=-std::log(1.-ran)/theB4;
 
  906       if(a<6.5) q2=lastTM-q2;                    
 
  908       G4cout<<
"G4QaBElCS::GExT:Q2="<<q2<<
",m="<<lastTM<<
",b4="<<theB3<<
",t4="<<ts3<<
G4endl;
 
  913   if(!(q2>=-1.||q2<=1.))
G4cout<<
"*NAN*G4QaBElasticCrossSect::GetExchangeT:-t="<<q2<<
G4endl;
 
  917     G4cout<<
"*Warning*G4QAntiBaryonElasticCrossSection::GExT:-t="<<q2<<
">"<<lastTM<<
G4endl;
 
  929   G4cout<<
"G4QAnBarElCS::GetSlope:"<<onlyCS<<
", Z="<<tgZ<<
",N="<<tgN<<
",PDG="<<PDG<<
G4endl;
 
  931   if(onlyCS)
G4cout<<
"WarningG4QAntiBaryonElasticCrossSection::GetSlope:onlCS=true"<<
G4endl;
 
  932   if(lastLP<-4.3) 
return 0.;          
 
  933   if(PDG<-3334 || PDG>-1111)
 
  939     ed << 
"PDG = " << PDG << 
", Z = " << tgZ << 
", N = " << tgN
 
  940        << 
", while it is defined only for Anti Baryons" << 
G4endl;
 
  941     G4Exception(
"G4QAntiBaryonElasticCrossSection::GetSlope()", 
"HAD_CHPS_0000",
 
  944   if(theB1<0.) theB1=0.;
 
  945   if(!(theB1>=-1.||theB1<=1.))
G4cout<<
"*NAN*G4QaBaElasticCrossS::Getslope:"<<theB1<<
G4endl;
 
  953   return lastTM*HGeVSQ;
 
  960   if(PDG<-3334 || PDG>-1111) 
G4cout<<
"*Warning*G4QAntiBaryElCS::GetTabV:PDG="<<PDG<<
G4endl;
 
  963     G4cout<<
"*Warning*G4QAntiBaryonElCS::GetTabValue:(1-92) NoIsotopesFor Z="<<tgZ<<
G4endl;
 
  981   G4cout<<
"G4QaBElasticCS::GetTabVal:l="<<lp<<
",Z="<<tgZ<<
",N="<<tgN<<
",PDG="<<PDG<<
G4endl;
 
  988   if ( tgZ == 1 && tgN == 0 ) 
 
  992     theS1=(lastPAR[7]+lastPAR[8]*dl2*dl2)/(1.+lastPAR[9]/p4/p)+
 
  993           (lastPAR[10]/p2+lastPAR[11]*
p)/(p4+lastPAR[12]*sp);
 
  994     theB1=lastPAR[13]*std::pow(p,lastPAR[14])/(1.+lastPAR[15]/p3);
 
  995     theS2=lastPAR[16]+lastPAR[17]/(p4+lastPAR[18]*
p);
 
  996     theB2=lastPAR[19]+lastPAR[20]/(p4+lastPAR[21]/
sp); 
 
  997     theS3=lastPAR[22]+lastPAR[23]/(p4*p4+lastPAR[24]*p2+lastPAR[25]);
 
  998     theB3=lastPAR[26]+lastPAR[27]/(p4+lastPAR[28]); 
 
 1002     G4cout<<
"G4QAntiBarElasticCS::GetTableValues:TM="<<lastTM<<
",S1="<<theS1<<
",B1="<<theB1
 
 1003           <<
",S2="<<theS2<<
",B2="<<theB2<<
",S3="<<theS1<<
",B3="<<theB1<<
G4endl;
 
 1006     G4double ye=std::exp(lp*lastPAR[0]);
 
 1008     return lastPAR[2]/(ye+lastPAR[3])+lastPAR[4]*dp*dp+lastPAR[5];
 
 1026       theS1=lastPAR[9]/(1.+lastPAR[10]*p4*pa)+lastPAR[11]/(p4+lastPAR[12]*p4/pa2)+
 
 1027             (lastPAR[13]*dl*dl+lastPAR[14])/(1.+lastPAR[15]/p2);
 
 1028       theB1=(lastPAR[16]+lastPAR[17]*p2)/(p4+lastPAR[18]/pah)+lastPAR[19];
 
 1029       theSS=lastPAR[20]/(1.+lastPAR[21]/p2)+lastPAR[22]/(p6/pa+lastPAR[23]/p16);
 
 1030       theS2=lastPAR[24]/(pa/p2+lastPAR[25]/p4)+lastPAR[26];
 
 1031       theB2=lastPAR[27]*std::pow(p,lastPAR[28])+lastPAR[29]/(p8+lastPAR[30]/p16);
 
 1032       theS3=lastPAR[31]/(pa*p+lastPAR[32]/pa)+lastPAR[33];
 
 1033       theB3=lastPAR[34]/(p3+lastPAR[35]/p6)+lastPAR[36]/(1.+lastPAR[37]/p2);
 
 1034       theS4=p2*(pah*lastPAR[38]*std::exp(-pah*lastPAR[39])+
 
 1035                 lastPAR[40]/(1.+lastPAR[41]*std::pow(p,lastPAR[42])));
 
 1036       theB4=lastPAR[43]*pa/p2/(1.+pa*lastPAR[44]);
 
 1038       G4cout<<
"G4QaBaElCS::GetTabV: lA, p="<<p<<
",S1="<<theS1<<
",B1="<<theB1<<
",SS="<<theSS
 
 1039             <<
",S2="<<theS2<<
",B2="<<theB2<<
",S3="<<theS3<<
",B3="<<theB3<<
",S4="<<theS4
 
 1045       theS1=lastPAR[9]/(1.+lastPAR[10]/p4)+lastPAR[11]/(p4+lastPAR[12]/p2)+
 
 1046             lastPAR[13]/(p5+lastPAR[14]/p16);
 
 1047       theB1=(lastPAR[15]/p8+lastPAR[19])/(p+lastPAR[16]/std::pow(p,lastPAR[20]))+
 
 1048             lastPAR[17]/(1.+lastPAR[18]/p4);
 
 1049       theSS=lastPAR[21]/(p4/std::pow(p,lastPAR[23])+lastPAR[22]/p4);
 
 1050       theS2=lastPAR[24]/p4/(std::pow(p,lastPAR[25])+lastPAR[26]/p12)+lastPAR[27];
 
 1051       theB2=lastPAR[28]/std::pow(p,lastPAR[29])+lastPAR[30]/std::pow(p,lastPAR[31]);
 
 1052       theS3=lastPAR[32]/std::pow(p,lastPAR[35])/(1.+lastPAR[36]/p12)+
 
 1053             lastPAR[33]/(1.+lastPAR[34]/p6);
 
 1054       theB3=lastPAR[37]/p8+lastPAR[38]/p2+lastPAR[39]/(1.+lastPAR[40]/p8);
 
 1055       theS4=(lastPAR[41]/p4+lastPAR[46]/
p)/(1.+lastPAR[42]/p10)+
 
 1056             (lastPAR[43]+lastPAR[44]*dl*dl)/(1.+lastPAR[45]/p12);
 
 1057       theB4=lastPAR[47]/(1.+lastPAR[48]/
p)+lastPAR[49]*p4/(1.+lastPAR[50]*p5);
 
 1059       G4cout<<
"G4QaBaElCS::GetTabV: hA, p="<<p<<
",S1="<<theS1<<
",B1="<<theB1<<
",SS="<<theSS
 
 1060             <<
",S2="<<theS2<<
",B2="<<theB2<<
",S3="<<theS3<<
",B3="<<theB3<<
",S4="<<theS4
 
 1066     G4cout<<
"G4QAntiBarElCS::GetTabV: PDG="<<PDG<<
",P="<<p<<
",N="<<tgN<<
",Z="<<tgZ<<
G4endl;
 
 1070     return (lastPAR[0]*dlp*dlp+lastPAR[1]+lastPAR[2]/p)/(1.+lastPAR[3]/
p);
 
 1085   static const G4double mNuc2= 
sqr((mProt+mNeut)/2);
 
 1094     G4double s_value=dmt*std::sqrt(pP2+mNuc2)+mNuc2+mt*mt;    
 
 1095     return dmt*dmt*pP2/s_value;
 
 1103     ed << 
"PDG = " << PDG << 
", Z = " << tgZ << 
", N = " << tgN
 
 1104        << 
", while it is defined only for p projectiles & Z_target>0" << 
G4endl;
 
 1105     G4Exception(
"G4QAntiBaryonElasticCrossSection::GetQ2max()", 
"HAD_CHPS_0000",