Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGCF/Femto/Core/FemtoFlowEventHisto.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// \brief FemtoFlowEventHisto - Histogram class for tracks, V0s and cascades
/// \author Andi Mathis, TU München, andreas.mathis@ph.tum.de
/// \author Zuzanna Chochulska, WUT Warsaw & CTU Prague, zchochul@cern.ch

#ifndef PWGCF_FEMTO_CORE_FEMTOFLOWEVENTHISTO_H_
#define PWGCF_FEMTO_CORE_FEMTOFLOWEVENTHISTO_H_

Expand Down
13 changes: 6 additions & 7 deletions PWGCF/Femto/Core/FemtoFlowObjectSelection.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
break;
}

for (auto& sel : mSelections) {

Check failure on line 133 in PWGCF/Femto/Core/FemtoFlowObjectSelection.h

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (sel.getSelectionVariable() == selVar) {
switch (sel.getSelectionType()) {
case (femto_flow_selection::SelectionType::kUpperLimit):
Expand Down Expand Up @@ -173,7 +173,7 @@
std::vector<FemtoFlowSelection<selValDataType, selVariable>> getSelections(selVariable selVar)
{
std::vector<FemtoFlowSelection<selValDataType, selVariable>> selValVec;
for (auto& it : mSelections) {

Check failure on line 176 in PWGCF/Femto/Core/FemtoFlowObjectSelection.h

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (it.getSelectionVariable() == selVar) {
selValVec.push_back(it);
}
Expand All @@ -186,16 +186,15 @@
std::vector<selVariable> getSelectionVariables()
{
std::vector<selVariable> selVarVec;
for (auto& it : mSelections) {

Check failure on line 189 in PWGCF/Femto/Core/FemtoFlowObjectSelection.h

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto selVar = it.getSelectionVariable();
if (std::none_of(
selVarVec.begin(),
selVarVec.end(),
[selVar](selVariable a) {
return a == selVar;
}))
{
selVarVec.push_back(selVar);
selVarVec.begin(),
selVarVec.end(),
[selVar](selVariable a) {
return a == selVar;
})) {
selVarVec.push_back(selVar);
}
}
return selVarVec;
Expand Down
Loading