{"action":"created","issue":{"url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/41","repository_url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools","labels_url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/41/comments","events_url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/41/events","html_url":"https://github.com/cms-nanoAOD/nanoAOD-tools/pull/41","id":294743599,"number":41,"title":"Fix reading JES uncertainties file","user":{"login":"ktht","id":6233872,"avatar_url":"https://avatars0.githubusercontent.com/u/6233872?v=4","gravatar_id":"","url":"https://api.github.com/users/ktht","html_url":"https://github.com/ktht","followers_url":"https://api.github.com/users/ktht/followers","following_url":"https://api.github.com/users/ktht/following{/other_user}","gists_url":"https://api.github.com/users/ktht/gists{/gist_id}","starred_url":"https://api.github.com/users/ktht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktht/subscriptions","organizations_url":"https://api.github.com/users/ktht/orgs","repos_url":"https://api.github.com/users/ktht/repos","events_url":"https://api.github.com/users/ktht/events{/privacy}","received_events_url":"https://api.github.com/users/ktht/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-06T12:35:53Z","updated_at":"2018-02-06T13:55:56Z","closed_at":"2018-02-06T13:47:29Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/pulls/41","html_url":"https://github.com/cms-nanoAOD/nanoAOD-tools/pull/41","diff_url":"https://github.com/cms-nanoAOD/nanoAOD-tools/pull/41.diff","patch_url":"https://github.com/cms-nanoAOD/nanoAOD-tools/pull/41.patch"},"body":"When trying to run jetmetUncertainties module https://github.com/cms-nanoAOD/nanoAOD-tools/blob/271cf2c755c02292e7c64cafc720eb313ed9ce3a/python/postprocessing/modules/jme/jetmetUncertainties.py#L272 the JetCorrectorParameters instance is constructed from the file name $CMSSW_BASE/src/PhysicsTools/NanoAODTools/data/jme/Summer16_23Sep2016V4_MC_Uncertainty_AK4PFchs.txt and 'Total' as the uncertainty source/label https://github.com/cms-nanoAOD/nanoAOD-tools/blob/271cf2c755c02292e7c64cafc720eb313ed9ce3a/python/postprocessing/modules/jme/jetmetUncertainties.py#L57. This fails because the input file does not contain the label name between the brackets.\r\n\r\nThe solution is to set the label string to an empty one if only single JES uncertainty source (`'Total'`) is requested."},"comment":{"url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/comments/363429098","html_url":"https://github.com/cms-nanoAOD/nanoAOD-tools/pull/41#issuecomment-363429098","issue_url":"https://api.github.com/repos/cms-nanoAOD/nanoAOD-tools/issues/41","id":363429098,"user":{"login":"arizzi","id":5022358,"avatar_url":"https://avatars1.githubusercontent.com/u/5022358?v=4","gravatar_id":"","url":"https://api.github.com/users/arizzi","html_url":"https://github.com/arizzi","followers_url":"https://api.github.com/users/arizzi/followers","following_url":"https://api.github.com/users/arizzi/following{/other_user}","gists_url":"https://api.github.com/users/arizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/arizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arizzi/subscriptions","organizations_url":"https://api.github.com/users/arizzi/orgs","repos_url":"https://api.github.com/users/arizzi/repos","events_url":"https://api.github.com/users/arizzi/events{/privacy}","received_events_url":"https://api.github.com/users/arizzi/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T13:55:56Z","updated_at":"2018-02-06T13:55:56Z","author_association":"CONTRIBUTOR","body":"I'm not sure I understood the second sentence :-)"}}
{"actor":{"display_login":"arizzi"}}