5#ifndef XAODDATASOURCE_RDATASOURCEEVENT_H
6#define XAODDATASOURCE_RDATASOURCEEVENT_H
12#include <ROOT/RStringView.hxx>
19#include <unordered_map>
41 const std::type_info& typeInfo );
47 typedef std::pair< std::string, const std::type_info* >
Key_t;
57 std::unordered_map< Key_t, const void*, key_hash >
m_objects;
Custom hash functor for use with Key_t.
std::size_t operator()(const Key_t &key) const
Function calculating the hash for this type.
Extension to xAOD::TEvent, used by xAOD::RDataSource.
void updateObjectsForEntry(Long64_t entry)
Update all objects in memory for a new event.
std::pair< std::string, const std::type_info * > Key_t
Type of the key used in the internal map of object pointers.
void * columnReader(std::string_view columnName, const std::type_info &typeInfo)
Get a "column reader", a pointer to a pointer to the object.
std::vector< std::pair< std::string, std::string > > columnAndTypeNames()
Get the available columm and type names from the input.
TEvent(EAuxMode mode=kClassAccess)
Default constructor.
std::unordered_map< Key_t, const void *, key_hash > m_objects
Objects served to RDataFrame.
TEvent(EAuxMode mode=kClassAccess)
Default constructor.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.