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
3
Merged
Marshall Scott
requested to merge
31-add-detector-name-to-results-folder-for-benchmarks
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
Closes
#31 (closed)
Edited
4 years ago
by
Marshall Scott
0
0
Merge request reports
Viewing commit
487bd925
Show latest version
3 files
+
49
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
487bd925
New function
· 487bd925
Marshall Scott
authored
4 years ago
benchmarks/barrel_ecal/scripts/emcal_barrel_common_functions.h
+
9
−
5
Options
@@ -3,6 +3,8 @@
// 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
);
@@ -23,9 +25,11 @@ std::string getEnvVar( std::string const & key ){
char
*
val
=
getenv
(
key
.
c_str
()
);
return
val
==
NULL
?
std
::
string
(
""
)
:
std
::
string
(
val
);
}
// Combines Detector name and title
std
::
string
setTitle
(
std
::
string
d_name
,
std
::
string
title
){
std
::
string
str
=
d_name
+
" "
+
title
;
return
str
;
// 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