Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_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
physics_benchmarks
Commits
1503e53f
Commit
1503e53f
authored
Dec 8, 2022
by
Kong Tu
Browse files
Options
Downloads
Patches
Plain Diff
simple analysis - adding cluster energy calibration
parent
8668ce39
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/diffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
+4
-2
4 additions, 2 deletions
...iffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
with
4 additions
and
2 deletions
benchmarks/diffractive_vm/analysis/diffractive_vm_simple_analysis.cxx
+
4
−
2
View file @
1503e53f
...
@@ -100,6 +100,7 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
...
@@ -100,6 +100,7 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
TH2D
*
h_t_res
=
new
TH2D
(
"h_t_res"
,
";t_{MC} (GeV^{2}); t_{MC}-t_{REC}/t_{MC}"
,
100
,
0
,
0.2
,
1000
,
-
10
,
10
);
TH2D
*
h_t_res
=
new
TH2D
(
"h_t_res"
,
";t_{MC} (GeV^{2}); t_{MC}-t_{REC}/t_{MC}"
,
100
,
0
,
0.2
,
1000
,
-
10
,
10
);
TH2D
*
h_trk_t_res
=
new
TH2D
(
"h_trk_t_res"
,
";t_{MC} (GeV^{2}); t_{MC}-t_{REC}/t_{MC} track-base"
,
100
,
0
,
0.2
,
1000
,
-
10
,
10
);
TH2D
*
h_trk_t_res
=
new
TH2D
(
"h_trk_t_res"
,
";t_{MC} (GeV^{2}); t_{MC}-t_{REC}/t_{MC} track-base"
,
100
,
0
,
0.2
,
1000
,
-
10
,
10
);
TH2D
*
h_t_2D
=
new
TH2D
(
"h_t_2D"
,
";t_{MC} (GeV^{2}); t_{REC} (GeV^{2}) track-base"
,
100
,
0
,
0.2
,
100
,
0
,
0.2
);
TH2D
*
h_t_2D
=
new
TH2D
(
"h_t_2D"
,
";t_{MC} (GeV^{2}); t_{REC} (GeV^{2}) track-base"
,
100
,
0
,
0.2
,
100
,
0
,
0.2
);
TH2D
*
h_t_REC_2D
=
new
TH2D
(
"h_t_REC_2D"
,
";t_{trk,REC} (GeV^{2}); t_{EEMC,REC} (GeV^{2})"
,
100
,
0
,
0.2
,
100
,
0
,
0.2
);
//energy clus
//energy clus
TH2D
*
h_emClus_position_REC
=
new
TH2D
(
"h_emClus_position_REC"
,
";x (cm);y (cm)"
,
80
,
-
800
,
800
,
80
,
-
800
,
800
);
TH2D
*
h_emClus_position_REC
=
new
TH2D
(
"h_emClus_position_REC"
,
";x (cm);y (cm)"
,
80
,
-
800
,
800
,
80
,
-
800
,
800
);
...
@@ -211,7 +212,7 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
...
@@ -211,7 +212,7 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
double
xClus
=
xhitpos
;
double
xClus
=
xhitpos
;
double
yClus
=
yhitpos
;
double
yClus
=
yhitpos
;
// double radius=sqrt(xClus*xClus+yClus*yClus);
// double radius=sqrt(xClus*xClus+yClus*yClus);
//
if(radius<1
2
0. || radius>550. ) continue;
if
(
radius
<
10
5
.
||
radius
>
550.
)
continue
;
h_energy_REC
->
Fill
(
clusEnergy
);
h_energy_REC
->
Fill
(
clusEnergy
);
//ratio of reco / truth Energy
//ratio of reco / truth Energy
...
@@ -318,8 +319,9 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
...
@@ -318,8 +319,9 @@ int diffractive_vm_simple_analysis(const std::string& config_name)
//2 versions: track and energy cluster:
//2 versions: track and energy cluster:
double
t_trk_REC
=
giveme_t_method_L
(
ebeam
,
scatMCmatchREC
,
pbeam
,
vmREC
);
double
t_trk_REC
=
giveme_t_method_L
(
ebeam
,
scatMCmatchREC
,
pbeam
,
vmREC
);
double
t_REC
=
giveme_t_method_L
(
ebeam
,
scatClusEREC
,
pbeam
,
vmREC
);
double
t_REC
=
giveme_t_method_L
(
ebeam
,
scatClusEREC
,
pbeam
,
vmREC
);
h_t_trk_REC
->
Fill
(
t_trk_REC
);
h_t_trk_REC
->
Fill
(
t_trk_REC
,
t_REC
);
h_t_REC
->
Fill
(
t_REC
);
h_t_REC
->
Fill
(
t_REC
);
h_t_REC_2D
->
Fill
()
//t track resolution
//t track resolution
res
=
(
t_MC
-
t_trk_REC
)
/
t_MC
;
res
=
(
t_MC
-
t_trk_REC
)
/
t_MC
;
...
...
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