RTreeBuilder class

Class responsible for building and persisting R-trees.

This class handles collecting cells and bulk loading them into an R-tree for a specific detector layer with a known coordinate system.

Constructors, destructors, conversion operators

RTreeBuilder(RTreeHelpers::CoordinateSystem coordSys) explicit
Construct an RTreeBuilder with a specific coordinate system.
~RTreeBuilder() defaulted

Public functions

void add_cell(const Cell* cell)
Add a cell for inclusion in the R-tree.
void build(const std::string& output_path)
Build the R-tree using bulk loading and persist to disk.

Function documentation

RTreeBuilder::RTreeBuilder(RTreeHelpers::CoordinateSystem coordSys) explicit

Construct an RTreeBuilder with a specific coordinate system.

Parameters
coordSys The coordinate system for this layer's cells

void RTreeBuilder::add_cell(const Cell* cell)

Add a cell for inclusion in the R-tree.

Parameters
cell Pointer to the cell to add

void RTreeBuilder::build(const std::string& output_path)

Build the R-tree using bulk loading and persist to disk.

Parameters
output_path Path where the R-tree index will be stored