12#ifndef O2_FRAMEWORK_AODNATIVE_READPLAN_H_
13#define O2_FRAMEWORK_AODNATIVE_READPLAN_H_
38 std::unique_ptr<uint8_t[], Unmap>
data;
43 explicit ReadBufferPool(
size_t maxFreeBytes = 0) : mMaxFreeBytes(maxFreeBytes) {}
49 static constexpr size_t kMaxFree = 2;
52 std::vector<Buffer> mFree;
63 ReadPlan(std::shared_ptr<ByteSource>
source,
Options const& options, std::shared_ptr<ReadBufferPool> pool =
nullptr);
90 std::shared_ptr<ByteSource> mSource;
91 std::shared_ptr<ReadBufferPool> mPool;
93 std::vector<std::pair<uint64_t, size_t>> mPending;
94 std::vector<Chunk> mChunks;
95 std::vector<ReadBufferPool::Buffer> mBuffers;
96 mutable std::mutex mMutex;
107 void readvInto(std::span<ReadRequest> requests)
override;
111 std::string
url()
const override {
return mSource->url(); }
114 std::shared_ptr<ByteSource> mSource;
115 std::shared_ptr<ReadPlan> mPlan;
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
void readInto(uint64_t off, size_t len, void *dst) override
Throws IoError, or CorruptData when the range is past the end of the file.
void readvInto(std::span< ReadRequest > requests) override
std::string url() const override
uint64_t readCalls() const override
uint64_t bytesRead() const override
uint64_t size() const override
std::span< const uint8_t > tryMap(uint64_t off, size_t len) override
A view of the bytes without copying them, if the backend can provide it.
ReadBufferPool(size_t maxFreeBytes=0)
Buffer get(size_t size)
The smallest free buffer of at least size bytes, or a new one.
ReadPlan & operator=(ReadPlan const &)=delete
ReadPlan(ReadPlan const &)=delete
void fetch()
Fetches the pending ranges now, rather than on the first find().
static uint64_t bytesOf(TreeInfo const &tree)
The bytes add(tree) registers.
std::span< const uint8_t > find(uint64_t offset, size_t length)
void add(uint64_t offset, size_t length)
GLsizei GLsizei GLchar * source
GLuint GLsizei GLsizei * length
GLenum GLenum GLsizei len
std::unique_ptr< uint8_t[], Unmap > data
void operator()(uint8_t *p) const
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))