Skip to content

Clean up options for ramntupleview into a struct - #69

Merged
vgvassilev merged 3 commits into
compiler-research:developfrom
GeorgiLH:view_options
Sep 2, 2026
Merged

Clean up options for ramntupleview into a struct#69
vgvassilev merged 3 commits into
compiler-research:developfrom
GeorgiLH:view_options

Conversation

@GeorgiLH

Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -1,8 +1,11 @@
#ifndef RAMCORE_RAMNTUPLEVIEW_H
#define RAMCORE_RAMNTUPLEVIEW_H
#include <Rtypes.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'Rtypes.h' file not found [clang-diagnostic-error]

#include <Rtypes.h>
         ^

bool fPerfStats = false;
std::string perfStatsFilename = "perf.root";
};
Long64_t ramntupleview(const char *file, const char *query = "", const RAMNTupleViewOpts & = RAMNTupleViewOpts());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 3 is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
Long64_t ramntupleview(const char *file, const char *query = "", const RAMNTupleViewOpts & = RAMNTupleViewOpts());
Long64_t ramntupleview(const char *file, const char *query = "", RAMNTupleViewOpts & = RAMNTupleViewOpts());

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -1,5 +1,6 @@
#include <benchmark/benchmark.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'benchmark/benchmark.h' file not found [clang-diagnostic-error]

#include <benchmark/benchmark.h>
         ^

const char *perfstatsfilename = "perf.root");
Long64_t ramntupleview(const char *file, const char *query, bool cache = true, bool perfstats = false,
const char *perfstatsfilename = "perf.root");
Long64_t ramntupleview(const char *file, const char *query, RAMNTupleViewOpts &opts);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'ramntupleview' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]

Suggested change
Long64_t ramntupleview(const char *file, const char *query, RAMNTupleViewOpts &opts);
Long64_t ramntupleviewstatic (const char *file, const char *query, RAMNTupleViewOpts &opts);

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.78%. Comparing base (85e419a) to head (0617454).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #69   +/-   ##
========================================
  Coverage    71.78%   71.78%           
========================================
  Files           19       19           
  Lines         1985     1985           
  Branches       783      784    +1     
========================================
  Hits          1425     1425           
  Misses         443      443           
  Partials       117      117           
Flag Coverage Δ
unittests 71.78% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/ramcore/RAMNTupleView.cxx 87.50% <100.00%> (ø)
test/bam_conversion.cxx 87.32% <100.00%> (ø)
test/ramcoretests.cxx 100.00% <100.00%> (ø)
Files with missing lines Coverage Δ
src/ramcore/RAMNTupleView.cxx 87.50% <100.00%> (ø)
test/bam_conversion.cxx 87.32% <100.00%> (ø)
test/ramcoretests.cxx 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vgvassilev vgvassilev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vgvassilev
vgvassilev merged commit 6921696 into compiler-research:develop Sep 2, 2026
5 checks passed
AdityaPandeyCN added a commit to AdityaPandeyCN/ramtools that referenced this pull request Sep 4, 2026
Bring in RAMNTupleViewOpts from compiler-research#69 and keep the silent-data-loss
region-query behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants