Skip to content

Commit

Permalink
Make tests work by hiding forward declaration from CLING
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 11, 2024
1 parent 14042f4 commit 771d995
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class RNTupleWriter;
#endif

namespace podio {
class ROOTReader;
}

namespace podio {
#if !defined(__CLING__)
class ROOTReader;
#endif

/// The types which are supported in the GenericParameters
using SupportedGenericDataTypes = std::tuple<int, float, std::string, double>;
Expand Down Expand Up @@ -133,12 +133,15 @@ class GenericParameters {
friend void readGenericParameters(sio::read_device& device, GenericParameters& parameters, sio::version_type version);
#endif

friend ROOTReader;
#if PODIO_ENABLE_RNTUPLE
friend RNTupleReader;
friend RNTupleWriter;
#endif

#if !defined(__CLING__)
friend ROOTReader;
#endif

/// Get a reference to the internal map for a given type
template <typename T>
const MapType<detail::GetVectorType<T>>& getMap() const {
Expand Down
2 changes: 2 additions & 0 deletions src/ROOTReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ std::tuple<std::vector<root_utils::CollectionBranches>, std::vector<std::pair<st
createCollectionBranchesIndexBased(TChain* chain, const podio::CollectionIDTable& idTable,
const std::vector<root_utils::CollectionWriteInfoT>& collInfo);

/// Helper struct to get the negative offsets from the end of the branches
/// vector for the different types of generic parameters.
template <typename T>
struct TypeToBranchIndexOffset;

Expand Down

0 comments on commit 771d995

Please sign in to comment.