Skip to content

Commit

Permalink
style: CacheVectorOptionToSet -> CacheOptionToSet
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 2, 2024
1 parent 16d77f6 commit 4282b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iguana/algorithms/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace iguana {
/// @param[in] def the default `std::vector`
/// @param[out] val reference to the `std::set` option
template <typename T>
void CacheVectorOptionToSet(const std::string key, const std::vector<T> def, std::set<T>& val) {
void CacheOptionToSet(const std::string key, const std::vector<T> def, std::set<T>& val) {
std::vector<T> vec;
CacheOption(key, def, vec);
std::copy(vec.begin(), vec.end(), std::inserter(val, val.end()));
Expand Down
2 changes: 1 addition & 1 deletion src/iguana/algorithms/clas12/EventBuilderFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace iguana::clas12 {
void EventBuilderFilter::Start(hipo::banklist& banks) {

// define options, their default values, and cache them
CacheVectorOptionToSet("pids", {11, 211}, o_pids);
CacheOptionToSet("pids", {11, 211}, o_pids);
CacheOption("testInt", 8, o_testInt); // TODO: remove
CacheOption("testFloat", 7.0, o_testFloat); // TODO: remove

Expand Down

0 comments on commit 4282b13

Please sign in to comment.