diff --git a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp index 3fd3619281a510823dedbcb666a627964b3ceeab..ef0235b863d73f2a5ef63a3b4860e98e1a25a2b5 100644 --- a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp +++ b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp @@ -127,7 +127,7 @@ namespace dd4hep { printout(DEBUG, "Geant4OutputEDM4hep", "Saving event parameter: %s", p.first.c_str()); frame.putParameter(p.first, p.second); } -#if podio_VERSION_MAJOR > 0 || podio_VERSION_MINOR > 16 || podio_VERSION_PATCH > 2 +#if PODIO_BUILD_VERSION > PODIO_VERSION(0, 16, 2) // This functionality is only present in podio > 0.16.2 for (auto const& p: this->dblParameters()) { printout(DEBUG, "Geant4OutputEDM4hep", "Saving event parameter: %s", p.first.c_str()); @@ -149,7 +149,7 @@ namespace dd4hep { printout(DEBUG, "Geant4OutputEDM4hep", "Saving run parameter: %s", p.first.c_str()); frame.putParameter(p.first, p.second); } -#if podio_VERSION_MAJOR > 0 || podio_VERSION_MINOR > 16 || podio_VERSION_PATCH > 2 +#if PODIO_BUILD_VERSION > PODIO_VERSION(0, 16, 2) // This functionality is only present in podio > 0.16.2 for (auto const& p: this->dblParameters()) { printout(DEBUG, "Geant4OutputEDM4hep", "Saving run parameter: %s", p.first.c_str()); @@ -442,7 +442,7 @@ void Geant4Output2EDM4hep::saveEvent(OutputContext<G4Event>& ctxt) { runNumber = parameters->runNumber() + runNumberOffset; eventNumber = parameters->eventNumber() + eventNumberOffset; parameters->extractParameters(m_frame); -#if podio_VERSION_MAJOR > 0 || podio_VERSION_MINOR > 16 || podio_VERSION_PATCH > 2 +#if PODIO_BUILD_VERSION > PODIO_VERSION(0, 16, 2) // This functionality is only present in podio > 0.16.2 eventWeight = m_frame.getParameter<double>("EventWeights"); #endif