Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
detector_benchmarks
Commits
5ae60de7
Commit
5ae60de7
authored
Sep 26, 2021
by
Zhenyu Ye
Browse files
Options
Downloads
Patches
Plain Diff
Debug TOF
parent
14830aa0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!92
Draft: Resolve "Add TOF benchmark"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/tof/scripts/gen_tof_hits.cxx
+2
-2
2 additions, 2 deletions
benchmarks/tof/scripts/gen_tof_hits.cxx
benchmarks/tof/scripts/sim_tof_hits.cxx
+2
-2
2 additions, 2 deletions
benchmarks/tof/scripts/sim_tof_hits.cxx
with
4 additions
and
4 deletions
benchmarks/tof/scripts/gen_tof_hits.cxx
+
2
−
2
View file @
5ae60de7
...
@@ -39,9 +39,9 @@ void gen_tof_hits(int n_events = 100,
...
@@ -39,9 +39,9 @@ void gen_tof_hits(int n_events = 100,
GenParticlePtr
p2
=
std
::
make_shared
<
GenParticle
>
(
FourVector
(
0.0
,
0.0
,
0.0
,
0.938
),
2212
,
4
);
GenParticlePtr
p2
=
std
::
make_shared
<
GenParticle
>
(
FourVector
(
0.0
,
0.0
,
0.0
,
0.938
),
2212
,
4
);
// Define momentum
// Define momentum
Double_t
p
=
r1
->
Uniform
(
0.
5
,
2
);
Double_t
p
=
r1
->
Uniform
(
0.
2
,
2
);
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
=
0
;
//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
);
...
...
This diff is collapsed.
Click to expand it.
benchmarks/tof/scripts/sim_tof_hits.cxx
+
2
−
2
View file @
5ae60de7
...
@@ -147,8 +147,8 @@ int sim_tof_hits(const char* fname = "sim_tof_hits.root")
...
@@ -147,8 +147,8 @@ int sim_tof_hits(const char* fname = "sim_tof_hits.root")
auto
hVertexEndcap_N_vs_theta
=
df0
.
Histo1D
({
"hVertexEndcap_N_vs_theta"
,
"; #theta [deg.]"
,
20
,
0
,
180
},
"theta0"
,
"N_VertexEndcapHits"
);
auto
hVertexEndcap_N_vs_theta
=
df0
.
Histo1D
({
"hVertexEndcap_N_vs_theta"
,
"; #theta [deg.]"
,
20
,
0
,
180
},
"theta0"
,
"N_VertexEndcapHits"
);
auto
hBarrelTof_time_vs_
length
=
df0
.
Histo2D
(
auto
hBarrelTof_time_vs_
p
=
df0
.
Histo2D
(
{
"hBarrelTof_time_vs_length"
,
"; time ;
length
"
,
100
,
0
,
10
,
100
,
0
,
1
},
{
"hBarrelTof_time_vs_length"
,
"; time ;
p
"
,
100
,
0
,
10
,
100
,
0
,
2
},
"BarrelTOFHits.truth.time"
,
"BarrelTOFHits.length"
);
"BarrelTOFHits.truth.time"
,
"BarrelTOFHits.length"
);
auto
hBarrelTof_x_vs_y
=
df0
.
Histo2D
(
auto
hBarrelTof_x_vs_y
=
df0
.
Histo2D
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment