From 319d2db4761903bb661d6aa2172b0c09f38fcd1a Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Fri, 20 Sep 2024 22:34:26 +0200 Subject: [PATCH] Change version to 39 --- .../src/components/ExampleFunctionalTransformerHist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/k4FWCoreTest/src/components/ExampleFunctionalTransformerHist.cpp b/test/k4FWCoreTest/src/components/ExampleFunctionalTransformerHist.cpp index 68fe7044..5af1d7fc 100644 --- a/test/k4FWCoreTest/src/components/ExampleFunctionalTransformerHist.cpp +++ b/test/k4FWCoreTest/src/components/ExampleFunctionalTransformerHist.cpp @@ -27,7 +27,7 @@ #include "GAUDI_VERSION.h" -#if GAUDI_MAJOR_VERSION < 40 +#if GAUDI_MAJOR_VERSION < 39 namespace Gaudi::Accumulators { using StaticRootHistogram = Gaudi::Accumulators::RootHistogram; } @@ -36,7 +36,7 @@ namespace Gaudi::Accumulators { struct ExampleFunctionalTransformerHist final : k4FWCore::Transformer { StatusCode initialize() override { -#if GAUDI_MAJOR_VERSION >= 40 +#if GAUDI_MAJOR_VERSION >= 39 m_customHistogram.createHistogram(*this); #endif return StatusCode::SUCCESS; @@ -51,7 +51,7 @@ struct ExampleFunctionalTransformerHist final edm4hep::MCParticleCollection operator()(const edm4hep::MCParticleCollection& input) const override { // Fill the histogram with the energy of one particle ++m_histogram[input[0 + !m_firstParticle.value()].getEnergy()]; -#if GAUDI_MAJOR_VERSION >= 40 +#if GAUDI_MAJOR_VERSION >= 39 ++m_customHistogram[input[0 + !m_firstParticle.value()].getEnergy()]; #endif // Return an empty collection since we don't care about the collection @@ -64,7 +64,7 @@ struct ExampleFunctionalTransformerHist final this, "Histogram Name", "Histogram Title", {100, 0, 10.}}; public: -#if GAUDI_MAJOR_VERSION >= 40 +#if GAUDI_MAJOR_VERSION >= 39 // This is a histogram with title, name and bins that can be set from python void registerCallBack(Gaudi::StateMachine::Transition, std::function) {} mutable Gaudi::Accumulators::RootHistogram<1> m_customHistogram{this, "CustomHistogram"};