diff --git a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTupleOutputModule.cc b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTupleOutputModule.cc index ea56c81c17d64..25b0c4e9c0768 100644 --- a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTupleOutputModule.cc +++ b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTupleOutputModule.cc @@ -15,19 +15,17 @@ #include #include +#include #include using ROOT::Experimental::RNTupleModel; +using ROOT::Experimental::RNTupleWriteOptions; +using ROOT::Experimental::Detail::RPageSinkFile; #if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) using ROOT::Experimental::RNTupleWriter; -using ROOT::Experimental::Detail::RPageSinkFile; #define MakeRNTupleWriter std::make_unique -#include #else -using ROOT::Experimental::Internal::RPageSinkFile; #define MakeRNTupleWriter ROOT::Experimental::Internal::CreateRNTupleWriter -#include #endif -using ROOT::Experimental::RNTupleWriteOptions; #include "TObjString.h" diff --git a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.cc b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.cc index 86c367bb95898..a98c146cb9a19 100644 --- a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.cc +++ b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.cc @@ -5,19 +5,17 @@ #include #include +#include #include using ROOT::Experimental::RNTupleModel; +using ROOT::Experimental::RNTupleWriteOptions; +using ROOT::Experimental::Detail::RPageSinkFile; #if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) using ROOT::Experimental::RNTupleWriter; -using ROOT::Experimental::Detail::RPageSinkFile; #define MakeRNTupleWriter std::make_unique -#include #else -using ROOT::Experimental::Internal::RPageSinkFile; #define MakeRNTupleWriter ROOT::Experimental::Internal::CreateRNTupleWriter -#include #endif -using ROOT::Experimental::RNTupleWriteOptions; #include "RNTupleFieldPtr.h" #include "SummaryTableOutputFields.h" diff --git a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.h b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.h index 65843adafe94c..d80b0ab59b0f2 100644 --- a/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.h +++ b/PhysicsTools/NanoAOD/plugins/rntuple/NanoAODRNTuples.h @@ -12,13 +12,7 @@ #include "TFile.h" #include -#if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) using ROOT::Experimental::RCollectionNTupleWriter; -#else -#include -#include -using ROOT::Experimental::RNTupleCollectionWriter; -#endif using ROOT::Experimental::RNTupleWriter; #include "EventStringOutputFields.h" @@ -70,11 +64,7 @@ class PSetNTuple { // https://github.com/root-project/root/issues/7861 // RNTupleFieldPtr m_psetId; // RNTupleFieldPtr m_psetBlob; -#if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) std::shared_ptr m_collection; -#else - std::shared_ptr m_collection; -#endif RNTupleFieldPtr m_psetId; RNTupleFieldPtr m_psetBlob; std::unique_ptr m_ntuple; @@ -88,11 +78,7 @@ class MetadataNTuple { private: void createFields(TFile& file); -#if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) std::shared_ptr m_procHist; -#else - std::shared_ptr m_procHist; -#endif RNTupleFieldPtr m_phId; std::unique_ptr m_ntuple; diff --git a/PhysicsTools/NanoAOD/plugins/rntuple/TableOutputFields.h b/PhysicsTools/NanoAOD/plugins/rntuple/TableOutputFields.h index 457e00991ff2d..5e907dce6b5ed 100644 --- a/PhysicsTools/NanoAOD/plugins/rntuple/TableOutputFields.h +++ b/PhysicsTools/NanoAOD/plugins/rntuple/TableOutputFields.h @@ -11,12 +11,7 @@ #include #include -#if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) using ROOT::Experimental::RCollectionNTupleWriter; -#else -#include -using ROOT::Experimental::RNTupleCollectionWriter; -#endif using ROOT::Experimental::RNTupleModel; using ROOT::Experimental::RNTupleWriter; @@ -115,11 +110,7 @@ class TableCollection { private: std::string m_collectionName; -#if ROOT_VERSION_CODE < ROOT_VERSION(6, 31, 0) std::shared_ptr m_collection; -#else - std::shared_ptr m_collection; -#endif TableOutputFields m_main; std::vector m_extensions; };