A ROOT::RDataFrame-friendly implementation of jet and MET variations for the CMS experiment NanoAOD files