Project
Loading...
Searching...
No Matches
o2::framework::NativeAODInputFile Class Reference

An AO2D read with the ROOT-free reader. More...

#include <NativeAOD.h>

Inherits o2::framework::AODInputFile.

Public Member Functions

void setGridInfo (std::string se, double openTime)
 The storage element and the seconds the grid lookup and open took, for monitoring.
 
std::string monitoringDetails () const override
 Extra key=value pairs for the file monitoring metrics, starting with a comma.
 
std::string name () const override
 
uint64_t size () const override
 
uint64_t bytesRead () const override
 
uint64_t readCalls () const override
 
std::vector< Key > topLevelKeys () override
 Top-level keys, in the order the file lists them, all cycles.
 
std::vector< std::string > keysIn (std::string const &dir) override
 Names of the keys inside the top-level directory dir, empty if there is none.
 
std::map< std::string, std::string > parentFiles () override
 DF_<n> to parent file path. Empty if the file has no parentFiles.
 
std::map< std::string, std::string > metaData () override
 
std::shared_ptr< VirtualRootFileSystemBase > filesystem () override
 
void setReadOrder (std::vector< std::string > const &dfs) override
 The DF_<n> names in the order they will be read, for readers which read ahead.
 
- Public Member Functions inherited from o2::framework::AODInputFile
virtual ~AODInputFile ()=default
 

Static Public Member Functions

static std::shared_ptr< NativeAODInputFile > open (std::string const &url, RootObjectReadingFactory &factory, o2::aod::native::Options const &options, std::string const &name={})
 
static std::shared_ptr< NativeAODInputFile > open (std::unique_ptr< o2::aod::native::ByteSource > source, RootObjectReadingFactory &factory, o2::aod::native::Options const &options, std::string const &name)
 The same, reading from source (e.g. the replicas of a grid file).
 

Detailed Description

An AO2D read with the ROOT-free reader.

Definition at line 126 of file NativeAOD.h.

Member Function Documentation

◆ bytesRead()

uint64_t o2::framework::NativeAODInputFile::bytesRead ( ) const
overridevirtual

Implements o2::framework::AODInputFile.

Definition at line 372 of file NativeAOD.cxx.

◆ filesystem()

std::shared_ptr< VirtualRootFileSystemBase > o2::framework::NativeAODInputFile::filesystem ( )
inlineoverridevirtual

Implements o2::framework::AODInputFile.

Definition at line 148 of file NativeAOD.h.

◆ keysIn()

std::vector< std::string > o2::framework::NativeAODInputFile::keysIn ( std::string const &  dir)
overridevirtual

Names of the keys inside the top-level directory dir, empty if there is none.

Implements o2::framework::AODInputFile.

Definition at line 384 of file NativeAOD.cxx.

◆ metaData()

std::map< std::string, std::string > o2::framework::NativeAODInputFile::metaData ( )
inlineoverridevirtual

Implements o2::framework::AODInputFile.

Definition at line 147 of file NativeAOD.h.

◆ monitoringDetails()

std::string o2::framework::NativeAODInputFile::monitoringDetails ( ) const
overridevirtual

Extra key=value pairs for the file monitoring metrics, starting with a comma.

Reimplemented from o2::framework::AODInputFile.

Definition at line 361 of file NativeAOD.cxx.

◆ name()

std::string o2::framework::NativeAODInputFile::name ( ) const
inlineoverridevirtual

Implements o2::framework::AODInputFile.

Definition at line 140 of file NativeAOD.h.

◆ open() [1/2]

std::shared_ptr< NativeAODInputFile > o2::framework::NativeAODInputFile::open ( std::string const &  url,
RootObjectReadingFactory &  factory,
o2::aod::native::Options const &  options,
std::string const &  name = {} 
)
static

Opens url and parses its header, keys, maps and the trees of its first DF, so that layouts and versions we cannot read are found here, when the file can still go to ROOT. Throws o2::aod::native::FormatError. name is what the file is called (an LFN for a grid file); url by default.

Definition at line 328 of file NativeAOD.cxx.

◆ open() [2/2]

std::shared_ptr< NativeAODInputFile > o2::framework::NativeAODInputFile::open ( std::unique_ptr< o2::aod::native::ByteSource >  source,
RootObjectReadingFactory &  factory,
o2::aod::native::Options const &  options,
std::string const &  name 
)
static

The same, reading from source (e.g. the replicas of a grid file).

Definition at line 333 of file NativeAOD.cxx.

◆ parentFiles()

std::map< std::string, std::string > o2::framework::NativeAODInputFile::parentFiles ( )
inlineoverridevirtual

DF_<n> to parent file path. Empty if the file has no parentFiles.

Implements o2::framework::AODInputFile.

Definition at line 146 of file NativeAOD.h.

◆ readCalls()

uint64_t o2::framework::NativeAODInputFile::readCalls ( ) const
overridevirtual

Implements o2::framework::AODInputFile.

Definition at line 373 of file NativeAOD.cxx.

◆ setGridInfo()

void o2::framework::NativeAODInputFile::setGridInfo ( std::string  se,
double  openTime 
)

The storage element and the seconds the grid lookup and open took, for monitoring.

Definition at line 355 of file NativeAOD.cxx.

◆ setReadOrder()

void o2::framework::NativeAODInputFile::setReadOrder ( std::vector< std::string > const &  dfs)
inlineoverridevirtual

The DF_<n> names in the order they will be read, for readers which read ahead.

Reimplemented from o2::framework::AODInputFile.

Definition at line 149 of file NativeAOD.h.

◆ size()

uint64_t o2::framework::NativeAODInputFile::size ( ) const
overridevirtual

Implements o2::framework::AODInputFile.

Definition at line 371 of file NativeAOD.cxx.

◆ topLevelKeys()

std::vector< AODInputFile::Key > o2::framework::NativeAODInputFile::topLevelKeys ( )
overridevirtual

Top-level keys, in the order the file lists them, all cycles.

Implements o2::framework::AODInputFile.

Definition at line 375 of file NativeAOD.cxx.


The documentation for this class was generated from the following files: