Skip to content

Commit

Permalink
Merge pull request #414 from gundam-organization/feature/janitorial
Browse files Browse the repository at this point in the history
add checking of emptiness
  • Loading branch information
nadrino authored Nov 30, 2023
2 parents 231ce7a + a0e0bd8 commit 9783862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DatasetManager/src/DataDispenser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ void DataDispenser::parseStringParameters() {
overrideLeavesNamesFct(_parameters_.selectionCutFormulaStr);

// add surrounding parenthesis to force the LeafForm to treat it as a TFormula
_parameters_.dialIndexFormula = "(" + _parameters_.dialIndexFormula + ")";
_parameters_.nominalWeightFormulaStr = "(" + _parameters_.nominalWeightFormulaStr + ")";
_parameters_.selectionCutFormulaStr = "(" + _parameters_.selectionCutFormulaStr + ")";
if(not _parameters_.dialIndexFormula.empty()){ _parameters_.dialIndexFormula = "(" + _parameters_.dialIndexFormula + ")"; }
if(not _parameters_.nominalWeightFormulaStr.empty()){ _parameters_.nominalWeightFormulaStr = "(" + _parameters_.nominalWeightFormulaStr + ")"; }
if(not _parameters_.selectionCutFormulaStr.empty()){ _parameters_.selectionCutFormulaStr = "(" + _parameters_.selectionCutFormulaStr + ")"; }
}
void DataDispenser::doEventSelection(){
LogWarning << "Performing event selection..." << std::endl;
Expand Down

0 comments on commit 9783862

Please sign in to comment.