diff --git a/dev/make-root/rntuple_stl_containers.C b/dev/make-root/rntuple_stl_containers.C index 7da38f9..4b2fb37 100644 --- a/dev/make-root/rntuple_stl_containers.C +++ b/dev/make-root/rntuple_stl_containers.C @@ -25,8 +25,8 @@ void rntuple_stl_containers() { auto vector_vector_int32 = model->MakeField>>("vector_vector_int32"); auto vector_string = model->MakeField>("vector_string"); auto vector_vector_string = model->MakeField>>("vector_vector_string"); - auto variant_int32_float = model->MakeField>("variant_int32_float"); - auto vector_variant_int32_float = model->MakeField>>("vector_variant_int32_float"); + auto variant_int32_string = model->MakeField>("variant_int32_string"); + auto vector_variant_int64_string = model->MakeField>>("vector_variant_int64_string"); auto tuple_int32_string = model->MakeField>("tuple_int32_string"); auto vector_tuple_int32_string = model->MakeField>>("vector_tuple_int32_string"); @@ -40,8 +40,8 @@ void rntuple_stl_containers() { vector_string->emplace_back("one"); vector_vector_int32->emplace_back(std::vector{ 1 }); vector_vector_string->emplace_back(std::vector{ "one" }); - *variant_int32_float = 1.0f; - vector_variant_int32_float->emplace_back(1); + *variant_int32_string = 1; + vector_variant_int64_string->emplace_back("one"); *tuple_int32_string = std::tuple({1, "one"}); vector_tuple_int32_string->emplace_back(std::tuple({1, "one"})); @@ -52,8 +52,8 @@ void rntuple_stl_containers() { vector_string->emplace_back("two"); vector_vector_int32->emplace_back(std::vector{ 2 }); vector_vector_string->emplace_back(std::vector{ "two" }); - *variant_int32_float = 2.0f; - vector_variant_int32_float->emplace_back(2.0f); + *variant_int32_string = "two"; + vector_variant_int64_string->emplace_back(2); *tuple_int32_string = std::tuple({2, "two"}); vector_tuple_int32_string->emplace_back(std::tuple({2, "two"})); diff --git a/src/skhep_testdata/data/test_ntuple_stl_containers.root b/src/skhep_testdata/data/test_ntuple_stl_containers.root index f26726e..88504d1 100644 Binary files a/src/skhep_testdata/data/test_ntuple_stl_containers.root and b/src/skhep_testdata/data/test_ntuple_stl_containers.root differ