15#include "arrow/table.h"
16#include "gandiva/tree_expr_builder.h"
21#include <unordered_map>
34constexpr std::array<std::string_view, BasicOp::Conditional + 1>
mapping{
67constexpr std::array<std::string_view, 8>
cfgtypes{
92 o2::constants::math::Almost0,
93 o2::constants::math::Epsilon,
94 o2::constants::math::Almost1,
95 o2::constants::math::VeryBig,
96 o2::constants::math::PI,
97 o2::constants::math::TwoPI,
98 o2::constants::math::PIHalf,
99 o2::constants::math::PIThird,
100 o2::constants::math::PIQuarter};
115 "less_than_or_equal_to",
117 "greater_than_or_equal_to",
139 std::stack<NodeRecord>
path;
140 auto local_index =
index;
143 while (!
path.empty()) {
145 top.node_ptr->index = local_index;
147 if (
top.node_ptr->condition !=
nullptr) {
154 if (
top.node_ptr->left !=
nullptr) {
155 path.emplace(
top.node_ptr->left.get(), 0);
157 if (
top.node_ptr->right !=
nullptr) {
158 path.emplace(
top.node_ptr->right.get(), 0);
178template <is_literal_like T>
184template <is_binding T>
191constexpr inline auto makeOp(T
const&,
size_t const&)
196template <is_operation T>
202template <is_conditional T>
203constexpr inline auto makeOp(T
const&,
size_t const&
index)
212 return arrow::uint8();
214 return arrow::int8();
216 return arrow::int16();
218 return arrow::uint16();
220 return arrow::int32();
222 return arrow::uint32();
224 return arrow::int64();
226 return arrow::uint64();
228 return arrow::float32();
230 return arrow::float64();
232 return arrow::boolean();
260 [&os](
auto&& arg) { os << arg; },
263 [&os](
size_t&& arg) { os << arg; },
264 [&os](std::string&& arg) { os << arg; },
276 if (node->self.index() == 3) {
277 std::get_if<3>(&node->self)->reset(context);
308 return "unsupported";
316 std::stack<NodeRecord>
path;
317 auto isLeaf = [](
Node const*
const node) {
318 return ((
node->left ==
nullptr) && (
node->right ==
nullptr));
321 auto processLeaf = [](
Node const*
const node) {
332 while (!
path.empty()) {
338 [&](
auto const&
n) {
return makeOp(
n,
top.node_ptr->index); },
344 auto*
left =
top.node_ptr->left.get();
345 bool leftLeaf = isLeaf(
left);
348 operationSpec.left = processLeaf(
left);
355 if (
top.node_ptr->right !=
nullptr) {
358 bool rightLeaf =
true;
359 if (
right !=
nullptr) {
360 rightLeaf = isLeaf(
right);
363 auto isUnary =
false;
364 if (
top.node_ptr->right ==
nullptr) {
369 operationSpec.right = processLeaf(
right);
376 decltype(
left) condition =
nullptr;
377 if (
top.node_ptr->condition !=
nullptr) {
378 condition =
top.node_ptr->condition.get();
380 bool condleaf = condition !=
nullptr ? isLeaf(condition) :
true;
382 if (condition !=
nullptr) {
384 operationSpec.condition = processLeaf(condition);
393 OperationSpecs.push_back(std::move(operationSpec));
397 if (!isUnary && !rightLeaf) {
401 path.emplace(condition, ci);
406 std::vector<atype::type> resultTypes;
407 resultTypes.resize(OperationSpecs.size());
411 if (
left.datum.index() == 0) {
412 throw runtime_error(
"Malformed operation spec: empty left datum");
416 if (
left.datum.index() == 1) {
417 left.type = resultTypes[std::get<size_t>(
left.datum)];
420 if (
right.datum.index() == 1) {
421 right.type = resultTypes[std::get<size_t>(
right.datum)];
425 auto t2 =
right.type;
427 if (
right.datum.index() == 0) {
428 if (
t1 == atype::DOUBLE) {
429 return atype::DOUBLE;
438 auto isIntType = [](
auto t) {
439 return (
t == atype::UINT8) || (
t == atype::INT8) || (
t == atype::UINT16) || (
t == atype::INT16) || (
t == atype::UINT32) || (
t == atype::INT32) || (
t == atype::UINT64) || (
t == atype::INT64);
442 auto isBitwiseOp = [](
auto o) {
447 if (t2 == atype::FLOAT && !isBitwiseOp(
op)) {
450 if (t2 == atype::DOUBLE && !isBitwiseOp(
op)) {
451 return atype::DOUBLE;
460 if (
t1 == atype::FLOAT) {
461 if (isIntType(t2) && !isBitwiseOp(
op)) {
464 if (t2 == atype::DOUBLE) {
465 return atype::DOUBLE;
468 if (
t1 == atype::DOUBLE) {
469 return atype::DOUBLE;
472 if (isIntType(
t1) && isBitwiseOp(
op)) {
475 if (isIntType(t2) && isBitwiseOp(
op)) {
482 for (
auto it = OperationSpecs.rbegin(); it != OperationSpecs.rend(); ++it) {
483 auto type = inferResultType(it->op, it->left, it->right);
484 if (it->type == atype::NA) {
488 it->result.type = it->type;
489 resultTypes[std::get<size_t>(it->result.datum)] = it->type;
492 return OperationSpecs;
497 return gandiva::TreeExprBuilder::MakeCondition(std::move(
node));
502 return gandiva::TreeExprBuilder::MakeExpression(std::move(
node), std::move(
result));
505std::shared_ptr<gandiva::Filter>
508 std::shared_ptr<gandiva::Filter>
filter;
509 auto s = gandiva::Filter::Make(Schema,
518std::shared_ptr<gandiva::Filter>
519 createFilter(gandiva::SchemaPtr
const& Schema, gandiva::ConditionPtr condition)
521 std::shared_ptr<gandiva::Filter>
filter;
522 auto s = gandiva::Filter::Make(Schema,
531std::shared_ptr<gandiva::Projector>
534 std::shared_ptr<gandiva::Projector> projector;
535 auto s = gandiva::Projector::Make(Schema,
539 throw runtime_error_f(
"Failed to create projector: %s",
s.ToString().c_str());
544std::shared_ptr<gandiva::Projector>
551 std::shared_ptr<arrow::Schema>
schema,
552 std::vector<std::shared_ptr<arrow::Field>>
const&
fields)
556 for (
size_t ci = 0; ci < nColumns; ++ci) {
565 std::shared_ptr<gandiva::Projector> projector;
566 auto s = gandiva::Projector::Make(
579 auto s = gandiva::SelectionVector::MakeInt64(table->num_rows(),
580 arrow::default_memory_pool(),
583 throw runtime_error_f(
"Cannot allocate selection vector %s",
s.ToString().c_str());
585 if (table->num_rows() == 0) {
588 arrow::TableBatchReader reader(*table);
589 std::shared_ptr<arrow::RecordBatch> batch;
591 s = reader.ReadNext(&batch);
593 throw runtime_error_f(
"Cannot read batches from table %s",
s.ToString().c_str());
595 if (batch ==
nullptr) {
598 s =
gfilter->Evaluate(*batch, selection);
613auto createProjection(std::shared_ptr<arrow::Table>
const& table, std::shared_ptr<gandiva::Projector>
const& gprojector)
615 arrow::TableBatchReader reader(*table);
616 std::shared_ptr<arrow::RecordBatch> batch;
617 std::shared_ptr<arrow::ArrayVector>
v;
619 auto s = reader.ReadNext(&batch);
621 throw runtime_error_f(
"Cannot read batches from table %s",
s.ToString().c_str());
623 if (batch ==
nullptr) {
626 s = gprojector->Evaluate(*batch, arrow::default_memory_pool(),
v.get());
635 gandiva::SchemaPtr
const& Schema)
637 std::vector<gandiva::NodePtr> opNodes;
638 opNodes.resize(opSpecs.size());
639 std::fill(opNodes.begin(), opNodes.end(),
nullptr);
640 std::unordered_map<std::string, gandiva::NodePtr> fieldNodes;
641 std::unordered_map<size_t, gandiva::NodePtr> subtrees;
643 auto datumNode = [Schema, &opNodes, &fieldNodes](
DatumSpec const& spec) {
644 if (spec.datum.index() == 0) {
645 return gandiva::NodePtr(
nullptr);
647 if (spec.datum.index() == 1) {
648 return opNodes[std::get<size_t>(spec.datum)];
651 if (spec.datum.index() == 2) {
652 auto content = std::get<LiteralNode::var_t>(spec.datum);
653 switch (content.index()) {
655 return gandiva::TreeExprBuilder::MakeLiteral(
static_cast<int32_t>(std::get<int>(content)));
657 return gandiva::TreeExprBuilder::MakeLiteral(std::get<bool>(content));
659 return gandiva::TreeExprBuilder::MakeLiteral(std::get<float>(content));
661 return gandiva::TreeExprBuilder::MakeLiteral(std::get<double>(content));
663 return gandiva::TreeExprBuilder::MakeLiteral(std::get<uint8_t>(content));
665 return gandiva::TreeExprBuilder::MakeLiteral(std::get<int64_t>(content));
667 return gandiva::TreeExprBuilder::MakeLiteral(std::get<int16_t>(content));
669 return gandiva::TreeExprBuilder::MakeLiteral(std::get<uint16_t>(content));
671 return gandiva::TreeExprBuilder::MakeLiteral(std::get<int8_t>(content));
673 return gandiva::TreeExprBuilder::MakeLiteral(std::get<uint32_t>(content));
675 return gandiva::TreeExprBuilder::MakeLiteral(std::get<uint64_t>(content));
681 if (spec.datum.index() == 3) {
682 auto name = std::get<std::string>(spec.datum);
684 if (
lookup != fieldNodes.end()) {
687 auto field = Schema->GetFieldByName(
name);
688 if (field ==
nullptr) {
691 auto node = gandiva::TreeExprBuilder::MakeField(field);
698 auto insertUpcastNode = [](gandiva::NodePtr
node, atype::type
t0, atype::type
t) {
706 auto insertEqualizeUpcastNode = [](gandiva::NodePtr& node1, gandiva::NodePtr& node2, atype::type
t1, atype::type t2) {
710 }
else if (
t1 > t2) {
716 auto isBitwiseOp = [](
auto o) {
720 gandiva::NodePtr
tree =
nullptr;
721 for (
auto it = opSpecs.rbegin(); it != opSpecs.rend(); ++it) {
722 auto leftNode = datumNode(it->left);
723 auto rightNode = datumNode(it->right);
724 auto condNode = datumNode(it->condition);
726 gandiva::NodePtr temp_node;
730 temp_node = gandiva::TreeExprBuilder::MakeOr({leftNode, rightNode});
733 temp_node = gandiva::TreeExprBuilder::MakeAnd({leftNode, rightNode});
736 temp_node = gandiva::TreeExprBuilder::MakeIf(condNode, leftNode, rightNode,
concreteArrowType(it->type));
740 if (it->type != atype::BOOL && !isBitwiseOp(it->op)) {
741 leftNode = insertUpcastNode(leftNode, it->type, it->left.type);
742 rightNode = insertUpcastNode(rightNode, it->type, it->right.type);
744 insertEqualizeUpcastNode(leftNode, rightNode, it->left.type, it->right.type);
748 if (!isBitwiseOp(it->op)) {
749 leftNode = insertUpcastNode(leftNode, it->type, it->left.type);
755 if (it->index == 0) {
758 auto subtree = subtrees.find(it->index);
759 if (subtree == subtrees.end()) {
760 subtrees.insert({it->index, temp_node});
762 subtree->second = temp_node;
765 opNodes[std::get<size_t>(it->result.datum)] = temp_node;
773 std::vector<uint32_t> opHashes;
774 for (
auto const& spec : specs) {
775 if (spec.left.datum.index() == 3) {
776 opHashes.emplace_back(spec.left.hash);
778 if (spec.right.datum.index() == 3) {
779 opHashes.emplace_back(spec.right.hash);
782 std::ranges::sort(opHashes);
783 auto [ret, last] = std::ranges::unique(opHashes);
784 opHashes.erase(ret, last);
785 bool contains =
true;
786 std::ranges::for_each(opHashes, [hashes, &contains](
auto const&
hash) {
787 contains = contains && std::ranges::any_of(hashes, [
hash](
auto const&
h) {
796 if (eInfos.empty()) {
800 for (
auto& info : eInfos) {
804 if (info.tree !=
nullptr) {
805 info.tree = gandiva::TreeExprBuilder::MakeAnd({info.tree,
tree});
815 if (info.tree !=
nullptr && info.filter ==
nullptr) {
818 if (info.tree !=
nullptr && info.filter !=
nullptr && info.resetSelection ==
true) {
820 info.resetSelection =
false;
825Tokenizer::Tokenizer(std::string
const& input)
989 bool isFloat =
false;
1060 throw runtime_error_f(
"Unexpected token after expression: %s", tk.TokenStr.c_str());
1205 if (
id ==
"ifnode") {
1213 }
else if (args == 1) {
1215 }
else if (args == 2) {
1225 }
else if (
id ==
"ncfg") {
1236 }
else if (args == 1) {
1239 }
else if (args == 2) {
1253 switch (std::distance(
cfgtypes.begin(), locate)) {
1255 return std::make_unique<Node>(
1260 return std::make_unique<Node>(
1262 static_cast<int16_t
>(std::stoi(
value)),
1265 return std::make_unique<Node>(
1270 return std::make_unique<Node>(
1275 return std::make_unique<Node>(
1280 return std::make_unique<Node>(
1282 static_cast<int64_t
>(std::stol(
value)),
1285 return std::make_unique<Node>(
1290 return std::make_unique<Node>(
1305 }
else if (args == 1) {
1314 node->right =
nullptr;
1352 if (locate ==
mapping.end()) {
1358std::vector<std::shared_ptr<gandiva::Expression>>
materializeProjectors(std::vector<expressions::Projector>
const&
projectors, std::shared_ptr<arrow::Schema>
const&
inputSchema, std::vector<std::shared_ptr<arrow::Field>>
const& outputFields)
1360 std::vector<std::shared_ptr<gandiva::Expression>>
expressions;
std::vector< expressions::Projector > projectors
std::vector< std::shared_ptr< gandiva::Expression > > expressions
std::shared_ptr< arrow::Schema > inputSchema
#define O2_BUILTIN_UNREACHABLE
uint8_t lookup(const char input) noexcept
std::shared_ptr< arrow::Schema > schema
std::vector< std::shared_ptr< arrow::Field > > fields
std::unique_ptr< expressions::Node > node
unsigned short int uint16_t
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 s
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
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
constexpr uint32_t runtime_hash(char const *str)
Class for time synchronization of RawReader instances.
GLdouble GLdouble GLdouble GLdouble top
GLuint const GLchar * name
GLsizei GLsizei GLchar * source
GLsizei const GLfloat * value
GLint GLint GLsizei GLint GLenum GLenum type
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizei const GLchar *const * path
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
std::shared_ptr< gandiva::SelectionVector > Selection
std::shared_ptr< arrow::DataType > concreteArrowType(atype::type type)
std::shared_ptr< gandiva::Filter > createFilter(gandiva::SchemaPtr const &Schema, gandiva::ConditionPtr condition)
Function to create gandiva filter from gandiva condition.
constexpr std::array< std::string_view, 8 > cfgtypes
gandiva::ExpressionPtr makeExpression(gandiva::NodePtr node, gandiva::FieldPtr result)
Function to create gandiva projecting expression from generic gandiva expression tree.
bool isTableCompatible(std::span< const uint32_t > hashes, Operations const &specs)
Function to check compatibility of a given arrow schema with operation sequence.
std::shared_ptr< gandiva::Projector > createProjectorHelper(size_t nColumns, expressions::Projector *projectors, std::shared_ptr< arrow::Schema > schema, std::vector< std::shared_ptr< arrow::Field > > const &fields)
constexpr std::array< const char *, BasicOp::Conditional+1 > basicOperationsMap
gandiva::Selection createSelection(std::shared_ptr< arrow::Table > const &table, Filter const &expression)
Function for creating gandiva selection from our internal filter tree.
auto createProjection(std::shared_ptr< arrow::Table > const &table, std::shared_ptr< gandiva::Projector > const &gprojector)
const char * stringType(atype::type t)
std::vector< std::shared_ptr< gandiva::Expression > > materializeProjectors(std::vector< expressions::Projector > const &projectors, std::shared_ptr< arrow::Schema > const &inputSchema, std::vector< std::shared_ptr< arrow::Field > > const &outputFields)
std::vector< ColumnOperationSpec > Operations
void updateExpressionInfos(expressions::Filter const &filter, std::vector< ExpressionInfo > &eInfos)
Function for attaching gandiva filters to to compatible task inputs.
constexpr auto makeDatum(T const &)
constexpr std::array< std::string_view, BasicOp::Conditional+1 > mapping
a map between BasicOp and tokens in string expressions
Operations createOperations(Filter const &expression)
Function to create an internal operation sequence from a filter tree.
std::ostream & operator<<(std::ostream &os, DatumSpec const &spec)
gandiva::ConditionPtr makeCondition(gandiva::NodePtr node)
Function to create gandiva condition expression from generic gandiva expression tree.
void unknownParameterUsed(const char *name)
void walk(Node *head, L &&pred)
Tree-walker helper.
gandiva::NodePtr createExpressionTree(Operations const &opSpecs, gandiva::SchemaPtr const &Schema)
Function to create gandiva expression tree from operation sequence.
constexpr auto makeOp(T const &, size_t const &)
void updatePlaceholders(Filter &filter, InitContext &context)
Update placeholder nodes from context.
constexpr std::array< float, 9 > mathConstantsValues
values of math constants to substiture
std::string upcastTo(atype::type f)
std::shared_ptr< gandiva::Projector > createProjector(gandiva::SchemaPtr const &Schema, Operations const &opSpecs, gandiva::FieldPtr result)
Function to create gandiva projector from operation sequence.
constexpr std::array< std::string_view, 9 > mathConstants
math constants to recognize in string expressions
void updateFilterInfo(ExpressionInfo &info, std::shared_ptr< arrow::Table > &table)
Defining ITS Vertex explicitly as messageable.
RuntimeErrorRef runtime_error(const char *)
RuntimeErrorRef runtime_error_f(const char *,...)
An expression tree node corresponding to a column binding.
A struct, containing the root of the expression tree.
size_t designateSubtrees(Node *node, size_t index=0)
std::unique_ptr< Node > node
An expression tree node corresponding to a literal value.
LiteralValue::stored_type var_t
An expression tree node corresponding to binary or unary operation.
static std::unique_ptr< Node > parseBase(Tokenizer &tk)
static std::unique_ptr< Node > parseTier8(Tokenizer &tk)
static std::unique_ptr< Node > parseTier3(Tokenizer &tk)
static std::unique_ptr< Node > parseTier1(Tokenizer &tk)
static std::unique_ptr< Node > parseTier6(Tokenizer &tk)
static std::unique_ptr< Node > parseTier7(Tokenizer &tk)
static std::unique_ptr< Node > parsePrimary(Tokenizer &tk)
static std::unique_ptr< Node > parseTier4(Tokenizer &tk)
static std::unique_ptr< Node > parseTier2(Tokenizer &tk)
static Node parse(std::string const &input)
static OpNode opFromToken(std::string const &token)
static std::unique_ptr< Node > parseTier5(Tokenizer &tk)
A placeholder node for simple type configurable.
void reset(std::string const &input)
std::variant< uint32_t, int32_t, uint64_t, int64_t > IntegerValue
std::string::iterator current
std::variant< float, double > FloatValue
std::string IdentifierStr
From https://en.cppreference.com/w/cpp/utility/variant/visit.
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))