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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
de8b2f76
Unverified
Commit
de8b2f76
authored
6 months ago
by
Dmitry Kalinkin
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
diffractive_vm: use clusters as-is (
#28
)
parent
be9af02a
No related branches found
No related tags found
No related merge requests found
Pipeline
#105629
passed
5 months ago
Stage: status-pending
Stage: config
Stage: compile
Stage: simulate
Stage: collect
Stage: finish
Stage: status-report
Changes
2
Pipelines
405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/diffractive_vm/Snakefile
+1
-2
1 addition, 2 deletions
benchmarks/diffractive_vm/Snakefile
benchmarks/diffractive_vm/analysis/diffractive_vm.cxx
+3
-36
3 additions, 36 deletions
benchmarks/diffractive_vm/analysis/diffractive_vm.cxx
with
4 additions
and
38 deletions
benchmarks/diffractive_vm/Snakefile
+
1
−
2
View file @
de8b2f76
...
@@ -138,9 +138,8 @@ root -l -b -q '{input.script}+("{input.config}")'
...
@@ -138,9 +138,8 @@ root -l -b -q '{input.script}+("{input.config}")'
rule diffractive_vm_run_over_campaigns:
rule diffractive_vm_run_over_campaigns:
input:
input:
"results/epic_arches/diffractive_vm/campaign_22.11.3_sartre_phi_combined_9/plots_benchmark-phi-dsigmadt.pdf",
"results/epic_craterlake/diffractive_vm/campaign_23.12.0_sartre_phi_combined_9/plots_benchmark-phi-dsigmadt.pdf",
"results/epic_craterlake/diffractive_vm/campaign_24.03.1_sartre_phi_combined_9/plots_benchmark-phi-dsigmadt.pdf",
"results/epic_craterlake/diffractive_vm/campaign_24.03.1_sartre_phi_combined_9/plots_benchmark-phi-dsigmadt.pdf",
"results/epic_craterlake/diffractive_vm/campaign_24.08.1_sartre_phi_combined_9/plots_benchmark-phi-dsigmadt.pdf",
message:
message:
"See output in {input[0]}"
"See output in {input[0]}"
...
...
This diff is collapsed.
Click to expand it.
benchmarks/diffractive_vm/analysis/diffractive_vm.cxx
+
3
−
36
View file @
de8b2f76
...
@@ -248,43 +248,10 @@ int diffractive_vm(const std::string& config_name)
...
@@ -248,43 +248,10 @@ int diffractive_vm(const std::string& config_name)
ypos
=
em_y_array
[
iclus
];
ypos
=
em_y_array
[
iclus
];
}
}
}
}
// leading hit energy
double
maxHitEnergy
=
0.01
;
// threshold 10 MeV
double
xhitpos
=
-
999.
;
double
yhitpos
=
-
999.
;
int
hit_index
=
-
1
;
for
(
int
ihit
=
0
;
ihit
<
emhits_energy_array
.
GetSize
();
ihit
++
)
{
if
(
emhits_energy_array
[
ihit
]
>
maxHitEnergy
)
{
maxHitEnergy
=
emhits_energy_array
[
ihit
];
xhitpos
=
emhits_x_array
[
ihit
];
yhitpos
=
emhits_y_array
[
ihit
];
hit_index
=
ihit
;
}
}
// sum over all 3x3 towers around the leading tower
double
xClus
=
xhitpos
*
maxHitEnergy
;
double
yClus
=
yhitpos
*
maxHitEnergy
;
for
(
int
ihit
=
0
;
ihit
<
emhits_energy_array
.
GetSize
();
ihit
++
)
{
double
hitenergy
=
emhits_energy_array
[
ihit
];
double
x
=
emhits_x_array
[
ihit
];
double
y
=
emhits_y_array
[
ihit
];
double
d
=
sqrt
((
x
-
xhitpos
)
*
(
x
-
xhitpos
)
+
(
y
-
yhitpos
)
*
(
y
-
yhitpos
));
if
(
d
<
70.
&&
ihit
!=
hit_index
&&
hitenergy
>
0.01
)
{
maxHitEnergy
+=
hitenergy
;
// clustering around leading tower 3 crystal = 60mm.
xClus
+=
x
*
hitenergy
;
yClus
+=
y
*
hitenergy
;
}
}
h_ClusOverHit_REC
->
Fill
(
maxEnergy
/
maxHitEnergy
);
double
clusEnergy
=
maxEnergy
;
// weighted average cluster position.
double
xClus
=
xpos
;
xClus
=
xClus
/
maxHitEnergy
;
double
yClus
=
ypos
;
yClus
=
yClus
/
maxHitEnergy
;
double
radius
=
sqrt
(
xClus
*
xClus
+
yClus
*
yClus
);
if
(
radius
>
550.
)
continue
;
// geometric acceptance cut
// 4.4% energy calibration.
double
clusEnergy
=
1.044
*
maxHitEnergy
;
h_energy_REC
->
Fill
(
clusEnergy
);
h_energy_REC
->
Fill
(
clusEnergy
);
// ratio of reco / truth Energy
// ratio of reco / truth Energy
...
...
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