This program can be execute from the command line as folows:
}
}
cout<<"--- kanwa started ---"<<endl;
TH2D *hst_xy =
new TH2D(
"hst_xy" ,
"x-y plot", 50,0,1.0, 50,0,1.0);
TCanvas *cKanwa =
new TCanvas(
"cKanwa",
"Canvas for plotting",600,600);
int nshow=5000;
for(long loop=0; loop<100000; loop++){
if(loop<10) cout<<"(x,y) = ( "<< x <<", "<< y <<" )"<<endl;
if(loop == nshow){
nshow += 5000;
}
}
cout << " MCresult= " << MCresult << " +- " << MCerror <<endl;
cout<<"--- kanwa ended ---"<<endl;
return 0;
}
- Author
- Stascek Jadach
Definition in file foam_kanwa.C.