7#include <JANA/JApplicationFwd.h>
8#include <JANA/JEventSource.h>
9#include <JANA/JEventSourceGeneratorT.h>
10#include <podio/Frame.h>
11#include <podio/Reader.h>
12#include <spdlog/logger.h>
28 void Close()
override;
30 Result
Emit(JEvent& event)
override;
37 std::size_t
getEntries(
const std::string& category)
const;
38 podio::Frame
getFrame(
const std::string& category, std::size_t index)
const;
49 std::shared_ptr<spdlog::logger>
m_log;
52template <>
double JEventSourceGeneratorT<JEventSourcePODIO>::CheckOpenable(std::string);
Definition JEventSourcePODIO.h:19
std::vector< std::string_view > getAvailableCategories() const
Definition JEventSourcePODIO.cc:173
std::shared_ptr< spdlog::logger > m_log
Definition JEventSourcePODIO.h:49
static std::string GetDescription()
Definition JEventSourcePODIO.cc:237
std::size_t Nevents_read
Definition JEventSourcePODIO.h:44
void Open() override
Open the root file and read in metadata.
Definition JEventSourcePODIO.cc:124
Result Emit(JEvent &event) override
Definition JEventSourcePODIO.cc:192
virtual ~JEventSourcePODIO()
Definition JEventSourcePODIO.cc:115
std::size_t Nevents_in_file
Definition JEventSourcePODIO.h:43
std::size_t getEntries(const std::string &category) const
Definition JEventSourcePODIO.cc:177
std::unique_ptr< podio::Reader > m_reader
Definition JEventSourcePODIO.h:41
void PrintCollectionTypeTable(void)
Definition JEventSourcePODIO.cc:287
void Close() override
Definition JEventSourcePODIO.cc:168
bool m_use_event_headers
Definition JEventSourcePODIO.h:47
podio::Frame getFrame(const std::string &category, std::size_t index) const
Definition JEventSourcePODIO.cc:181
bool m_run_forever
Definition JEventSourcePODIO.h:46