Skip to content

Commit dcba7b4

Browse files
maszymanjblomer
authored andcommitted
run clang-format
1 parent 0e85c10 commit dcba7b4

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

tree/ntuple/v7/inc/ROOT/RNTuple.hxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,9 @@ public:
473473
std::string_view ntupleName,
474474
std::string_view storage,
475475
const RNTupleWriteOptions &options = RNTupleWriteOptions());
476-
static std::unique_ptr<RNTupleWriter> Recreate(std::initializer_list<std::pair<std::string_view, std::string_view>> fields,
477-
std::string_view ntupleName,
478-
std::string_view storage,
479-
const RNTupleWriteOptions &options = RNTupleWriteOptions());
476+
static std::unique_ptr<RNTupleWriter>
477+
Recreate(std::initializer_list<std::pair<std::string_view, std::string_view>> fields, std::string_view ntupleName,
478+
std::string_view storage, const RNTupleWriteOptions &options = RNTupleWriteOptions());
480479
/// Throws an exception if the model is null.
481480
static std::unique_ptr<RNTupleWriter> Append(std::unique_ptr<RNTupleModel> model, std::string_view ntupleName,
482481
TFile &file,

tree/ntuple/v7/src/RNTuple.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,13 @@ ROOT::Experimental::RNTupleWriter::Recreate(std::unique_ptr<RNTupleModel> model,
366366
}
367367

368368
std::unique_ptr<ROOT::Experimental::RNTupleWriter>
369-
ROOT::Experimental::RNTupleWriter::Recreate(std::initializer_list<std::pair<std::string_view, std::string_view>> fields, std::string_view ntupleName,
370-
std::string_view storage, const RNTupleWriteOptions &options)
369+
ROOT::Experimental::RNTupleWriter::Recreate(std::initializer_list<std::pair<std::string_view, std::string_view>> fields,
370+
std::string_view ntupleName, std::string_view storage,
371+
const RNTupleWriteOptions &options)
371372
{
372373
auto sink = Detail::RPagePersistentSink::Create(ntupleName, storage, options);
373374
auto model = RNTupleModel::Create();
374-
for ( const auto& fieldDesc : fields ) {
375+
for (const auto &fieldDesc : fields) {
375376
std::string typeName(fieldDesc.first);
376377
std::string fieldName(fieldDesc.second);
377378
auto field = RFieldBase::Create(fieldName, typeName);

tree/ntuple/v7/test/ntuple_basics.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,14 @@ TEST(RNTuple, WriteReadInlinedModel)
152152
FileRaii fileGuard("test_ntuple_writeread_inlinedmodel.root");
153153

154154
{
155-
auto writer = RNTupleWriter::Recreate({
156-
{"std::uint32_t", "id"},
157-
{"std::vector<float>", "vpx"},
158-
{"std::vector<float>", "vpy"},
159-
{"std::vector<float>", "vpz"},
160-
}, "NTuple", fileGuard.GetPath());
155+
auto writer = RNTupleWriter::Recreate(
156+
{
157+
{"std::uint32_t", "id"},
158+
{"std::vector<float>", "vpx"},
159+
{"std::vector<float>", "vpy"},
160+
{"std::vector<float>", "vpz"},
161+
},
162+
"NTuple", fileGuard.GetPath());
161163

162164
auto entry = writer->CreateEntry();
163165
*entry->GetPtr<std::uint32_t>("id") = 1;
@@ -185,7 +187,6 @@ TEST(RNTuple, WriteReadInlinedModel)
185187
EXPECT_FLOAT_EQ(3.0, (*readvpz)[0]);
186188
EXPECT_FLOAT_EQ(3.1, (*readvpz)[1]);
187189
EXPECT_FLOAT_EQ(3.2, (*readvpz)[2]);
188-
189190
}
190191

191192
TEST(RNTuple, FileAnchor)

0 commit comments

Comments
 (0)