Skip to content

add AND and OR functions

Katya Govorkova requested to merge katya-add-OR-AND-funcs into katya-clean

We want to allow users to define the order of algorithms.

Use case from @graven:

in J/\psi \phi line we want to not combine \phi \to K^+K^- if there is no J/\psi in the event. So, we want to first look for J/\psi.

In order to allow user to impose the order we introduce OR() and AND() functions, which take as an input the list of algorithms and creates CompositeNode with the logic type defined in the name. Where OR is NONLAZY by default and AND is LAZY by default, however this behaviour can be changed if needed.

This MR is build on MR to show the example of usage in J/\psi \phi line

#TODO

  • come up with a better way to pass the name to the OR(AND)
  • write qmtest
  • @nnolte please add reference for Hlt1 qmtest

\cc @nnolte

Edited by Katya Govorkova

Merge request reports