TQFolder::importFromTextFile(...) gives wrong line number for errors in attached branches
When there is a syntax error in a sub-branch attached to some other branch, the line indication is wrong.
The minimal example cut file below lacks the closing >
in line 20, but the error message indicates a problem in line 14.
ERROR in TQFolder::importFromTextFile(...) : Error in line 14 of file '/afs/desy.de/user/n/neundorf/HeavyNeutrinos/AnalysisCode/ssWWAnalysisCode/share/config/cuts/0nuBB/linenumbererror.def': Tag definition block opened here '<.cutEx...' not closed properly;
BREAK: unable to load cuts from 'config/cuts/0nuBB/linenumbererror.def'
EXIT
linenumbererror.def
:
+CutChannels {
# to use the per-event event weights properly, use "Weight" as .weightExpression here
<.cutExpression = "$(fitsChannel)", .weightExpression = "$(eventWeight)", .title="Channel Selection">
+Proxy_A {
<.cutExpression = true>
}
+Proxy_B {
<.cutExpression = true>
}
}
@*/Proxy_A {
+CutGRL_A {
<.cutExpression = "$(GRLCut)", .title="GRL Selection A">
}
}
@*/Proxy_B {
+CutGRL_B {
<.cutExpression = "$(GRLCut)", .title="GRL Selection B"
}
}