I am trying to use RDataFrame class to add scale factor according to the leptons’ pt and eta. Those scale factors are stored in a TH2D[1]2016LegacyReReco_ElectronMedium_Fall17V2.root (11.0 KB)
. I wrote a simple code[2]addweight_rdf.cc (2.7 KB)
to do this. But I met error:
error: variable ‘electron_id_sf’ cannot be implicitly captured in a lambda with no capture-default specified
How can I solve this problem?
Thanks you,
Jie
_ROOT Version:6.16/00
_Platform:CentOS 7 on lxplus
_Compiler:gcc 4.8.5