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
1de98e7e
Commit
1de98e7e
authored
Apr 7, 2023
by
Tooba Ali
Browse files
Options
Downloads
Patches
Plain Diff
comment out the plots not required
parent
de1c9047
No related branches found
No related tags found
1 merge request
!199
Draft: Use of JUGGLER_N_EVENTS=10000
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/dis/analysis/truth_reconstruction.py
+3
-3
3 additions, 3 deletions
benchmarks/dis/analysis/truth_reconstruction.py
benchmarks/dis/dis.sh
+5
-5
5 additions, 5 deletions
benchmarks/dis/dis.sh
with
8 additions
and
8 deletions
benchmarks/dis/analysis/truth_reconstruction.py
+
3
−
3
View file @
1de98e7e
...
@@ -426,7 +426,7 @@ for i in range(len(MC_list)): #Repeat the following steps for each variable (mom
...
@@ -426,7 +426,7 @@ for i in range(len(MC_list)): #Repeat the following steps for each variable (mom
axs
[
1
].
set_ylabel
(
'
%s_rc
'
%
(
title_list
[
i
]))
axs
[
1
].
set_ylabel
(
'
%s_rc
'
%
(
title_list
[
i
]))
axs
[
1
].
set_title
(
'
%s Correlation
'
%
(
title_list
[
i
]))
axs
[
1
].
set_title
(
'
%s Correlation
'
%
(
title_list
[
i
]))
fig
.
suptitle
(
'
%s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
config
,
Nevents
,
Dconfig
))
fig
.
suptitle
(
'
%s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
config
,
Nevents
,
Dconfig
))
plt
.
savefig
(
os
.
path
.
join
(
r_path
,
'
%s%s_%s.png
'
%
(
title_list_n
[
i
],
args
.
config
.
split
(
'
_epic_
'
)[
1
].
strip
(),
config
)))
#
plt.savefig(os.path.join(r_path, '%s%s_%s.png' % (title_list_n[i],args.config.split('_epic_')[1].strip(),config)))
###################################################################################################
###################################################################################################
...
@@ -477,7 +477,7 @@ if particle in particle_dict.keys():
...
@@ -477,7 +477,7 @@ if particle in particle_dict.keys():
particle_plots
(
boolean_particle
)
particle_plots
(
boolean_particle
)
plt
.
suptitle
(
'
%s in %s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
particle_name
,
config
,
Nevents
,
Dconfig
))
plt
.
suptitle
(
'
%s in %s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
particle_name
,
config
,
Nevents
,
Dconfig
))
plt
.
savefig
(
os
.
path
.
join
(
r_path
,
'
%s_%s.png
'
%
(
particle_name_n
[
particle_name
],
config
)))
#
plt.savefig(os.path.join(r_path, '%s_%s.png' % (particle_name_n[particle_name],config)))
else
:
else
:
for
i
in
[[
boolean_photon
,
'
Photons
'
],[
boolean_electron
,
'
Electrons
'
],[
boolean_pion
,
'
Pions
'
]]:
for
i
in
[[
boolean_photon
,
'
Photons
'
],[
boolean_electron
,
'
Electrons
'
],[
boolean_pion
,
'
Pions
'
]]:
boolean_particle
=
i
[
0
]
boolean_particle
=
i
[
0
]
...
@@ -485,7 +485,7 @@ else:
...
@@ -485,7 +485,7 @@ else:
particle_plots
(
boolean_particle
)
particle_plots
(
boolean_particle
)
plt
.
suptitle
(
'
%s in %s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
particle_name
,
config
,
Nevents
,
Dconfig
))
plt
.
suptitle
(
'
%s in %s %s events
\n
DETECTOR_CONFIG: %s
'
%
(
particle_name
,
config
,
Nevents
,
Dconfig
))
plt
.
savefig
(
os
.
path
.
join
(
r_path
,
'
%s_%s.png
'
%
(
particle_name_n
[
particle_name
],
config
)))
#
plt.savefig(os.path.join(r_path, '%s_%s.png' % (particle_name_n[particle_name],config)))
...
...
This diff is collapsed.
Click to expand it.
benchmarks/dis/dis.sh
+
5
−
5
View file @
1de98e7e
...
@@ -123,11 +123,11 @@ EOF
...
@@ -123,11 +123,11 @@ EOF
# exit 1
# exit 1
# fi
# fi
python benchmarks/dis/analysis/kinematics_correlations.py
--rec_file
${
REC_FILE
}
--config
${
PLOT_TAG
}
_
${
DETECTOR_CONFIG
}
--results_path
${
RESULTS_PATH
}
--nevents
${
JUGGLER_N_EVENTS
}
#
python benchmarks/dis/analysis/kinematics_correlations.py --rec_file ${REC_FILE} --config ${PLOT_TAG}_${DETECTOR_CONFIG} --results_path ${RESULTS_PATH} --nevents ${JUGGLER_N_EVENTS}
if
[[
"
$?
"
-ne
"0"
]]
;
then
#
if [[ "$?" -ne "0" ]] ; then
echo
"ERROR running kinematics_correlations script"
#
echo "ERROR running kinematics_correlations script"
exit
1
#
exit 1
fi
#
fi
python benchmarks/dis/analysis/truth_reconstruction.py
--rec_file
${
REC_FILE
}
--config
${
PLOT_TAG
}
_
${
DETECTOR_CONFIG
}
--results_path
${
RESULTS_PATH
}
--nevents
${
JUGGLER_N_EVENTS
}
python benchmarks/dis/analysis/truth_reconstruction.py
--rec_file
${
REC_FILE
}
--config
${
PLOT_TAG
}
_
${
DETECTOR_CONFIG
}
--results_path
${
RESULTS_PATH
}
--nevents
${
JUGGLER_N_EVENTS
}
if
[[
"
$?
"
-ne
"0"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
...
...
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