Clean up options for ramntupleview into a struct - #69
Conversation
| @@ -1,8 +1,11 @@ | |||
| #ifndef RAMCORE_RAMNTUPLEVIEW_H | |||
| #define RAMCORE_RAMNTUPLEVIEW_H | |||
| #include <Rtypes.h> | |||
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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]
| Long64_t ramntupleview(const char *file, const char *query = "", const RAMNTupleViewOpts & = RAMNTupleViewOpts()); | |
| Long64_t ramntupleview(const char *file, const char *query = "", RAMNTupleViewOpts & = RAMNTupleViewOpts()); |
| @@ -1,5 +1,6 @@ | |||
| #include <benchmark/benchmark.h> | |||
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
warning: function 'ramntupleview' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
| Long64_t ramntupleview(const char *file, const char *query, RAMNTupleViewOpts &opts); | |
| Long64_t ramntupleviewstatic (const char *file, const char *query, RAMNTupleViewOpts &opts); |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Bring in RAMNTupleViewOpts from compiler-research#69 and keep the silent-data-loss region-query behaviour.
No description provided.