12#include <catch_amalgamated.hpp>
42 for (
auto i = 1;
i < 10; ++
i) {
43 w1(0,
i * 2.,
i * 3.,
i * 4.);
46 auto t1 =
b1.finalize();
49 auto expoints_a = o2::soa::Extend<o2::aod::Points, test::Rsq, test::Sin>(st1);
51 auto expoints = ExPoints{{
t1, extension.asArrowTable()}, 0};
53 REQUIRE(expoints_a.size() == 9);
54 REQUIRE(extension.size() == 9);
55 REQUIRE(expoints.size() == 9);
57 auto rex = extension.begin();
58 auto rexp = expoints.begin();
59 auto rexp_a = expoints_a.begin();
61 for (
auto i = 1;
i < 10; ++
i) {
62 float rsq =
i *
i * 4 +
i *
i * 9 +
i *
i * 16;
63 float sin =
i * 2 / std::sqrt(
i *
i * 4 +
i *
i * 9);
64 REQUIRE(rexp_a.rsq() == rsq);
65 REQUIRE(rex.rsq() == rsq);
66 REQUIRE(rexp.rsq() == rsq);
67 REQUIRE(rexp_a.sin() == sin);
68 REQUIRE(rex.sin() == sin);
69 REQUIRE(rexp.sin() == sin);
#define DECLARE_SOA_TABLE(_Name_, _Origin_, _Desc_,...)
#define DECLARE_SOA_EXPRESSION_COLUMN(_Name_, _Getter_, _Type_, _Expression_)
#define DECLARE_SOA_COLUMN(_Name_, _Getter_, _Type_)
#define DECLARE_SOA_EXTENDED_TABLE(_Name_, _Table_, _Description_, _Version_,...)
const GPUTPCGMMerger::trackCluster & b1
GLdouble GLdouble GLdouble z
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
Defining PrimaryVertex explicitly as messageable.
TEST_CASE("test_prepareArguments")
auto spawner(std::vector< std::shared_ptr< arrow::Table > > &&tables, const char *name)
Expression-based column generator to materialize columns.
FIXME: do not use data model tables.