I am newbie for RDataFrame.
When I used RDataFrame under ATLAS environment: asteup AnalysisBase,21.2.165,here, there is always an error showing
...__rdf_arg_HGamEventInfoAuxDyn_weightFJvt*36207.66/109.175384521
......
TypeError: can not resolve method template call for 'Define'
But I checked the MxAOD root file, and it exists, So I can’t understand this.
How could I fix the problem? I really appreciate any help you can provide.
Best regards
Qiuping
_ROOT Version: _ 6.20/06 Platform: Built for linuxx8664gcc on Jun 10 2020, 06:10:57 Compiler: From tags/v6-20-06@v6-20-06
sorry for the trouble! It’s hard to say what the problem is without knowing the schema of the input TTree and without seeing the source code that corresponds to the error
It would be great if you could try to reduce this to just the lines of code that cause the issue and then shared that minimal reproducer together with the output of tree->Print() for the problematic TTree.
Also note that v6.20.06 is a fairly old ROOT version RDataFrame-wise, many improvements have been added since.
xAOD::Init INFO Environment initialised for data access
input_line_197:4:141: error: **use of undeclared identifier '__rdf_arg_HGamEventInfoAuxDyn_weightFJvt'**
...__rdf_arg_HGamEventInfoAuxDyn_weightFJvt*36207.66/109.175384521
^
Traceback (most recent call last):
File "tutorial/cutflow_rdataframe.py", line 85, in <module>
result_list = [readMxAOD(filedict=val, cutflow=CutFlow) for val in list_files]
File "tutorial/cutflow_rdataframe.py", line 66, in readMxAOD
dataframe_new = dataframe_ori.Filter(select).Define('eventweight', temp_var)
TypeError: can not resolve method template call for 'Define'
It looks like RDataFrame cannot explain the variable. I will try the new version ROOT.
where temp_var should be a string containing something like "HGamEventInfoAuxDyn_weightFJvt*36207.66/109.175384521". Can you confirm this is the case?
If it is, can you please share the input file, even just privately with me, together with the contents of temp_var? That should help us figure out what’s going wrong.