KIT-CMS / ntuple_processor

Submodule of ntuple-analysis containing the actual software to run the analysis
0 stars 3 forks source link

[BUG] fix variations with crown #56

Closed harrypuuter closed 2 years ago

harrypuuter commented 2 years ago

Everything we have tried so far has not been sufficient to catch every corner case; therefore, we need the hard way.

We must disassemble every cut string and filter out the variables used in the cut string. After that, we can check for every variable if the shifted version is required. This allows us, in turn, to speed up the code a bit since we are now able to use sets instead of looping with an if statement.

I hope I have added all possible operators; if you know any additional ones, let me know!

harrypuuter commented 2 years ago

I see that the - can be problematic if it is used in variable naming ... - For now I added a warning when loading the datasets