Skip to content

Commit

Permalink
Run again
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 1, 2024
1 parent d4edbf9 commit e537456
Show file tree
Hide file tree
Showing 28 changed files with 100 additions and 38 deletions.
9 changes: 5 additions & 4 deletions include/podio/RNTupleReader.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
#ifndef PODIO_RNTUPLEREADER_H
#define PODIO_RNTUPLEREADER_H

#include "podio/GenericParameters.h"
#include "podio/ROOTFrameData.h"
#include "podio/SchemaEvolution.h"
#include "podio/podioVersion.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"

#include <ROOT/RVersion.hxx>

#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>

#include <ROOT/RNTuple.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <RVersion.h>
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
#include <ROOT/RNTupleReader.hxx>
#endif

namespace podio {
class CollectionIDTable;

/**
This class has the function to read available data from disk
Expand Down
19 changes: 14 additions & 5 deletions include/podio/RNTupleWriter.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
#ifndef PODIO_RNTUPLEWRITER_H
#define PODIO_RNTUPLEWRITER_H

#include "podio/Frame.h"
#include "podio/GenericParameters.h"
#include "TFile.h"
#include "podio/SchemaEvolution.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "podio/utilities/RootHelpers.h"

#include "TFile.h"
#include <ROOT/RNTuple.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <RVersion.h>
#include <ROOT/RVersion.hxx>

#include <stdint.h>

namespace ROOT {
namespace Experimental {
class REntry;
} // namespace Experimental
} // namespace ROOT
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
#include <ROOT/RNTupleWriter.hxx>
#endif

#include <memory>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>

namespace podio {
class Frame;
class GenericParameters;

/// The RNTupleWriter writes podio files into ROOT files using the new RNTuple
/// format.
Expand Down
1 change: 1 addition & 0 deletions include/podio/ROOTFrameData.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>

namespace podio {

Expand Down
3 changes: 1 addition & 2 deletions include/podio/ROOTLegacyReader.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef PODIO_ROOTLEGACYREADER_H
#define PODIO_ROOTLEGACYREADER_H

#include "TChain.h"
#include "podio/ROOTFrameData.h"
#include "podio/podioVersion.h"
#include "podio/utilities/RootHelpers.h"

#include "TChain.h"

#include <memory>
#include <string>
#include <tuple>
Expand Down
12 changes: 4 additions & 8 deletions include/podio/ROOTReader.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
#ifndef PODIO_ROOTREADER_H
#define PODIO_ROOTREADER_H

#include "TChain.h"
#include "podio/ROOTFrameData.h"
#include "podio/SchemaEvolution.h"
#include "podio/podioVersion.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "podio/utilities/RootHelpers.h"

#include "TChain.h"

#include <memory>
#include <stddef.h>
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>

// forward declarations
class TClass;
class TFile;
class TTree;

namespace podio {

namespace detail {
Expand All @@ -30,7 +27,6 @@ namespace detail {

} // namespace detail

class CollectionBase;
class CollectionIDTable;
class GenericParameters;
struct CollectionReadBuffers;
Expand Down
4 changes: 1 addition & 3 deletions include/podio/ROOTWriter.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef PODIO_ROOTWRITER_H
#define PODIO_ROOTWRITER_H

#include "TFile.h"
#include "podio/CollectionIDTable.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "podio/utilities/RootHelpers.h"

#include "TFile.h"

#include <memory>
#include <string>
#include <tuple>
Expand All @@ -18,7 +17,6 @@ class TTree;

namespace podio {
class Frame;
class CollectionBase;
class GenericParameters;

/// The ROOTWriter writes podio files into ROOT files using TTrees.
Expand Down
8 changes: 8 additions & 0 deletions include/podio/Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
#define PODIO_READER_H

#include "podio/Frame.h"
#include "podio/FrameCategories.h"
#include "podio/podioVersion.h"

#include <memory>
#include <stddef.h>
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>

namespace podio {

class Reader {
Expand Down
1 change: 0 additions & 1 deletion include/podio/UserDataCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>

namespace podio {
Expand Down
5 changes: 5 additions & 0 deletions include/podio/Writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#define PODIO_WRITER_H

#include "podio/Frame.h"
#include "podio/FrameCategories.h"

#include <memory>
#include <string>
#include <vector>

namespace podio {

Expand Down
2 changes: 0 additions & 2 deletions include/podio/utilities/DatamodelRegistryIOHelpers.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef PODIO_UTILITIES_DATAMODELREGISTRYIOHELPERS_H
#define PODIO_UTILITIES_DATAMODELREGISTRYIOHELPERS_H

#include "podio/CollectionBase.h"

#include <cstddef>
#include <set>
#include <string>
Expand Down
12 changes: 9 additions & 3 deletions include/podio/utilities/RootHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@

#include "podio/GenericParameters.h"

#include "ROOT/RVec.hxx"
#include "TBranch.h"

#include <stdint.h>
#include <string>
#include <tuple>
#include <vector>

class TBranch;
namespace ROOT {
namespace VecOps {
template <typename T>
class RVec;
} // namespace VecOps
} // namespace ROOT

namespace podio {
class CollectionBase;

Expand Down
1 change: 1 addition & 0 deletions src/DatamodelRegistryIOHelpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "podio/DatamodelRegistry.h"

#include <algorithm>
#include <iostream>
#include <iterator>

namespace podio {
Expand Down
1 change: 1 addition & 0 deletions src/RNTupleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <format>
#include <iostream>
#include <memory>
#include <numeric>
Expand Down
2 changes: 2 additions & 0 deletions src/RNTupleWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
#include <ROOT/RError.hxx>
#include <ROOT/RField.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RNTupleWriteOptions.hxx>

#include <Compression.h>
#include <stdexcept>
#include <utility>

namespace podio {
class GenericParameters;
Expand Down
3 changes: 3 additions & 0 deletions src/ROOTFrameData.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "podio/ROOTFrameData.h"

#include <functional>
#include <utility>

namespace podio {

ROOTFrameData::ROOTFrameData(BufferMap&& buffers, CollIDPtr&& idTable, podio::GenericParameters&& params) :
Expand Down
2 changes: 2 additions & 0 deletions src/ROOTLegacyReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "rootUtils.h"

#include <TBranch.h>
#include <compare>
#include <cstddef>
#include <functional>
#include <iostream>
Expand All @@ -26,6 +27,7 @@
#include "TFile.h"
#include "TTree.h"
#include "podio/podioVersion.h"
#include "podio/utilities/RootHelpers.h"

namespace podio {

Expand Down
19 changes: 10 additions & 9 deletions src/ROOTReader.cc
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#include "podio/ROOTReader.h"

#include <TBranch.h>
#include <TObjArray.h>
#include <TObject.h>
#include <algorithm>
#include <functional>
#include <optional>
#include <stdexcept>
#include <unordered_map>

#include "podio/CollectionBase.h"
#include "podio/CollectionBufferFactory.h"
#include "podio/CollectionBuffers.h"
Expand All @@ -17,6 +8,16 @@
#include "podio/GenericParameters.h"
#include "podio/utilities/RootHelpers.h"
#include "rootUtils.h"

#include <TBranch.h>
#include <TObjArray.h>
#include <TObject.h>
#include <algorithm>
#include <compare>
#include <functional>
#include <optional>
#include <stdexcept>
#include <unordered_map>
// ROOT specific includes
#include "TChain.h"
#include "TClass.h"
Expand Down
1 change: 1 addition & 0 deletions src/ROOTWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <cstddef>
#include <optional>
#include <stdexcept>
#include <utility>

namespace podio {

Expand Down
5 changes: 5 additions & 0 deletions src/Reader.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "podio/Reader.h"

#include "podio/ROOTReader.h"

#include <TCollection.h>
#include <TList.h>
#include <TObject.h>
#if PODIO_ENABLE_RNTUPLE
#include "podio/RNTupleReader.h"
#endif
Expand All @@ -12,6 +16,7 @@
#include "TKey.h"

#include <memory>
#include <utility>

namespace podio {

Expand Down
4 changes: 4 additions & 0 deletions src/RootHelpers.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "podio/utilities/RootHelpers.h"

#include <ROOT/RVec.hxx>

#include <utility>

namespace podio::root_utils {
GenericParameters
loadParamsFrom(ROOT::VecOps::RVec<std::string> intKeys, ROOT::VecOps::RVec<std::vector<int>> intValues,
Expand Down
4 changes: 4 additions & 0 deletions src/Writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
#include "podio/SIOWriter.h"
#endif

#include <algorithm>
#include <cctype>
#include <memory>
#include <stdexcept>
#include <utility>

namespace podio {

Expand Down
2 changes: 1 addition & 1 deletion src/rootUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include "TBranch.h"
#include "TTree.h"
#include "podio/utilities/RootHelpers.h"
#include "podio/CollectionIDTable.h"
#include "podio/utilities/RootHelpers.h"

#include <algorithm>
#include <cctype>
Expand Down
3 changes: 3 additions & 0 deletions tests/root_io/read_interface_rntuple.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "podio/Reader.h"
#include "read_interface.h"

#include <memory>

int main(int, char**) {
auto reader = podio::makeReader("example_from_rntuple_interface.root");
if (read_frames(reader)) {
Expand Down
3 changes: 3 additions & 0 deletions tests/root_io/read_interface_root.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "podio/Reader.h"
#include "read_interface.h"

#include <memory>

int main(int, char**) {

auto reader = podio::makeReader("example_frame_interface.root");
Expand Down
3 changes: 3 additions & 0 deletions tests/root_io/write_interface_rntuple.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "podio/Writer.h"
#include "write_interface.h"

#include <memory>

int main(int, char**) {
auto writer = podio::makeWriter("example_from_rntuple_interface.root", "rntuple");
write_frames(writer);
Expand Down
Loading

0 comments on commit e537456

Please sign in to comment.