Error in <TTreeFormula::Compile>: Invalid Syntax "&&"

I am trying to train BDT on some nTuple files, and I get the following error -
Error in TTreeFormula::Compile: Invalid Syntax “&&”

for the line below -
fillTrainBDT(ttX20, “output_ttX20_dR_mu_bjet_” + configname + “train", "output_ttX20_dR_mu_bjet” + configname + “_train”, “&& dimuon_m>18 && dimuon_m<22 && MuJJ==1”);

dimuon_m and MuJJ and branches in the nTuple. I am not sure if there is another way to write this or if there is any obvious error in the above line, which I am overlooking at the moment.
Thank you

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

The problem is likely in the last argument, that starts with &&, so the operator is either missing one of its operands, or is not needed, likely from a copy-paste error.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.