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
ae6415c4
Commit
ae6415c4
authored
1 year ago
by
Dmitry Kalinkin
Browse files
Options
Downloads
Patches
Plain Diff
RawHitAnalysis: prepare for OneToOne relation to SimHit in MCRecoTrackerHitAssociation
parent
86442393
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!327
RawHitAnalysis: prepare for OneToOne relation to SimHit in MCRecoTrackerHitAssociation
Pipeline
#93436
passed with warnings
11 months ago
Stage: status-pending
Stage: config
Stage: initialize
Stage: compile
Stage: run
Stage: benchmarks1
Stage: benchmarks2
Stage: process
Stage: collect
Stage: finish
Stage: status-report
Changes
1
Pipelines
841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/rich/src/RawHitAnalysis.cc
+13
-5
13 additions, 5 deletions
benchmarks/rich/src/RawHitAnalysis.cc
with
13 additions
and
5 deletions
benchmarks/rich/src/RawHitAnalysis.cc
+
13
−
5
View file @
ae6415c4
...
...
@@ -2,6 +2,7 @@
// Subject to the terms in the LICENSE file found in the top-level directory.
#include
"RawHitAnalysis.h"
#include
<edm4eic/EDM4eicVersion.h>
namespace
benchmarks
{
...
...
@@ -65,11 +66,18 @@ namespace benchmarks {
// loop over hits with associations (no noise)
for
(
const
auto
&
assoc
:
assocs
)
{
for
(
const
auto
&
hit
:
assoc
.
getSimHits
())
{
auto
wavelength
=
Tools
::
GetPhotonWavelength
(
hit
,
m_log
);
if
(
wavelength
>=
0
)
m_phot_spectrum
->
Fill
(
wavelength
);
}
#if EDM4EIC_VERSION_MAJOR >= 6
auto
hit
=
assoc
.
getSimHit
();
#else
for
(
const
auto
&
hit
:
assoc
.
getSimHits
())
{
#endif
auto
wavelength
=
Tools
::
GetPhotonWavelength
(
hit
,
m_log
);
if
(
wavelength
>=
0
)
m_phot_spectrum
->
Fill
(
wavelength
);
#if EDM4EIC_VERSION_MAJOR >= 6
#else
}
#endif
}
}
...
...
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