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
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
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
4
Merged
Marshall Scott
requested to merge
31-add-detector-name-to-results-folder-for-benchmarks
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
4
Expand
Closes
#31 (closed)
Edited
3 years ago
by
Marshall Scott
0
0
Merge request reports
Compare
master
version 23
7b0995b2
3 years ago
version 22
4ff8e948
3 years ago
version 21
11a48f9b
3 years ago
version 20
4f8249e1
3 years ago
version 19
487bd925
3 years ago
version 18
8a123334
3 years ago
version 17
f662f889
3 years ago
version 16
dba478bc
3 years ago
version 15
34ba6633
3 years ago
version 14
c8115f68
3 years ago
version 13
2eb559bd
3 years ago
version 12
fec60778
3 years ago
version 11
02701c0c
3 years ago
version 10
cb1d288c
3 years ago
version 9
ea9a994e
3 years ago
version 8
f4e248af
3 years ago
version 7
866d0b32
3 years ago
version 6
ff2c2578
3 years ago
version 5
bf1a3480
3 years ago
version 4
a8e5a2a5
3 years ago
version 3
6c1814d1
3 years ago
version 2
bd31cd5c
3 years ago
version 1
4117b032
3 years ago
master (base)
and
latest version
latest version
78e69c26
1 commit,
3 years ago
version 23
7b0995b2
1 commit,
3 years ago
version 22
4ff8e948
25 commits,
3 years ago
version 21
11a48f9b
23 commits,
3 years ago
version 20
4f8249e1
22 commits,
3 years ago
version 19
487bd925
21 commits,
3 years ago
version 18
8a123334
20 commits,
3 years ago
version 17
f662f889
19 commits,
3 years ago
version 16
dba478bc
18 commits,
3 years ago
version 15
34ba6633
17 commits,
3 years ago
version 14
c8115f68
15 commits,
3 years ago
version 13
2eb559bd
14 commits,
3 years ago
version 12
fec60778
13 commits,
3 years ago
version 11
02701c0c
11 commits,
3 years ago
version 10
cb1d288c
10 commits,
3 years ago
version 9
ea9a994e
9 commits,
3 years ago
version 8
f4e248af
8 commits,
3 years ago
version 7
866d0b32
7 commits,
3 years ago
version 6
ff2c2578
6 commits,
3 years ago
version 5
bf1a3480
5 commits,
3 years ago
version 4
a8e5a2a5
4 commits,
3 years ago
version 3
6c1814d1
3 commits,
3 years ago
version 2
bd31cd5c
2 commits,
3 years ago
version 1
4117b032
1 commit,
3 years ago
4 files
+
75
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
benchmarks/barrel_ecal/scripts/emcal_barrel_common_functions.h
+
18
−
0
Options
@@ -3,6 +3,10 @@
// M. Scott 05/2021
//////////////////////////
#include
<cctype>
#include
"TH1.h"
// 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 +19,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