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
3d6fbb0a
Commit
3d6fbb0a
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Analysis script
parent
d6bb80fb
No related branches found
No related tags found
1 merge request
!106
Resolve "Include synchrotron radiation benchmark"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/synchrotron/analysis/synchrotron_tests.cxx
+30
-0
30 additions, 0 deletions
benchmarks/synchrotron/analysis/synchrotron_tests.cxx
benchmarks/synchrotron/synchrotron.sh
+1
-1
1 addition, 1 deletion
benchmarks/synchrotron/synchrotron.sh
with
31 additions
and
1 deletion
benchmarks/synchrotron/analysis/synchrotron_tests.cxx
0 → 100644
+
30
−
0
View file @
3d6fbb0a
#include
<cmath>
#include
<iostream>
#include
<string>
#include
<vector>
#include
"ROOT/RDataFrame.hxx"
#include
"Math/Vector4D.h"
#include
"TCanvas.h"
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
R__LOAD_LIBRARY
(
libfmt
.
so
)
#include
"fmt/core.h"
#include
"fmt/color.h"
R__LOAD_LIBRARY
(
libeicd
.
so
)
R__LOAD_LIBRARY
(
libDD4pod
.
so
)
#include
"eicd/ReconstructedParticleCollection.h"
void
synchrotron_tests
(
const
char
*
fname
=
"rec.root"
){
fmt
::
print
(
fmt
::
emphasis
::
bold
|
fg
(
fmt
::
color
::
forest_green
),
"Running synchrotron analysis...
\n
"
);
// Run this in multi-threaded mode if desired
ROOT
::
EnableImplicitMT
();
ROOT
::
RDataFrame
df
(
"events"
,
fname
);
}
This diff is collapsed.
Click to expand it.
benchmarks/synchrotron/synchrotron.sh
+
1
−
1
View file @
3d6fbb0a
...
...
@@ -146,7 +146,7 @@ if [[ -n "${DO_ANA}" || -n "${DO_ALL}" ]] ; then
mkdir
-p
results/synchrotron
# here you can add as many scripts as you want.
root
-b
-q
"benchmarks/synchrotron/analysis/synchrotron.cxx+(
\"
${
JUGGLER_REC_FILE
}
\"
)"
root
-b
-q
"benchmarks/synchrotron/analysis/synchrotron
_tests
.cxx+(
\"
${
JUGGLER_REC_FILE
/.root/.raw.root
}
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running root script"
exit
1
...
...
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