 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef RNTCOLLECTIONCURSOR_H
6 #define RNTCOLLECTIONCURSOR_H
18 #if ROOT_VERSION_CODE >= ROOT_VERSION( 6, 35, 0 )
24 namespace ROOT::Experimental {
29 using REntry = ROOT::Experimental::REntry;
30 using RNTupleReader = ROOT::Experimental::RNTupleReader;
35 namespace RootCollection {
50 ROOT::RNTupleReader*
reader );
54 virtual bool next()
override;
60 virtual std::size_t
size()
override;
63 virtual bool seek(std::size_t position)
override;
86 std::vector< std::pair< Token*, std::string > >
m_tokens;
virtual bool next() override
Advances the cursor to the next row of the query result set.
virtual std::size_t size() override
Return the size of the collection.
virtual bool seek(std::size_t position) override
Seeks the cursor to a given position in the collection.
virtual const Token & eventRef() const override
Returns the event reference Token for the current row.
This class provides a token that identifies in a unique way objects on the persistent storage.
virtual ~RNTCollectionCursor()
const ICollectionDescription & m_description
ROOT::RNTupleReader * m_RNTReader
pool::CollectionRowBuffer m_collectionRowBuffer
Row buffer containing Tokens and Attributes selected by query.
virtual const pool::CollectionRowBuffer & currentRow() const override
Returns the selected Tokens and Attributes for the current row of the query result set.
std::unique_ptr< ROOT::REntry > m_RNTEntry
RNtuple row with Field addresses set to collectionRowBuffer attributes.
reader
read the goodrunslist xml file(s)
RNTCollectionCursor(const pool::ICollectionDescription &description, const pool::CollectionRowBuffer &collectionRowBuffer, ROOT::RNTupleReader *reader)
This file contains the class definition for the Token class (migrated from POOL).
Selection rules: declare transient members.
virtual void close() override
Cleanup.
std::vector< std::pair< Token *, std::string > > m_tokens
"Token rowBuffer" for reading Tokens as strings and converting them later
std::string description
glabal timer - how long have I taken so far?