Skip to content

Commit

Permalink
Transparently switch to optional parameter values
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 16, 2024
1 parent efbd91e commit 24fa7e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/CLUENtuplizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// podio specific includes
#include "DDSegmentation/BitFieldCoder.h"

#include "podio/podioVersion.h"

using namespace dd4hep ;
using namespace DDSegmentation ;

Expand Down Expand Up @@ -114,7 +116,11 @@ StatusCode CLUENtuplizer::execute() {
cluster_coll = cluster_handle.get();

// Get collection metadata cellID which is valid for both EB, EE and Clusters
const auto cellIDstr = cellIDHandle.get();
#if PODIO_BUILD_VERSION > PODIO_VERSION(0, 99, 0)
const auto cellIDstr = cellIDHandle.get().value();
#else
const auto& cellIDstr = cellIDHandle.get();
#endif
const BitFieldCoder bf(cellIDstr);
cleanTrees();

Expand Down
8 changes: 7 additions & 1 deletion src/ClueGaudiAlgorithmWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
// podio specific includes
#include "DDSegmentation/BitFieldCoder.h"

#include "podio/podioVersion.h"

using namespace dd4hep ;
using namespace DDSegmentation ;
using namespace std;
Expand Down Expand Up @@ -342,7 +344,11 @@ StatusCode ClueGaudiAlgorithmWrapper::execute() {
EE_calo_coll = EE_calo_handle.get();

// Get collection metadata cellID which is valid for both EB and EE
const auto cellIDstr = cellIDHandle.get();
#if PODIO_BUILD_VERSION > PODIO_VERSION(0, 99, 0)
const auto cellIDstr = cellIDHandle.get().value();
#else
const auto& cellIDstr = cellIDHandle.get();
#endif
const BitFieldCoder bf(cellIDstr);

// Output CLUE clusters
Expand Down

0 comments on commit 24fa7e4

Please sign in to comment.