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
No related branches found
No related tags found
1 merge request!327RawHitAnalysis: prepare for OneToOne relation to SimHit in MCRecoTrackerHitAssociation
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Subject to the terms in the LICENSE file found in the top-level directory. // Subject to the terms in the LICENSE file found in the top-level directory.
#include "RawHitAnalysis.h" #include "RawHitAnalysis.h"
#include <edm4eic/EDM4eicVersion.h>
namespace benchmarks { namespace benchmarks {
...@@ -65,11 +66,18 @@ namespace benchmarks { ...@@ -65,11 +66,18 @@ namespace benchmarks {
// loop over hits with associations (no noise) // loop over hits with associations (no noise)
for(const auto& assoc : assocs) { for(const auto& assoc : assocs) {
for(const auto& hit : assoc.getSimHits()) { #if EDM4EIC_VERSION_MAJOR >= 6
auto wavelength = Tools::GetPhotonWavelength(hit, m_log); auto hit = assoc.getSimHit();
if(wavelength>=0) #else
m_phot_spectrum->Fill(wavelength); 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