Skip to content

Commit f38bf10

Browse files
committed
add Cuts SetName(); get rid of not needed variadic Cuts constructor try
1 parent 867053a commit f38bf10

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

infra/Cuts.hpp

+2-18
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,6 @@ class Cuts {
5252

5353
void AddCuts(const std::vector<SimpleCut>& cuts);
5454

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-
7355
/**
7456
* @brief Evaluates all SimpleCuts
7557
* @tparam T type of data-object associated with TTree
@@ -107,6 +89,8 @@ class Cuts {
10789
ANALYSISTREE_ATTR_NODISCARD std::set<size_t> GetBranchIds() const { return branch_ids_; }
10890
ANALYSISTREE_ATTR_NODISCARD const std::string& GetName() const { return name_; }
10991

92+
void SetName(const std::string& name) { name_ = name; }
93+
11094
std::vector<SimpleCut>& GetCuts() { return cuts_; }
11195

11296
friend bool operator==(const Cuts& that, const Cuts& other);

0 commit comments

Comments
 (0)