Skip to content

Commit

Permalink
gen_sigma_decay.cxx: avoid spamming stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Jan 12, 2025
1 parent 940fd39 commit a87a32b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/zdc_sigma/analysis/gen_sigma_decay.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a87a32b

Please sign in to comment.