Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_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
reconstruction_benchmarks
Commits
fe5d0a08
Commit
fe5d0a08
authored
2 weeks ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: forward support podio-v1.2 ROOTFrameReader removal
parent
dfd5f87b
Branches
master
No related tags found
1 merge request
!340
feat: forward support podio-v1.2 ROOTFrameReader removal
Pipeline
#118658
passed with warnings
8 hours ago
Stage: status-pending
Stage: config
Stage: compile
Stage: run
Stage: benchmarks1
Stage: benchmarks2
Stage: process
Stage: collect
Stage: finish
Stage: status-report
Changes
2
Pipelines
370
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/rich/include/Tools.h
+5
-0
5 additions, 0 deletions
benchmarks/rich/include/Tools.h
benchmarks/rich/src/benchmark.cc
+9
-0
9 additions, 0 deletions
benchmarks/rich/src/benchmark.cc
with
14 additions
and
0 deletions
benchmarks/rich/include/Tools.h
+
5
−
0
View file @
fe5d0a08
...
...
@@ -17,6 +17,7 @@
#include
<Evaluator/DD4hepUnits.h>
// data model
#include
<edm4hep/EDM4hepVersion.h>
#include
<edm4hep/SimTrackerHitCollection.h>
#include
<edm4hep/utils/kinematics.h>
...
...
@@ -67,7 +68,11 @@ namespace benchmarks {
// -------------------------------------------------------------------------------------
// get photon wavelength
static
double
GetPhotonWavelength
(
const
edm4hep
::
SimTrackerHit
&
hit
,
std
::
shared_ptr
<
spdlog
::
logger
>
log
)
{
#if EDM4HEP_BUILD_VERSION >= EDM4HEP_VERSION(0, 99, 0)
auto
phot
=
hit
.
getParticle
();
#else
auto
phot
=
hit
.
getMCParticle
();
#endif
if
(
!
phot
.
isAvailable
())
{
log
->
error
(
"no MCParticle in hit"
);
return
-
1.0
;
...
...
This diff is collapsed.
Click to expand it.
benchmarks/rich/src/benchmark.cc
+
9
−
0
View file @
fe5d0a08
...
...
@@ -8,7 +8,12 @@
#include
<TFile.h>
#include
<podio/podioVersion.h>
#if podio_VERSION >= PODIO_VERSION(0, 99, 0)
#include
<podio/ROOTReader.h>
#else
#include
<podio/ROOTFrameReader.h>
#endif
#include
<podio/Frame.h>
#include
"SimHitAnalysis.h"
...
...
@@ -264,7 +269,11 @@ int main(int argc, char** argv) {
// -------------------------------------------------------------
// open the input files
#if podio_VERSION >= PODIO_VERSION(0, 99, 0)
podio
::
ROOTReader
podioReader
;
#else
podio
::
ROOTFrameReader
podioReader
;
#endif
m_log
->
warn
(
"podio::ROOTFrameReader cannot yet support multiple files; reading only the first"
);
// podioReader.openFiles(rec_files);
podioReader
.
openFile
(
rec_files
.
front
());
...
...
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