Commit f38bf10 1 parent 867053a commit f38bf10 Copy full SHA for f38bf10
File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,6 @@ class Cuts {
52
52
53
53
void AddCuts (const std::vector<SimpleCut>& cuts);
54
54
55
- // // Base case for variadic recursion (handles when there's just one argument left)
56
- // template<typename T>
57
- // void AddCuts(const T& t) {
58
- // AddCuts(t); // Call the appropriate overload for a single argument (like std::vector<SimpleCut>)
59
- // }
60
- //
61
- // // Recursive case for variadic template (multiple arguments)
62
- // template<typename T, typename... Args>
63
- // void AddCuts(const T& t, const Args&... args) {
64
- // AddCuts(t);
65
- // AddCuts(args...);
66
- // }
67
- //
68
- // template<typename... Args> // TODO this constructor hangs. Needs debugging
69
- // Cuts(std::string name, Args... args) : name_(std::move(name)) {
70
- // AddCuts(args...);
71
- // }
72
-
73
55
/* *
74
56
* @brief Evaluates all SimpleCuts
75
57
* @tparam T type of data-object associated with TTree
@@ -107,6 +89,8 @@ class Cuts {
107
89
ANALYSISTREE_ATTR_NODISCARD std::set<size_t > GetBranchIds () const { return branch_ids_; }
108
90
ANALYSISTREE_ATTR_NODISCARD const std::string& GetName () const { return name_; }
109
91
92
+ void SetName (const std::string& name) { name_ = name; }
93
+
110
94
std::vector<SimpleCut>& GetCuts () { return cuts_; }
111
95
112
96
friend bool operator ==(const Cuts& that, const Cuts& other);
You can’t perform that action at this time.
0 commit comments