From 8466b1b434b98cba6aec475e55646a684f4d7e73 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 6 Feb 2024 18:18:40 +0100 Subject: [PATCH] Change ROOTFrame{Writer,Reader} to ROOT{Writer,Reader} --- DDDigi/io/DigiEdm4hepInput.cpp | 4 ++-- DDDigi/io/DigiEdm4hepOutput.cpp | 6 +++--- DDG4/edm4hep/Geant4Output2EDM4hep.cpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DDDigi/io/DigiEdm4hepInput.cpp b/DDDigi/io/DigiEdm4hepInput.cpp index 848896081..a461829bb 100644 --- a/DDDigi/io/DigiEdm4hepInput.cpp +++ b/DDDigi/io/DigiEdm4hepInput.cpp @@ -17,7 +17,7 @@ // podio/edm4hep include files #include -#include +#include #include #include @@ -47,7 +47,7 @@ namespace dd4hep { const podio::CollectionBase* get(const std::string& nam) const { return frame.get(nam); } }; - using reader_t = podio::ROOTFrameReader; + using reader_t = podio::ROOTReader; using frame_t = edm4hep_read_frame_t; /// EDM4HEP Digi input reader: Collection descriptor definition diff --git a/DDDigi/io/DigiEdm4hepOutput.cpp b/DDDigi/io/DigiEdm4hepOutput.cpp index 3a80639d8..d0d463cfb 100644 --- a/DDDigi/io/DigiEdm4hepOutput.cpp +++ b/DDDigi/io/DigiEdm4hepOutput.cpp @@ -21,7 +21,7 @@ /// edm4hep include files #include -#include +#include #include #include #include @@ -50,7 +50,7 @@ namespace dd4hep { using headercollection_t = std::pair >; DigiEdm4hepOutput* m_parent { nullptr }; /// Reference to podio writer - std::unique_ptr m_writer { }; + std::unique_ptr m_writer { }; /// edm4hep event header collection headercollection_t m_header { }; /// MC particle collection @@ -190,7 +190,7 @@ namespace dd4hep { clear(); m_writer.reset(); std::string fname = m_parent->next_stream_name(); - m_writer = std::make_unique(fname); + m_writer = std::make_unique(fname); m_parent->info("+++ Opened EDM4HEP output file %s", fname.c_str()); } diff --git a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp index 2d9d0c3ca..23b3b2a7d 100644 --- a/DDG4/edm4hep/Geant4Output2EDM4hep.cpp +++ b/DDG4/edm4hep/Geant4Output2EDM4hep.cpp @@ -27,7 +27,7 @@ #include /// podio include files #include -#include +#include #include /// Namespace for the AIDA detector description toolkit @@ -48,7 +48,7 @@ namespace dd4hep { */ class Geant4Output2EDM4hep : public Geant4OutputAction { protected: - using writer_t = podio::ROOTFrameWriter; + using writer_t = podio::ROOTWriter; using stringmap_t = std::map< std::string, std::string >; using trackermap_t = std::map< std::string, edm4hep::SimTrackerHitCollection >; using calorimeterpair_t = std::pair< edm4hep::SimCalorimeterHitCollection, edm4hep::CaloHitContributionCollection >; @@ -238,7 +238,7 @@ void Geant4Output2EDM4hep::beginRun(const G4Run* run) { } } if ( !fname.empty() ) { - m_file = std::make_unique(fname); + m_file = std::make_unique(fname); if ( !m_file ) { fatal("+++ Failed to open output file: %s", fname.c_str()); }