{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1","id":123742529,"html_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis/pull/1","diff_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis/pull/1.diff","patch_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis/pull/1.patch","issue_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/1","number":1,"state":"open","locked":false,"title":"New Muon scale factor (& update lepton scale factor handling)","user":{"login":"raggleton","id":3728382,"avatar_url":"https://avatars3.githubusercontent.com/u/3728382?v=3","gravatar_id":"","url":"https://api.github.com/users/raggleton","html_url":"https://github.com/raggleton","followers_url":"https://api.github.com/users/raggleton/followers","following_url":"https://api.github.com/users/raggleton/following{/other_user}","gists_url":"https://api.github.com/users/raggleton/gists{/gist_id}","starred_url":"https://api.github.com/users/raggleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raggleton/subscriptions","organizations_url":"https://api.github.com/users/raggleton/orgs","repos_url":"https://api.github.com/users/raggleton/repos","events_url":"https://api.github.com/users/raggleton/events{/privacy}","received_events_url":"https://api.github.com/users/raggleton/received_events","type":"User","site_admin":false},"body":"This updates the Muon scale factors in line with 2016 recommendations:\r\n\r\n- https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideMuonIdRun2\r\n- https://twiki.cern.ch/twiki/bin/view/CMS/MuonReferenceEffsRun2 \r\n- https://twiki.cern.ch/twiki/bin/view/CMS/MuonWorkInProgressAndPagResults (ROOT files from this page)\r\n\r\nThere are scale factors for tracking, muon ID, muon isolation, and trigger. Note that I've overhauled the class to do lepton SF into separate muon & electron ones (latter to be completed), since this is significantly more complicated than previously. Although the new class seems more complicated, I hope it will make implementation of the Electron SF, and any future maintenance, easier. It is also easy to access the individual SF components and their respective uncertainties.\r\n\r\n**New**: I've also included the trigger SF into the overall muon SF, since by construction it is \"on top\" of the isolation criteria. Since the SF no longer accounts for just ID, and now also includes the trigger SF, I've also renamed the tree vars in TreeMaker.cc to reflect this (e.g. `LeptonSF_ID_up` -> `LeptonSF_up`), and removed the `LeptonSF_trigger` branch - I couldn't find any uses of these so assume it's OK?\r\n\r\nI have also included the variation up/down, which included **both** statistical (from the provided ROOT files) and currently recommended systematic uncertainties. However the latter are still 2015 recommendations from: https://twiki.cern.ch/twiki/bin/view/CMS/MuonReferenceEffsRun2#Results_for_2015_data, so will inevitably need updating. The statistical and systematic uncertainties have been combined in quadrature.\r\n\r\n**Run-dependect SF**: the muon SF are different for runs B-F, and G-H due to HIP issue. To combine them I've used the lumi-weighted mean. I have included all necessary source files and script to reproduce/update this.\r\n","created_at":"2017-06-02T15:26:35Z","updated_at":"2017-06-02T15:26:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1/commits","review_comments_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1/comments","review_comment_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/1/comments","statuses_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/statuses/b5baed65ab1ed41bb712ac630b4e914a67c198ec","head":{"label":"raggleton:NewMuonSF","ref":"NewMuonSF","sha":"b5baed65ab1ed41bb712ac630b4e914a67c198ec","user":{"login":"raggleton","id":3728382,"avatar_url":"https://avatars3.githubusercontent.com/u/3728382?v=3","gravatar_id":"","url":"https://api.github.com/users/raggleton","html_url":"https://github.com/raggleton","followers_url":"https://api.github.com/users/raggleton/followers","following_url":"https://api.github.com/users/raggleton/following{/other_user}","gists_url":"https://api.github.com/users/raggleton/gists{/gist_id}","starred_url":"https://api.github.com/users/raggleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raggleton/subscriptions","organizations_url":"https://api.github.com/users/raggleton/orgs","repos_url":"https://api.github.com/users/raggleton/repos","events_url":"https://api.github.com/users/raggleton/events{/privacy}","received_events_url":"https://api.github.com/users/raggleton/received_events","type":"User","site_admin":false},"repo":{"id":91315400,"name":"aTGCsAnalysis","full_name":"raggleton/aTGCsAnalysis","owner":{"login":"raggleton","id":3728382,"avatar_url":"https://avatars3.githubusercontent.com/u/3728382?v=3","gravatar_id":"","url":"https://api.github.com/users/raggleton","html_url":"https://github.com/raggleton","followers_url":"https://api.github.com/users/raggleton/followers","following_url":"https://api.github.com/users/raggleton/following{/other_user}","gists_url":"https://api.github.com/users/raggleton/gists{/gist_id}","starred_url":"https://api.github.com/users/raggleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raggleton/subscriptions","organizations_url":"https://api.github.com/users/raggleton/orgs","repos_url":"https://api.github.com/users/raggleton/repos","events_url":"https://api.github.com/users/raggleton/events{/privacy}","received_events_url":"https://api.github.com/users/raggleton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raggleton/aTGCsAnalysis","description":"CMSSW Project for Anomalous Triple Gauge Couplings Analysis","fork":true,"url":"https://api.github.com/repos/raggleton/aTGCsAnalysis","forks_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/forks","keys_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/teams","hooks_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/hooks","issue_events_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/issues/events{/number}","events_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/events","assignees_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/assignees{/user}","branches_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/branches{/branch}","tags_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/tags","blobs_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/languages","stargazers_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/stargazers","contributors_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/contributors","subscribers_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/subscribers","subscription_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/subscription","commits_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/contents/{+path}","compare_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/merges","archive_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/downloads","issues_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/issues{/number}","pulls_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/labels{/name}","releases_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/releases{/id}","deployments_url":"https://api.github.com/repos/raggleton/aTGCsAnalysis/deployments","created_at":"2017-05-15T08:47:41Z","updated_at":"2017-05-15T08:47:43Z","pushed_at":"2017-06-02T15:25:10Z","git_url":"git://github.com/raggleton/aTGCsAnalysis.git","ssh_url":"git@github.com:raggleton/aTGCsAnalysis.git","clone_url":"https://github.com/raggleton/aTGCsAnalysis.git","svn_url":"https://github.com/raggleton/aTGCsAnalysis","homepage":null,"size":519,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"80X"}},"base":{"label":"muhammadansariqbal:80X","ref":"80X","sha":"7ef4f39814464c0703c622dd3d23affa3f56c08c","user":{"login":"muhammadansariqbal","id":10369384,"avatar_url":"https://avatars2.githubusercontent.com/u/10369384?v=3","gravatar_id":"","url":"https://api.github.com/users/muhammadansariqbal","html_url":"https://github.com/muhammadansariqbal","followers_url":"https://api.github.com/users/muhammadansariqbal/followers","following_url":"https://api.github.com/users/muhammadansariqbal/following{/other_user}","gists_url":"https://api.github.com/users/muhammadansariqbal/gists{/gist_id}","starred_url":"https://api.github.com/users/muhammadansariqbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhammadansariqbal/subscriptions","organizations_url":"https://api.github.com/users/muhammadansariqbal/orgs","repos_url":"https://api.github.com/users/muhammadansariqbal/repos","events_url":"https://api.github.com/users/muhammadansariqbal/events{/privacy}","received_events_url":"https://api.github.com/users/muhammadansariqbal/received_events","type":"User","site_admin":false},"repo":{"id":88993633,"name":"aTGCsAnalysis","full_name":"muhammadansariqbal/aTGCsAnalysis","owner":{"login":"muhammadansariqbal","id":10369384,"avatar_url":"https://avatars2.githubusercontent.com/u/10369384?v=3","gravatar_id":"","url":"https://api.github.com/users/muhammadansariqbal","html_url":"https://github.com/muhammadansariqbal","followers_url":"https://api.github.com/users/muhammadansariqbal/followers","following_url":"https://api.github.com/users/muhammadansariqbal/following{/other_user}","gists_url":"https://api.github.com/users/muhammadansariqbal/gists{/gist_id}","starred_url":"https://api.github.com/users/muhammadansariqbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhammadansariqbal/subscriptions","organizations_url":"https://api.github.com/users/muhammadansariqbal/orgs","repos_url":"https://api.github.com/users/muhammadansariqbal/repos","events_url":"https://api.github.com/users/muhammadansariqbal/events{/privacy}","received_events_url":"https://api.github.com/users/muhammadansariqbal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis","description":"CMSSW Project for Anomalous Triple Gauge Couplings Analysis","fork":false,"url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis","forks_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/forks","keys_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/teams","hooks_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/hooks","issue_events_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/events{/number}","events_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/events","assignees_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/assignees{/user}","branches_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/branches{/branch}","tags_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/tags","blobs_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/languages","stargazers_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/stargazers","contributors_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/contributors","subscribers_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/subscribers","subscription_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/subscription","commits_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/contents/{+path}","compare_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/merges","archive_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/downloads","issues_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues{/number}","pulls_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/labels{/name}","releases_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/releases{/id}","deployments_url":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/deployments","created_at":"2017-04-21T14:42:36Z","updated_at":"2017-05-15T08:47:30Z","pushed_at":"2017-05-30T13:07:07Z","git_url":"git://github.com/muhammadansariqbal/aTGCsAnalysis.git","ssh_url":"git@github.com:muhammadansariqbal/aTGCsAnalysis.git","clone_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis.git","svn_url":"https://github.com/muhammadansariqbal/aTGCsAnalysis","homepage":null,"size":519,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"80X"}},"_links":{"self":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1"},"html":{"href":"https://github.com/muhammadansariqbal/aTGCsAnalysis/pull/1"},"issue":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/1"},"comments":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/muhammadansariqbal/aTGCsAnalysis/statuses/b5baed65ab1ed41bb712ac630b4e914a67c198ec"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":16,"additions":812,"deletions":105,"changed_files":18}}
{"actor":{"display_login":"raggleton"}}