Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidateDatacards.py fails in compiling RooFormulas #278

Open
bonanomi opened this issue Jun 10, 2022 · 0 comments
Open

ValidateDatacards.py fails in compiling RooFormulas #278

bonanomi opened this issue Jun 10, 2022 · 0 comments

Comments

@bonanomi
Copy link

bonanomi commented Jun 10, 2022

When datacards include rateParam lines featuring RooFormulaVars such as:

alphaMuon2FJ_2018_SRH  rateParam Muon2FJ_2018_SRH DYJ @0 alphaMuon2FJ_2018_2Lep

the ValidateDatacards.py tool seem not to able to compile the above expression and brakes:

Error in <RooFormula::Compile>:  Bad numerical expression : "@0"

It seems that replacing the formula with "1.0*@0" fixes the compilation.

Edit: It seems that in general, if the RooFormula is expressed as a string, this does not cause compilation issues. So even:

alphaMuon2FJ_2018_SRH  rateParam Muon2FJ_2018_SRH DYJ "@0" alphaMuon2FJ_2018_2Lep

would work.

An example of datacard to reproduce the issue is this HIG-22-005 card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant