{"action":"created","comment":{"url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/comments/60091893","id":60091893,"diff_hunk":"@@ -206,6 +207,60 @@ def fillExtraMetInfo(self, tree, event):\n         self.fill(tree, 'pfmet_mt1', DiTau.calcMT(event.pfmet, event.leg1))\n         self.fill(tree, 'pfmet_mt2', DiTau.calcMT(event.pfmet, event.leg2))\n \n+    # TauSpinner information\n+    def bookTauSpinner(self, tree):\n+        self.var(tree, 'TauSpinnerWTisValid')\n+        self.var(tree, 'TauSpinnerWT')\n+        self.var(tree, 'TauSpinnerWThminus')\n+        self.var(tree, 'TauSpinnerWThplus')\n+        self.var(tree, 'TauSpinnerTauPolFromZ')\n+        self.var(tree, 'TauSpinnerWRight')\n+        self.var(tree, 'TauSpinnerWLeft')\n+        self.var(tree, 'TauSpinnerIsRightLeft')\n+\n+    def fillTauSpinner(self, tree, event):\n+        self.fill(tree, 'TauSpinnerWTisValid', event.TauSpinnerWTisValid )\n+        self.fill(tree, 'TauSpinnerWT', float(event.TauSpinnerWT))\n+        self.fill(tree, 'TauSpinnerWThminus', float(event.TauSpinnerWThminus))\n+        self.fill(tree, 'TauSpinnerWThplus', float(event.TauSpinnerWThplus))\n+        self.fill(tree, 'TauSpinnerTauPolFromZ', float(event.TauSpinnerTauPolFromZ))\n+        self.fill(tree, 'TauSpinnerWRight', float(event.TauSpinnerWRight))\n+        self.fill(tree, 'TauSpinnerWLeft', float(event.TauSpinnerWLeft  ))\n+        self.fill(tree, 'TauSpinnerIsRightLeft', float(event.TauSpinnerIsRightLeft ))\n+\n+    def bookTopPtReweighting(self, tree):\n+        self.var(tree, 'gen_top_1_pt')\n+        self.var(tree, 'gen_top_2_pt')\n+        self.var(tree, 'gen_top_weight')\n+\n+    def fillTopPtReweighting(self, tree, event):\n+\n+\n+        if self.cfg_comp.isMC and self.cfg_comp.name.find('TT')!=-1 and len(event.gentopquarks)==2:","path":"H2TauTau/python/proto/analyzers/H2TauTauTreeProducerBase.py","position":41,"original_position":41,"commit_id":"9dc672b68fc7c56f1e64045e81db3455d5e633e6","original_commit_id":"9dc672b68fc7c56f1e64045e81db3455d5e633e6","user":{"login":"steggema","id":5042211,"avatar_url":"https://avatars.githubusercontent.com/u/5042211?v=3","gravatar_id":"","url":"https://api.github.com/users/steggema","html_url":"https://github.com/steggema","followers_url":"https://api.github.com/users/steggema/followers","following_url":"https://api.github.com/users/steggema/following{/other_user}","gists_url":"https://api.github.com/users/steggema/gists{/gist_id}","starred_url":"https://api.github.com/users/steggema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steggema/subscriptions","organizations_url":"https://api.github.com/users/steggema/orgs","repos_url":"https://api.github.com/users/steggema/repos","events_url":"https://api.github.com/users/steggema/events{/privacy}","received_events_url":"https://api.github.com/users/steggema/received_events","type":"User","site_admin":false},"body":"This will also attempt to reweight the tW sample that's named \"TToLeptons_tch_powheg\"","created_at":"2016-04-18T16:43:53Z","updated_at":"2016-04-18T16:43:53Z","html_url":"https://github.com/steggema/cmgtools-lite/pull/10#discussion_r60091893","pull_request_url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/comments/60091893"},"html":{"href":"https://github.com/steggema/cmgtools-lite/pull/10#discussion_r60091893"},"pull_request":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10","id":65634597,"html_url":"https://github.com/steggema/cmgtools-lite/pull/10","diff_url":"https://github.com/steggema/cmgtools-lite/pull/10.diff","patch_url":"https://github.com/steggema/cmgtools-lite/pull/10.patch","issue_url":"https://api.github.com/repos/steggema/cmgtools-lite/issues/10","number":10,"state":"open","locked":false,"title":"added TauSpinner related analyzers","user":{"login":"gitytakahas","id":4634137,"avatar_url":"https://avatars.githubusercontent.com/u/4634137?v=3","gravatar_id":"","url":"https://api.github.com/users/gitytakahas","html_url":"https://github.com/gitytakahas","followers_url":"https://api.github.com/users/gitytakahas/followers","following_url":"https://api.github.com/users/gitytakahas/following{/other_user}","gists_url":"https://api.github.com/users/gitytakahas/gists{/gist_id}","starred_url":"https://api.github.com/users/gitytakahas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitytakahas/subscriptions","organizations_url":"https://api.github.com/users/gitytakahas/orgs","repos_url":"https://api.github.com/users/gitytakahas/repos","events_url":"https://api.github.com/users/gitytakahas/events{/privacy}","received_events_url":"https://api.github.com/users/gitytakahas/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-07T13:59:41Z","updated_at":"2016-04-18T16:43:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fbf1235c9bad505470daf5d623596a9b6b5a48c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10/commits","review_comments_url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10/comments","review_comment_url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/steggema/cmgtools-lite/issues/10/comments","statuses_url":"https://api.github.com/repos/steggema/cmgtools-lite/statuses/9dc672b68fc7c56f1e64045e81db3455d5e633e6","head":{"label":"gitytakahas:76X","ref":"76X","sha":"9dc672b68fc7c56f1e64045e81db3455d5e633e6","user":{"login":"gitytakahas","id":4634137,"avatar_url":"https://avatars.githubusercontent.com/u/4634137?v=3","gravatar_id":"","url":"https://api.github.com/users/gitytakahas","html_url":"https://github.com/gitytakahas","followers_url":"https://api.github.com/users/gitytakahas/followers","following_url":"https://api.github.com/users/gitytakahas/following{/other_user}","gists_url":"https://api.github.com/users/gitytakahas/gists{/gist_id}","starred_url":"https://api.github.com/users/gitytakahas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitytakahas/subscriptions","organizations_url":"https://api.github.com/users/gitytakahas/orgs","repos_url":"https://api.github.com/users/gitytakahas/repos","events_url":"https://api.github.com/users/gitytakahas/events{/privacy}","received_events_url":"https://api.github.com/users/gitytakahas/received_events","type":"User","site_admin":false},"repo":{"id":51064682,"name":"cmgtools-lite","full_name":"gitytakahas/cmgtools-lite","owner":{"login":"gitytakahas","id":4634137,"avatar_url":"https://avatars.githubusercontent.com/u/4634137?v=3","gravatar_id":"","url":"https://api.github.com/users/gitytakahas","html_url":"https://github.com/gitytakahas","followers_url":"https://api.github.com/users/gitytakahas/followers","following_url":"https://api.github.com/users/gitytakahas/following{/other_user}","gists_url":"https://api.github.com/users/gitytakahas/gists{/gist_id}","starred_url":"https://api.github.com/users/gitytakahas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitytakahas/subscriptions","organizations_url":"https://api.github.com/users/gitytakahas/orgs","repos_url":"https://api.github.com/users/gitytakahas/repos","events_url":"https://api.github.com/users/gitytakahas/events{/privacy}","received_events_url":"https://api.github.com/users/gitytakahas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gitytakahas/cmgtools-lite","description":"CMGTools as a subsystem, not as a CMSSW overlay","fork":true,"url":"https://api.github.com/repos/gitytakahas/cmgtools-lite","forks_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/forks","keys_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/teams","hooks_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/hooks","issue_events_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/issues/events{/number}","events_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/events","assignees_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/assignees{/user}","branches_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/branches{/branch}","tags_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/tags","blobs_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/languages","stargazers_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/stargazers","contributors_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/contributors","subscribers_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/subscribers","subscription_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/subscription","commits_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/contents/{+path}","compare_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/merges","archive_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/downloads","issues_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/issues{/number}","pulls_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/labels{/name}","releases_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/releases{/id}","deployments_url":"https://api.github.com/repos/gitytakahas/cmgtools-lite/deployments","created_at":"2016-02-04T09:13:47Z","updated_at":"2016-02-04T09:13:51Z","pushed_at":"2016-04-18T16:36:19Z","git_url":"git://github.com/gitytakahas/cmgtools-lite.git","ssh_url":"git@github.com:gitytakahas/cmgtools-lite.git","clone_url":"https://github.com/gitytakahas/cmgtools-lite.git","svn_url":"https://github.com/gitytakahas/cmgtools-lite","homepage":null,"size":9651,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"76X"}},"base":{"label":"steggema:HTTUnscheduled","ref":"HTTUnscheduled","sha":"4f298882a092112a60e0e815d7ea3f61b300752b","user":{"login":"steggema","id":5042211,"avatar_url":"https://avatars.githubusercontent.com/u/5042211?v=3","gravatar_id":"","url":"https://api.github.com/users/steggema","html_url":"https://github.com/steggema","followers_url":"https://api.github.com/users/steggema/followers","following_url":"https://api.github.com/users/steggema/following{/other_user}","gists_url":"https://api.github.com/users/steggema/gists{/gist_id}","starred_url":"https://api.github.com/users/steggema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steggema/subscriptions","organizations_url":"https://api.github.com/users/steggema/orgs","repos_url":"https://api.github.com/users/steggema/repos","events_url":"https://api.github.com/users/steggema/events{/privacy}","received_events_url":"https://api.github.com/users/steggema/received_events","type":"User","site_admin":false},"repo":{"id":50093947,"name":"cmgtools-lite","full_name":"steggema/cmgtools-lite","owner":{"login":"steggema","id":5042211,"avatar_url":"https://avatars.githubusercontent.com/u/5042211?v=3","gravatar_id":"","url":"https://api.github.com/users/steggema","html_url":"https://github.com/steggema","followers_url":"https://api.github.com/users/steggema/followers","following_url":"https://api.github.com/users/steggema/following{/other_user}","gists_url":"https://api.github.com/users/steggema/gists{/gist_id}","starred_url":"https://api.github.com/users/steggema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steggema/subscriptions","organizations_url":"https://api.github.com/users/steggema/orgs","repos_url":"https://api.github.com/users/steggema/repos","events_url":"https://api.github.com/users/steggema/events{/privacy}","received_events_url":"https://api.github.com/users/steggema/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/steggema/cmgtools-lite","description":"CMGTools as a subsystem, not as a CMSSW overlay","fork":true,"url":"https://api.github.com/repos/steggema/cmgtools-lite","forks_url":"https://api.github.com/repos/steggema/cmgtools-lite/forks","keys_url":"https://api.github.com/repos/steggema/cmgtools-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steggema/cmgtools-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steggema/cmgtools-lite/teams","hooks_url":"https://api.github.com/repos/steggema/cmgtools-lite/hooks","issue_events_url":"https://api.github.com/repos/steggema/cmgtools-lite/issues/events{/number}","events_url":"https://api.github.com/repos/steggema/cmgtools-lite/events","assignees_url":"https://api.github.com/repos/steggema/cmgtools-lite/assignees{/user}","branches_url":"https://api.github.com/repos/steggema/cmgtools-lite/branches{/branch}","tags_url":"https://api.github.com/repos/steggema/cmgtools-lite/tags","blobs_url":"https://api.github.com/repos/steggema/cmgtools-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steggema/cmgtools-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steggema/cmgtools-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/steggema/cmgtools-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steggema/cmgtools-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/steggema/cmgtools-lite/languages","stargazers_url":"https://api.github.com/repos/steggema/cmgtools-lite/stargazers","contributors_url":"https://api.github.com/repos/steggema/cmgtools-lite/contributors","subscribers_url":"https://api.github.com/repos/steggema/cmgtools-lite/subscribers","subscription_url":"https://api.github.com/repos/steggema/cmgtools-lite/subscription","commits_url":"https://api.github.com/repos/steggema/cmgtools-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/steggema/cmgtools-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/steggema/cmgtools-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/steggema/cmgtools-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/steggema/cmgtools-lite/contents/{+path}","compare_url":"https://api.github.com/repos/steggema/cmgtools-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steggema/cmgtools-lite/merges","archive_url":"https://api.github.com/repos/steggema/cmgtools-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steggema/cmgtools-lite/downloads","issues_url":"https://api.github.com/repos/steggema/cmgtools-lite/issues{/number}","pulls_url":"https://api.github.com/repos/steggema/cmgtools-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/steggema/cmgtools-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/steggema/cmgtools-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steggema/cmgtools-lite/labels{/name}","releases_url":"https://api.github.com/repos/steggema/cmgtools-lite/releases{/id}","deployments_url":"https://api.github.com/repos/steggema/cmgtools-lite/deployments","created_at":"2016-01-21T08:40:32Z","updated_at":"2016-01-19T13:25:06Z","pushed_at":"2016-04-18T16:36:20Z","git_url":"git://github.com/steggema/cmgtools-lite.git","ssh_url":"git@github.com:steggema/cmgtools-lite.git","clone_url":"https://github.com/steggema/cmgtools-lite.git","svn_url":"https://github.com/steggema/cmgtools-lite","homepage":null,"size":9624,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"76X"}},"_links":{"self":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10"},"html":{"href":"https://github.com/steggema/cmgtools-lite/pull/10"},"issue":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/issues/10"},"comments":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/steggema/cmgtools-lite/statuses/9dc672b68fc7c56f1e64045e81db3455d5e633e6"}}}}