Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 std::vector< std::pair< std::string, std::string > >
34 ::Error(
"xAOD::RDataSourceEvent::columnAndTypeNames",
36 throw std::runtime_error(
"No input file opened yet" );
41 ::Error(
"xAOD::RDataSourceEvent::columnAndTypeNames",
42 XAOD_MESSAGE(
"No xAOD::EventFormat object available" ) );
43 throw std::runtime_error(
"No xAOD::EventFormat object available" );
47 std::vector< std::pair< std::string, std::string > >
result;
52 for( ; ef_itr != ef_end; ++ef_itr ) {
71 ::TClass*
cl = ::TClass::GetClass( efe.
className().c_str() );
76 if(
cl->InheritsFrom(
"SG::IConstAuxStore" ) ) {
81 const std::type_info* ti =
cl->GetTypeInfo();
83 ::Warning(
"xAOD::RDataSourceEvent::columnAndTypeNames",
84 "No std::type_info available for type %s (key=%s)",
103 const std::type_info& typeInfo ) {
109 return &(
m_objects[ std::make_pair( std::string( columnName ),
120 ::Error(
"xAOD::RDataSourceEvent::updateObjectsForEntry",
122 throw std::runtime_error(
"Failed to get entry" );
138 return std::hash< std::string >()(
key.first +
key.second->name() );
const void * getInputObject(SG::sgkey_t key, const std::type_info &ti, bool silent=false) override
Function for retrieving an input object in a non-template way.
std::pair< std::string, const std::type_info * > Key_t
Type of the key used in the internal map of object pointers.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void updateObjectsForEntry(Long64_t entry)
Update all objects in memory for a new event.
std::unordered_map< Key_t, const void *, key_hash > m_objects
Objects served to RDataFrame.
::TTree * m_inTree
The main tree that we are reading from.
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
std::size_t operator()(const Key_t &key) const
Function calculating the hash for this type.
RDataSourceEvent()
Default constructor.
::Bool_t contains(const std::string &key)
Function checking if an object is available from the store.
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.
const EventFormat * inputEventFormat() const
Get information about the input objects.
void setActive() const
Set this event object as the currently active one.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Tool for accessing xAOD files outside of Athena.