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
Merge requests
!43
Resolve "Add detector name to results folder for benchmarks"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Add detector name to results folder for benchmarks"
31-add-detector-name-to-results-folder-for-benchmarks
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Resolve "Add detector name to results folder for benchmarks"
Marshall Scott
requested to merge
31-add-detector-name-to-results-folder-for-benchmarks
into
master
May 26, 2021
Overview
0
Commits
1
Pipelines
0
Changes
3
Closes
#31 (closed)
Edited
May 27, 2021
by
Marshall Scott
0
0
Merge request reports
Compare
master
version 23
7b0995b2
Jun 1, 2021
version 22
4ff8e948
Jun 1, 2021
version 21
11a48f9b
May 27, 2021
version 20
4f8249e1
May 27, 2021
version 19
487bd925
May 27, 2021
version 18
8a123334
May 27, 2021
version 17
f662f889
May 27, 2021
version 16
dba478bc
May 27, 2021
version 15
34ba6633
May 27, 2021
version 14
c8115f68
May 26, 2021
version 13
2eb559bd
May 26, 2021
version 12
fec60778
May 26, 2021
version 11
02701c0c
May 26, 2021
version 10
cb1d288c
May 26, 2021
version 9
ea9a994e
May 26, 2021
version 8
f4e248af
May 26, 2021
version 7
866d0b32
May 26, 2021
version 6
ff2c2578
May 26, 2021
version 5
bf1a3480
May 26, 2021
version 4
a8e5a2a5
May 26, 2021
version 3
6c1814d1
May 26, 2021
version 2
bd31cd5c
May 26, 2021
version 1
4117b032
May 26, 2021
master (base)
and
version 19
latest version
78e69c26
1 commit,
Jun 1, 2021
version 23
7b0995b2
1 commit,
Jun 1, 2021
version 22
4ff8e948
25 commits,
Jun 1, 2021
version 21
11a48f9b
23 commits,
May 27, 2021
version 20
4f8249e1
22 commits,
May 27, 2021
version 19
487bd925
21 commits,
May 27, 2021
version 18
8a123334
20 commits,
May 27, 2021
version 17
f662f889
19 commits,
May 27, 2021
version 16
dba478bc
18 commits,
May 27, 2021
version 15
34ba6633
17 commits,
May 27, 2021
version 14
c8115f68
15 commits,
May 26, 2021
version 13
2eb559bd
14 commits,
May 26, 2021
version 12
fec60778
13 commits,
May 26, 2021
version 11
02701c0c
11 commits,
May 26, 2021
version 10
cb1d288c
10 commits,
May 26, 2021
version 9
ea9a994e
9 commits,
May 26, 2021
version 8
f4e248af
8 commits,
May 26, 2021
version 7
866d0b32
7 commits,
May 26, 2021
version 6
ff2c2578
6 commits,
May 26, 2021
version 5
bf1a3480
5 commits,
May 26, 2021
version 4
a8e5a2a5
4 commits,
May 26, 2021
version 3
6c1814d1
3 commits,
May 26, 2021
version 2
bd31cd5c
2 commits,
May 26, 2021
version 1
4117b032
1 commit,
May 26, 2021
3 files
+
60
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
benchmarks/barrel_ecal/scripts/emcal_barrel_common_functions.h
+
17
−
0
View file @ 487bd925
Edit in single-file editor
Open in Web IDE
Show full file
@@ -3,6 +3,9 @@
// M. Scott 05/2021
//////////////////////////
#include
<cctype>
// Returns particle pdgID and mass in [GeV]
std
::
tuple
<
int
,
double
>
extract_particle_parameters
(
std
::
string
particle_name
)
{
if
(
particle_name
==
"electron"
)
return
std
::
make_tuple
(
11
,
0.51099895e-3
);
if
(
particle_name
==
"photon"
)
return
std
::
make_tuple
(
22
,
0
.
0
);
@@ -15,4 +18,18 @@ std::tuple <int, double> extract_particle_parameters(std::string particle_name)
std
::
cout
<<
"wrong particle name"
<<
std
::
endl
;
abort
();
}
// Returns Environment Variables
std
::
string
getEnvVar
(
std
::
string
const
&
key
){
char
*
val
=
getenv
(
key
.
c_str
()
);
return
val
==
NULL
?
std
::
string
(
""
)
:
std
::
string
(
val
);
}
// Added detetcor name to title
void
addDetectorName
(
std
::
string
name
,
TH1
*
inhist
){
std
::
string
newName
=
inhist
->
GetTitle
();
for
(
auto
&
x
:
name
){
x
=
toupper
(
x
);
}
inhist
->
SetTitle
((
name
+
" "
+
newName
).
c_str
());
}
\ No newline at end of file
Loading