43 using namespace starlightConstants;
73 double y1,y2,y12,ega1,ega2,ega12;
74 double csgA1,csgA2,csgA12,int_r,dR;
78 double bwnorm = bwnormsave;
91 cout<<
" Using Breit-Wigner Resonance Profile."<<endl;
94 cout<<
" Using Breit-Wigner plus direct pi+pi- profile."<<endl;
107 for(I=0;I<=NW-1;I++){
111 for(J=0;J<=NY-1;J++){
117 if( A_2 == 1 && A_1 != 1 ){
120 ega1 = 0.5*W*exp(-y1);
121 ega2 = 0.5*W*exp(-y2);
122 ega12 = 0.5*W*exp(-y12);
124 }
else if( A_1 ==1 && A_2 != 1){
126 ega1 = 0.5*W*exp(y1);
127 ega2 = 0.5*W*exp(y2);
128 ega12 = 0.5*W*exp(y12);
131 ega1 = 0.5*W*exp(y1);
132 ega2 = 0.5*W*exp(y2);
133 ega12 = 0.5*W*exp(y12);
138 if(ega1 < Eth || ega2 < Eth)
continue;
151 dR = dR + 4.*ega12*
photonFlux(ega12,beam)*csgA12;
167 if( !( (A_2 == 1 && A_1 != 1) || (A_1 == 1 && A_2 != 1) ) ){
168 for(I=0;I<=NW-1;I++){
172 for(J=0;J<=NY-1;J++){
179 ega1 = 0.5*W*exp(-y1);
180 ega2 = 0.5*W*exp(-y2);
181 ega12 = 0.5*W*exp(-y12);
183 if(ega1< Eth || ega2 < Eth)
continue;
196 dR = dR + 4.*ega12*
photonFlux(ega12,beam)*csgA12;
212 if (0.01*int_r > 1.){
213 cout<<
" Total cross section: "<<0.01*int_r<<
" barn."<<endl;
214 }
else if (10.*int_r > 1.){
215 cout<<
" Total cross section: " <<10.*int_r<<
" mb."<<endl;
216 }
else if (10000.*int_r > 1.){
217 cout<<
" Total cross section: " <<10000.*int_r<<
" microb."<<endl;
218 }
else if (10000000.*int_r > 1.){
219 cout<<
" Total cross section: " <<10000000.*int_r<<
" nanob."<<endl;
220 }
else if (1.E10*int_r > 1.){
221 cout<<
" Total cross section: "<<1.E10*int_r<<
" picob."<<endl;
223 cout<<
" Total cross section: " <<1.E13*int_r<<
" femtob."<<endl;