{"action":"created","comment":{"url":"https://api.github.com/repos/vhbb/cmssw/pulls/comments/39502367","id":39502367,"diff_hunk":"@@ -118,6 +122,14 @@ def process(self, event):\n                     if self.doHists:\n                         self.rawmcpileup.hist.Fill( event.nPU )\n \n+                    ##get z position of on-time pile-up sorted by pt-hat\n+                    ptHat_zPositions = zip(puInfo.getPU_pT_hats(),puInfo.getPU_zpositions())\n+                    ptHat_zPositions.sort()","path":"PhysicsTools/Heppy/python/analyzers/core/PileUpAnalyzer.py","position":29,"original_position":29,"commit_id":"19338ee537ff71fc8b81108839b0b63eab2dffdf","original_commit_id":"19338ee537ff71fc8b81108839b0b63eab2dffdf","user":{"login":"arizzi","id":5022358,"avatar_url":"https://avatars.githubusercontent.com/u/5022358?v=3","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},"body":"sort(reverse=True) ?","created_at":"2015-09-15T12:10:57Z","updated_at":"2015-09-15T12:10:57Z","html_url":"https://github.com/vhbb/cmssw/pull/150#discussion_r39502367","pull_request_url":"https://api.github.com/repos/vhbb/cmssw/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/comments/39502367"},"html":{"href":"https://github.com/vhbb/cmssw/pull/150#discussion_r39502367"},"pull_request":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/vhbb/cmssw/pulls/150","id":43647124,"html_url":"https://github.com/vhbb/cmssw/pull/150","diff_url":"https://github.com/vhbb/cmssw/pull/150.diff","patch_url":"https://github.com/vhbb/cmssw/pull/150.patch","issue_url":"https://api.github.com/repos/vhbb/cmssw/issues/150","number":150,"state":"open","locked":false,"title":"add pile-up collisions information","user":{"login":"silviodonato","id":6177433,"avatar_url":"https://avatars.githubusercontent.com/u/6177433?v=3","gravatar_id":"","url":"https://api.github.com/users/silviodonato","html_url":"https://github.com/silviodonato","followers_url":"https://api.github.com/users/silviodonato/followers","following_url":"https://api.github.com/users/silviodonato/following{/other_user}","gists_url":"https://api.github.com/users/silviodonato/gists{/gist_id}","starred_url":"https://api.github.com/users/silviodonato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviodonato/subscriptions","organizations_url":"https://api.github.com/users/silviodonato/orgs","repos_url":"https://api.github.com/users/silviodonato/repos","events_url":"https://api.github.com/users/silviodonato/events{/privacy}","received_events_url":"https://api.github.com/users/silviodonato/received_events","type":"User","site_admin":false},"body":"This PR add two arrays in the tree:\r\n- pileUpVertex_z: with the position of the pile-up collisions\r\n- pileUpVertex_ptHat: with the pt-hat of the pile-up collisions\r\n\r\nThe elements are sorted depending on the pt-hat.\r\nSo far only the information of the first 5 hardest PU collisions is saved.\r\n\r\nIn addition, this PR makes the code compatible also with the \"slimmedAddPileupInfo\".","created_at":"2015-08-28T16:37:36Z","updated_at":"2015-09-15T12:10:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"417dd55ad0916b3e3f7f3a3a0b9d8a674aeb2c08","assignee":null,"milestone":{"url":"https://api.github.com/repos/vhbb/cmssw/milestones/4","html_url":"https://github.com/vhbb/cmssw/milestones/V13","labels_url":"https://api.github.com/repos/vhbb/cmssw/milestones/4/labels","id":1178757,"number":4,"title":"V13","description":"Meant for first data vs MC comparison, hence should run on data too","creator":{"login":"arizzi","id":5022358,"avatar_url":"https://avatars.githubusercontent.com/u/5022358?v=3","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},"open_issues":15,"closed_issues":14,"state":"open","created_at":"2015-06-24T07:18:50Z","updated_at":"2015-09-15T12:09:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/vhbb/cmssw/pulls/150/commits","review_comments_url":"https://api.github.com/repos/vhbb/cmssw/pulls/150/comments","review_comment_url":"https://api.github.com/repos/vhbb/cmssw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vhbb/cmssw/issues/150/comments","statuses_url":"https://api.github.com/repos/vhbb/cmssw/statuses/19338ee537ff71fc8b81108839b0b63eab2dffdf","head":{"label":"silviodonato:PUinfo","ref":"PUinfo","sha":"19338ee537ff71fc8b81108839b0b63eab2dffdf","user":{"login":"silviodonato","id":6177433,"avatar_url":"https://avatars.githubusercontent.com/u/6177433?v=3","gravatar_id":"","url":"https://api.github.com/users/silviodonato","html_url":"https://github.com/silviodonato","followers_url":"https://api.github.com/users/silviodonato/followers","following_url":"https://api.github.com/users/silviodonato/following{/other_user}","gists_url":"https://api.github.com/users/silviodonato/gists{/gist_id}","starred_url":"https://api.github.com/users/silviodonato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviodonato/subscriptions","organizations_url":"https://api.github.com/users/silviodonato/orgs","repos_url":"https://api.github.com/users/silviodonato/repos","events_url":"https://api.github.com/users/silviodonato/events{/privacy}","received_events_url":"https://api.github.com/users/silviodonato/received_events","type":"User","site_admin":false},"repo":{"id":15160975,"name":"cmssw","full_name":"silviodonato/cmssw","owner":{"login":"silviodonato","id":6177433,"avatar_url":"https://avatars.githubusercontent.com/u/6177433?v=3","gravatar_id":"","url":"https://api.github.com/users/silviodonato","html_url":"https://github.com/silviodonato","followers_url":"https://api.github.com/users/silviodonato/followers","following_url":"https://api.github.com/users/silviodonato/following{/other_user}","gists_url":"https://api.github.com/users/silviodonato/gists{/gist_id}","starred_url":"https://api.github.com/users/silviodonato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviodonato/subscriptions","organizations_url":"https://api.github.com/users/silviodonato/orgs","repos_url":"https://api.github.com/users/silviodonato/repos","events_url":"https://api.github.com/users/silviodonato/events{/privacy}","received_events_url":"https://api.github.com/users/silviodonato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silviodonato/cmssw","description":"CMS Offline Software","fork":true,"url":"https://api.github.com/repos/silviodonato/cmssw","forks_url":"https://api.github.com/repos/silviodonato/cmssw/forks","keys_url":"https://api.github.com/repos/silviodonato/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silviodonato/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silviodonato/cmssw/teams","hooks_url":"https://api.github.com/repos/silviodonato/cmssw/hooks","issue_events_url":"https://api.github.com/repos/silviodonato/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/silviodonato/cmssw/events","assignees_url":"https://api.github.com/repos/silviodonato/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/silviodonato/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/silviodonato/cmssw/tags","blobs_url":"https://api.github.com/repos/silviodonato/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silviodonato/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silviodonato/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/silviodonato/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silviodonato/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/silviodonato/cmssw/languages","stargazers_url":"https://api.github.com/repos/silviodonato/cmssw/stargazers","contributors_url":"https://api.github.com/repos/silviodonato/cmssw/contributors","subscribers_url":"https://api.github.com/repos/silviodonato/cmssw/subscribers","subscription_url":"https://api.github.com/repos/silviodonato/cmssw/subscription","commits_url":"https://api.github.com/repos/silviodonato/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/silviodonato/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/silviodonato/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/silviodonato/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/silviodonato/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/silviodonato/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silviodonato/cmssw/merges","archive_url":"https://api.github.com/repos/silviodonato/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silviodonato/cmssw/downloads","issues_url":"https://api.github.com/repos/silviodonato/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/silviodonato/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/silviodonato/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/silviodonato/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silviodonato/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/silviodonato/cmssw/releases{/id}","created_at":"2013-12-13T10:29:37Z","updated_at":"2014-06-25T05:12:33Z","pushed_at":"2015-09-11T15:45:17Z","git_url":"git://github.com/silviodonato/cmssw.git","ssh_url":"git@github.com:silviodonato/cmssw.git","clone_url":"https://github.com/silviodonato/cmssw.git","svn_url":"https://github.com/silviodonato/cmssw","homepage":"cms-sw.github.io/cmssw","size":1263386,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"CMSSW_4_1_X"}},"base":{"label":"vhbb:vhbbHeppy74X","ref":"vhbbHeppy74X","sha":"5c6267dceea0887cbdee02af75219184c522dc60","user":{"login":"vhbb","id":5072911,"avatar_url":"https://avatars.githubusercontent.com/u/5072911?v=3","gravatar_id":"","url":"https://api.github.com/users/vhbb","html_url":"https://github.com/vhbb","followers_url":"https://api.github.com/users/vhbb/followers","following_url":"https://api.github.com/users/vhbb/following{/other_user}","gists_url":"https://api.github.com/users/vhbb/gists{/gist_id}","starred_url":"https://api.github.com/users/vhbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhbb/subscriptions","organizations_url":"https://api.github.com/users/vhbb/orgs","repos_url":"https://api.github.com/users/vhbb/repos","events_url":"https://api.github.com/users/vhbb/events{/privacy}","received_events_url":"https://api.github.com/users/vhbb/received_events","type":"Organization","site_admin":false},"repo":{"id":11608804,"name":"cmssw","full_name":"vhbb/cmssw","owner":{"login":"vhbb","id":5072911,"avatar_url":"https://avatars.githubusercontent.com/u/5072911?v=3","gravatar_id":"","url":"https://api.github.com/users/vhbb","html_url":"https://github.com/vhbb","followers_url":"https://api.github.com/users/vhbb/followers","following_url":"https://api.github.com/users/vhbb/following{/other_user}","gists_url":"https://api.github.com/users/vhbb/gists{/gist_id}","starred_url":"https://api.github.com/users/vhbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhbb/subscriptions","organizations_url":"https://api.github.com/users/vhbb/orgs","repos_url":"https://api.github.com/users/vhbb/repos","events_url":"https://api.github.com/users/vhbb/events{/privacy}","received_events_url":"https://api.github.com/users/vhbb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vhbb/cmssw","description":"CMS Offline Software","fork":true,"url":"https://api.github.com/repos/vhbb/cmssw","forks_url":"https://api.github.com/repos/vhbb/cmssw/forks","keys_url":"https://api.github.com/repos/vhbb/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vhbb/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vhbb/cmssw/teams","hooks_url":"https://api.github.com/repos/vhbb/cmssw/hooks","issue_events_url":"https://api.github.com/repos/vhbb/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/vhbb/cmssw/events","assignees_url":"https://api.github.com/repos/vhbb/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/vhbb/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/vhbb/cmssw/tags","blobs_url":"https://api.github.com/repos/vhbb/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vhbb/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vhbb/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/vhbb/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vhbb/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/vhbb/cmssw/languages","stargazers_url":"https://api.github.com/repos/vhbb/cmssw/stargazers","contributors_url":"https://api.github.com/repos/vhbb/cmssw/contributors","subscribers_url":"https://api.github.com/repos/vhbb/cmssw/subscribers","subscription_url":"https://api.github.com/repos/vhbb/cmssw/subscription","commits_url":"https://api.github.com/repos/vhbb/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/vhbb/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/vhbb/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/vhbb/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/vhbb/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/vhbb/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vhbb/cmssw/merges","archive_url":"https://api.github.com/repos/vhbb/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vhbb/cmssw/downloads","issues_url":"https://api.github.com/repos/vhbb/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/vhbb/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/vhbb/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/vhbb/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vhbb/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/vhbb/cmssw/releases{/id}","created_at":"2013-07-23T13:22:20Z","updated_at":"2015-03-01T09:15:14Z","pushed_at":"2015-09-15T12:06:35Z","git_url":"git://github.com/vhbb/cmssw.git","ssh_url":"git@github.com:vhbb/cmssw.git","clone_url":"https://github.com/vhbb/cmssw.git","svn_url":"https://github.com/vhbb/cmssw","homepage":"cms-sw.github.io/cmssw","size":1072109,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":20,"forks":2,"open_issues":20,"watchers":1,"default_branch":"vhbbHeppy74X"}},"_links":{"self":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/150"},"html":{"href":"https://github.com/vhbb/cmssw/pull/150"},"issue":{"href":"https://api.github.com/repos/vhbb/cmssw/issues/150"},"comments":{"href":"https://api.github.com/repos/vhbb/cmssw/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vhbb/cmssw/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/vhbb/cmssw/statuses/19338ee537ff71fc8b81108839b0b63eab2dffdf"}}}}