Skip to content
Snippets Groups Projects
Commit a713d319 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

gen_sigma_decay.cxx: avoid spamming stdout

parent 785998b2
No related branches found
No related tags found
No related merge requests found
Pipeline #110372 canceled
......@@ -291,11 +291,11 @@ void gen_sigma_decay(int n_events = 100000, UInt_t seed = 0, char* out_fname = "
TVector3 extrap_gamma2=lambda_decay_position+gamma2_lab.Vect()*((zdc_z-pbeam_dir.Dot(lambda_decay_position))/(pbeam_dir.Dot(gamma2_lab.Vect())));
if (extrap_neutron.Angle(pbeam_dir)<0.004 && extrap_gamma1.Angle(pbeam_dir)<0.004 && extrap_gamma2.Angle(pbeam_dir)<0.004 && extrap_gamma.Angle(pbeam_dir)<0.004 && lambda_decay_position.Dot(pbeam_dir)<zdc_z){
hepmc_output.write_event(evt);
if (accepted_events % 1000 == 0) {
std::cout << "Event: " << accepted_events << std::endl;
}
accepted_events ++;
}
if (accepted_events % 1000 == 0) {
std::cout << "Event: " << accepted_events << std::endl;
}
evt.clear();
}
hepmc_output.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment