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

run BTOF at eta=0.25

parent 465b698e
No related tags found
1 merge request!100Resolve "Add BTOF benchmarks"
...@@ -35,7 +35,7 @@ void gen_tof_hits(int n_events = 100, ...@@ -35,7 +35,7 @@ void gen_tof_hits(int n_events = 100,
// pdgid 111 - pi0 // pdgid 111 - pi0
// pdgid 2212 - proton // pdgid 2212 - proton
Double_t p = r1->Uniform(0, 3.5); Double_t p = r1->Uniform(0, 3.5);
Double_t costh = -1*cos(75.824/180*3.1415926); //r1->Uniform(cos_theta_min, cos_theta_max); Double_t costh = -1*cos(75.825/180*3.1415926); //r1->Uniform(cos_theta_min, cos_theta_max);
Double_t th = std::acos(costh); Double_t th = std::acos(costh);
Double_t phi = r1->Uniform(0.0, 2.0 * M_PI); Double_t phi = r1->Uniform(0.0, 2.0 * M_PI);
Double_t px = p * std::cos(phi) * std::sin(th); Double_t px = p * std::cos(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