Skip to content

Issue with Parsing ROOT:TFormula  #250

@attikis

Description

@attikis

Dear devs,

we are experiencing some trouble trying to implement a TFormula in correctionlib. Our understanding is that problem is related to the parsing of the "&&" logic operator in the TFormula.

cset = _core.CorrectionSet.from_file(fname)

RuntimeError: Failed to parse Formula expression at position 28:
((min(max(x,20.),140.)>20.0&&min(max(x,20.),140.)<=30.0))*0.8434999999999999
^
syntax error, unexpected '&', expecting , .

Can you please clarify if this indeed the case? If indeed the case do you think i'd be possible to rectify this?

In the meantime, is there a way to test a-priory a given TFormula or even parse it and then pass it to correctionlib?
Perhaps an example script or documentation?

Thank you in advance.

Best regards,
Alexandros

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions