Skip to content
Snippets Groups Projects

Draft: Resolve "Add TOF benchmark"

Open Zhenyu Ye requested to merge 74-add-tof-benchmark into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -44,7 +44,7 @@ void gen_multiple_tracks(int n_events = 100,
// Define momentum
Double_t p = r1->Uniform(1.0, 10.0);
Double_t phi = r1->Uniform(0.0, 2.0 * M_PI);
Double_t costh = r1->Uniform(-0.05, 0.05; //r1->Uniform(cos_theta_min, cos_theta_max);
Double_t costh = r1->Uniform(-0.05, 0.05); //r1->Uniform(cos_theta_min, cos_theta_max);
Double_t th = std::acos(costh);
Double_t px = p * std::cos(phi) * std::sin(th);
Double_t py = p * std::sin(phi) * std::sin(th);
Loading