Skip to content
Snippets Groups Projects
Commit a02002c3 authored by Zhenyu Ye's avatar Zhenyu Ye
Browse files

debug TOF benchmark

parent 2f1c2cb5
Branches
Tags
1 merge request!209Draft: Resolve "Add TOF benchmark"
...@@ -44,7 +44,7 @@ void gen_multiple_tracks(int n_events = 100, ...@@ -44,7 +44,7 @@ void gen_multiple_tracks(int n_events = 100,
// Define momentum // Define momentum
Double_t p = r1->Uniform(1.0, 10.0); Double_t p = r1->Uniform(1.0, 10.0);
Double_t phi = r1->Uniform(0.0, 2.0 * M_PI); 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 th = std::acos(costh);
Double_t px = p * std::cos(phi) * std::sin(th); Double_t px = p * std::cos(phi) * std::sin(th);
Double_t py = p * std::sin(phi) * std::sin(th); Double_t py = p * std::sin(phi) * std::sin(th);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment