11#ifndef O2_FRAMEWORK_DATAINPUTDIRECTOR_H_
12#define O2_FRAMEWORK_DATAINPUTDIRECTOR_H_
22#include <arrow/filesystem/filesystem.h>
23#include <arrow/dataset/dataset.h>
29#include "rapidjson/fwd.h"
71 std::vector<std::pair<std::string, TFile*>>
openFiles = {};
97 std::shared_ptr<data_matcher::DataDescriptorMatcher>
matcher;
114 bool setFile(
int counter,
int wantedParentLevel, std::string_view wantedOrigin);
125 arrow::dataset::FileSource
getFileFolder(
int counter,
int numTF,
int wantedParentLevel, std::string_view wantedOrigin);
132 std::pair<std::shared_ptr<DataInputDescriptor>,
int>
navigateToLevel(
int counter,
int numTF,
int wantedParentLevel, std::string_view wantedOrigin);
133 std::shared_ptr<DataInputDescriptor>
getParentFile(
int counter,
int numTF, std::string
treename,
int wantedParentLevel, std::string_view wantedOrigin);
145 void recordTimeFrameRead(
int counter,
int numTF);
146 void releaseParentFile();
147 void reportFileStatistics(
int counter, std::string monitoringInfo);
150 std::string minputfilesFile;
151 std::string* minputfilesFilePtr =
nullptr;
152 std::string mFilenameRegex;
153 std::string* mFilenameRegexPtr =
nullptr;
154 std::vector<FileNameHolder> mfilenames;
155 std::vector<FileNameHolder> mdefaultFilenamesPtr;
156 std::shared_ptr<AODInputFile> mCurrentFile;
157 std::shared_ptr<arrow::fs::FileSystem> mCurrentFilesystem;
158 int mCurrentFileID = -1;
160 std::vector<std::pair<int, int>> mTimeFrameReads;
161 bool mAlienSupport =
false;
165 std::map<std::string, std::string> mParentFileMap;
166 std::shared_ptr<DataInputDescriptor> mParentFile =
nullptr;
167 std::vector<std::shared_ptr<DataInputDescriptor>> mRetainedParents;
168 bool mTimeFrameActive =
false;
169 std::vector<std::pair<int, std::string>> mPendingFileStatistics;
172 int mtotalNumberTimeFrames = 0;
195 bool readJson(std::string
const& fnjson);
219 std::string minputfilesFile;
220 std::string*
const minputfilesFilePtr = &minputfilesFile;
221 std::string mFilenameRegex;
222 std::string*
const mFilenameRegexPtr = &mFilenameRegex;
223 std::shared_ptr<DataInputDescriptor> mdefaultDataInputDescriptor =
nullptr;
224 std::vector<FileNameHolder> mdefaultInputFiles;
225 std::vector<DataInputDescriptor> mdataInputDescriptors;
227 bool mDebugMode =
false;
228 bool mAlienSupport =
false;
230 bool readJsonDocument(rapidjson::Document* doc);
header::DataOrigin origin
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
o2::monitoring::Monitoring Monitoring
AODReadError(Kind kind, std::string const &what)
Defining ITS Vertex explicitly as messageable.
RuntimeErrorRef runtime_error(const char *)
FileNameHolder makeFileNameHolder(std::string fileName)
std::string parentFileReplacement
o2::monitoring::Monitoring * monitoring
std::vector< std::pair< std::string, int > > parentLevelToOrigin
std::vector< std::pair< std::string, TFile * > > openFiles
o2::aod::native::Options nativeOptions
int levelForOrigin(std::string_view origin) const
std::string readerBackend
std::vector< bool > alreadyRead
uint64_t invalidReadSkipped
std::vector< uint64_t > listOfTimeFrameNumbers