Skip to content

Commit

Permalink
Change ROOTFrame{Writer,Reader} to ROOT{Writer,Reader}
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 6, 2024
1 parent 69a1322 commit 8466b1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DDDigi/io/DigiEdm4hepInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// podio/edm4hep include files
#include <podio/Frame.h>
#include <podio/ROOTFrameReader.h>
#include <podio/ROOTReader.h>

#include <edm4hep/SimTrackerHit.h>
#include <edm4hep/SimCalorimeterHit.h>
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions DDDigi/io/DigiEdm4hepOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/// edm4hep include files
#include <podio/CollectionBase.h>
#include <podio/ROOTFrameWriter.h>
#include <podio/ROOTWriter.h>
#include <podio/Frame.h>
#include <edm4hep/SimTrackerHit.h>
#include <edm4hep/MCParticleCollection.h>
Expand Down Expand Up @@ -50,7 +50,7 @@ namespace dd4hep {
using headercollection_t = std::pair<std::string,std::unique_ptr<edm4hep::EventHeaderCollection> >;
DigiEdm4hepOutput* m_parent { nullptr };
/// Reference to podio writer
std::unique_ptr<podio::ROOTFrameWriter> m_writer { };
std::unique_ptr<podio::ROOTWriter> m_writer { };
/// edm4hep event header collection
headercollection_t m_header { };
/// MC particle collection
Expand Down Expand Up @@ -190,7 +190,7 @@ namespace dd4hep {
clear();
m_writer.reset();
std::string fname = m_parent->next_stream_name();
m_writer = std::make_unique<podio::ROOTFrameWriter>(fname);
m_writer = std::make_unique<podio::ROOTWriter>(fname);
m_parent->info("+++ Opened EDM4HEP output file %s", fname.c_str());
}

Expand Down
6 changes: 3 additions & 3 deletions DDG4/edm4hep/Geant4Output2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <edm4hep/EDM4hepVersion.h>
/// podio include files
#include <podio/Frame.h>
#include <podio/ROOTFrameWriter.h>
#include <podio/ROOTWriter.h>
#include <podio/podioVersion.h>

/// Namespace for the AIDA detector description toolkit
Expand All @@ -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 >;
Expand Down Expand Up @@ -238,7 +238,7 @@ void Geant4Output2EDM4hep::beginRun(const G4Run* run) {
}
}
if ( !fname.empty() ) {
m_file = std::make_unique<podio::ROOTFrameWriter>(fname);
m_file = std::make_unique<podio::ROOTWriter>(fname);
if ( !m_file ) {
fatal("+++ Failed to open output file: %s", fname.c_str());
}
Expand Down

0 comments on commit 8466b1b

Please sign in to comment.