Skip to content
Snippets Groups Projects
Commit ae6415c4 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

RawHitAnalysis: prepare for OneToOne relation to SimHit in MCRecoTrackerHitAssociation

parent 86442393
Branches
Tags
1 merge request!327RawHitAnalysis: prepare for OneToOne relation to SimHit in MCRecoTrackerHitAssociation
Pipeline #93436 passed with warnings
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment