2#ifndef XAODROOTACCESS_REVENT_H
3#define XAODROOTACCESS_REVENT_H
9#include <ROOT/RNTupleReader.hxx>
41 StatusCode
readFrom(std::string_view fileName);
51 ::Int_t
getEntry(::Long64_t entry, ::Int_t getall = 0);
65 StatusCode
getNames(
const std::string& targetClassName,
66 std::vector<std::string>& vkeys,
67 bool metadata)
const override;
70 StatusCode
connectObject(
const std::string& key,
bool silent)
override;
74 StatusCode
connectAux(
const std::string& prefix,
bool standalone)
override;
78 bool standalone)
override;
82 bool metadata)
override;
85 StatusCode
record(
void* obj,
const std::string& typeName,
86 const std::string& key,
bool overwrite,
bool metadata,
87 bool isOwner)
override;
90 bool metadata)
override;
99 ROOT::RNTupleReader& ntupleReader);
Manager for EDM objects created by ROOT.
Event(std::string_view name)
Constructor with a name.
bool m_inputNTupleIsMissing
Whether the input has an event RNTuple or not.
StatusCode setUpDynamicStore(RObjectManager &mgr, ROOT::RNTupleReader &ntupleReader)
event uses RNTupleReader:
StatusCode record(void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override
Record an object into a connected output file.
std::unique_ptr< ROOT::RNTupleReader > m_eventReader
The main event data reader.
StatusCode connectMetaAux(const std::string &prefix, bool standalone) override
Function setting up access to a set of auxiliary branches for a metadata object.
StatusCode readFrom(std::string_view fileName)
Set up the reading of an input file.
std::unique_ptr< ROOT::RNTupleReader > m_metaReader
The metadata reader.
StatusCode recordAux(TVirtualManager &mgr, const std::string &key, bool metadata) override
Record an auxiliary store into a connected output file.
::Long64_t getEntries() const
Get how many entries are available from the current input file(s)
StatusCode setAuxStore(const std::string &key, Details::IObjectManager &mgr, bool metadata) override
Function connecting a DV object to its auxiliary store.
bool hasOutput() const override
Check if an output file is connected to the object.
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
StatusCode getNames(const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override
Function determining the list keys associated with a type name.
StatusCode connectObject(const std::string &key, bool silent) override
Function setting up access to a particular object.
::Long64_t m_entry
The entry to look at from the input tree.
REvent()
Default constructor.
virtual ~REvent()
Destructor.
StatusCode connectAux(const std::string &prefix, bool standalone) override
Function setting up access to a set of auxiliary branches.
StatusCode initStats()
Function to initialise the statistics for all Tree content.
StatusCode connectMetaObject(const std::string &key, bool silent) override
Function setting up access to a particular metadata object.
bool hasInput() const override
Check if an input file is connected to the object.
Manager for EDM objects created by ROOT.
Interface class for the "manager classes".