13 m_n_plot_points (1000)
19 cout<<
"SANC plot 1 (short)..."<<endl;
21 double smin = log(6.*6.)+0.0001;
22 double smax = log(17000.*17000.);
23 double step = (smax-smin)/(m_n_plot_points-1);
26 f1.open(
"f-sanc.txt");
27 f2.open(
"f-born.txt");
28 f3.open(
"f-plzap0.txt");
29 for(
int i=0; i<m_n_plot_points; i++)
31 double s = exp(smin+i*step);
34 t_pair.recalculateRij(m_incoming_pdg_id,15,s,m_cosTheta);
35 f1<<sqrt(s)<<
" "<<t_pair.m_R[0][3]<<endl;
39 t_pair.recalculateRij(11,15,s,m_cosTheta);
40 f2<<sqrt(s)<<
" "<<t_pair.m_R[0][3]<<endl;
42 int outgoing_pdg_id = 15;
45 double pz = 1-plzap0_(&m_incoming_pdg_id,&outgoing_pdg_id,&s, &m_cosTheta);
46 t_pair.m_R[0][3]=2*pz-1;
47 f3<<sqrt(s)<<
" "<<t_pair.m_R[0][3]<<endl;
56 cout<<
"SANC plot 2 (short)..."<<endl;
58 double smin = log(6.*6.)+0.0001;
59 double smax = log(17000.*17000.);
60 double step = (smax-smin)/(m_n_plot_points-1);
63 f1.open(
"f-w-single-point.txt");
64 f2.open(
"f-w0-single-point.txt");
65 f3.open(
"f-ww0-single-point.txt");
67 for(
int i=0; i<m_n_plot_points; i++){
69 double s=exp(smin+i*step);
70 t_pair.recalculateRij(m_incoming_pdg_id,15,s,m_cosTheta);
73 f1<<sqrt(s)<<
" "<<Tauola::getEWwt()<<endl;
74 f2<<sqrt(s)<<
" "<<Tauola::getEWwt0()<<endl;
75 f3<<sqrt(s)<<
" "<<Tauola::getEWwt()/Tauola::getEWwt0()<<endl;
84 cout<<
"SANC plot 3 (long)..."<<endl;
86 double smin = log(6.*6.)+0.0001;
87 double smax = log(17000.*17000.);
88 double step = (smax-smin)/(m_n_plot_points-1);
94 for(
int i=0; i<m_n_plot_points; i++){
98 for(
int j=0; j<m_n_plot_points; j++){
100 double s = exp(smin+j*step);
103 t_pair.recalculateRij(m_incoming_pdg_id,15,s,costheta);
104 buf = t_pair.m_R[0][3];
105 t_pair.recalculateRij(11,15,s,costheta);
108 err += (buf-t_pair.m_R[0][3])*(buf-t_pair.m_R[0][3]);
111 f1<<costheta<<
" "<<err/m_n_plot_points<<endl;
113 costheta+=2./m_n_plot_points;
121 cout<<
"SANC plot 4 (medium)..."<<endl;
123 double smin = log(6.*6.);
124 double smax = log(17000.*17000.);
125 double step = (smax-smin)/(m_n_plot_points-1);
128 f1.open(
"f-cross.txt");
132 for(
int i=0; i<m_n_plot_points; i++){
134 double s = exp(smin+i*step);
136 double sumEWwt0 = 0.;
137 double costheta = -1.;
141 for(
int j=0; j<NCOS; j++){
143 costheta = -1. + 1.0/NCOS + j*2./NCOS;
145 t_pair.recalculateRij(m_incoming_pdg_id,15,s,costheta);
147 sumEWwt +=Tauola::getEWwt();
148 sumEWwt0+=Tauola::getEWwt0();
151 f1<<sqrt(s)<<
" "<<sumEWwt/sumEWwt0/m_n_plot_points<<endl;
152 f2<<sqrt(s)<<
" "<< 2./NCOS * sumEWwt <<endl;
153 f3<<sqrt(s)<<
" "<< 2./NCOS * sumEWwt0 <<endl;
162 m_incoming_pdg_id = incoming;
163 m_cosTheta = cosTheta;
void setSancVariables(int inc, double cos)