{"action":"created","comment":{"url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/comments/28306590","id":28306590,"diff_hunk":"@@ -53,10 +56,12 @@ def __init__(self, cfg_ana, cfg_comp, looperName ):\n         self.makeAllGenParticles   = cfg_ana.makeAllGenParticles\n         self.makeSplittedGenLists  = cfg_ana.makeSplittedGenLists\n         self.allGenTaus            = cfg_ana.allGenTaus if self.makeSplittedGenLists else False\n+\tself.makeLHEweights  = cfg_ana.makeLHEweights\n  \n     def declareHandles(self):\n         super(GeneratorAnalyzer, self).declareHandles()\n         self.mchandles['genParticles'] = AutoHandle( 'prunedGenParticles', 'std::vector<reco::GenParticle>' )\n+\tself.mchandles['LHEweights'] = AutoHandle( 'source', 'LHEEventProduct', mayFail = True, lazy = False )","path":"PhysicsTools/Heppy/python/analyzers/gen/GeneratorAnalyzer.py","position":19,"original_position":19,"commit_id":"0be8e4a2a13c97f8a3bd3a6d95edb9142a3db73b","original_commit_id":"0be8e4a2a13c97f8a3bd3a6d95edb9142a3db73b","user":{"login":"gpetruc","id":4643655,"avatar_url":"https://avatars.githubusercontent.com/u/4643655?v=3","gravatar_id":"","url":"https://api.github.com/users/gpetruc","html_url":"https://github.com/gpetruc","followers_url":"https://api.github.com/users/gpetruc/followers","following_url":"https://api.github.com/users/gpetruc/following{/other_user}","gists_url":"https://api.github.com/users/gpetruc/gists{/gist_id}","starred_url":"https://api.github.com/users/gpetruc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpetruc/subscriptions","organizations_url":"https://api.github.com/users/gpetruc/orgs","repos_url":"https://api.github.com/users/gpetruc/repos","events_url":"https://api.github.com/users/gpetruc/events{/privacy}","received_events_url":"https://api.github.com/users/gpetruc/received_events","type":"User","site_admin":false},"body":"maybe you could declare the handle only if `self.makeLHEweights` is true?","created_at":"2015-04-14T07:52:07Z","updated_at":"2015-04-14T07:52:07Z","html_url":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335#discussion_r28306590","pull_request_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/comments/28306590"},"html":{"href":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335#discussion_r28306590"},"pull_request":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335"}}},"pull_request":{"url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335","id":32331981,"html_url":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335","diff_url":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335.diff","patch_url":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335.patch","issue_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/335","number":335,"state":"open","locked":false,"title":"Adding LHEEventProduct information (weights for scales, pdfs)","user":{"login":"jmvizan","id":4331115,"avatar_url":"https://avatars.githubusercontent.com/u/4331115?v=3","gravatar_id":"","url":"https://api.github.com/users/jmvizan","html_url":"https://github.com/jmvizan","followers_url":"https://api.github.com/users/jmvizan/followers","following_url":"https://api.github.com/users/jmvizan/following{/other_user}","gists_url":"https://api.github.com/users/jmvizan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmvizan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmvizan/subscriptions","organizations_url":"https://api.github.com/users/jmvizan/orgs","repos_url":"https://api.github.com/users/jmvizan/repos","events_url":"https://api.github.com/users/jmvizan/events{/privacy}","received_events_url":"https://api.github.com/users/jmvizan/received_events","type":"User","site_admin":false},"body":"Adding LHEEventProduct information. For the moment it is only added to the Susy Multilepton tree","created_at":"2015-03-31T15:11:08Z","updated_at":"2015-04-14T07:52:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b71ddccc122070b51c4c3deaabb6aa007a80a102","assignee":{"login":"mariadalfonso","id":5656714,"avatar_url":"https://avatars.githubusercontent.com/u/5656714?v=3","gravatar_id":"","url":"https://api.github.com/users/mariadalfonso","html_url":"https://github.com/mariadalfonso","followers_url":"https://api.github.com/users/mariadalfonso/followers","following_url":"https://api.github.com/users/mariadalfonso/following{/other_user}","gists_url":"https://api.github.com/users/mariadalfonso/gists{/gist_id}","starred_url":"https://api.github.com/users/mariadalfonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariadalfonso/subscriptions","organizations_url":"https://api.github.com/users/mariadalfonso/orgs","repos_url":"https://api.github.com/users/mariadalfonso/repos","events_url":"https://api.github.com/users/mariadalfonso/events{/privacy}","received_events_url":"https://api.github.com/users/mariadalfonso/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/milestones/3","html_url":"https://github.com/CERN-PH-CMG/cmg-cmssw/milestones/PHY14","labels_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/milestones/3/labels","id":898763,"number":3,"title":"PHY14","description":"","creator":{"login":"mariadalfonso","id":5656714,"avatar_url":"https://avatars.githubusercontent.com/u/5656714?v=3","gravatar_id":"","url":"https://api.github.com/users/mariadalfonso","html_url":"https://github.com/mariadalfonso","followers_url":"https://api.github.com/users/mariadalfonso/followers","following_url":"https://api.github.com/users/mariadalfonso/following{/other_user}","gists_url":"https://api.github.com/users/mariadalfonso/gists{/gist_id}","starred_url":"https://api.github.com/users/mariadalfonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariadalfonso/subscriptions","organizations_url":"https://api.github.com/users/mariadalfonso/orgs","repos_url":"https://api.github.com/users/mariadalfonso/repos","events_url":"https://api.github.com/users/mariadalfonso/events{/privacy}","received_events_url":"https://api.github.com/users/mariadalfonso/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":110,"state":"open","created_at":"2014-12-10T12:31:43Z","updated_at":"2015-04-14T07:42:08Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335/commits","review_comments_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335/comments","review_comment_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/335/comments","statuses_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/statuses/0be8e4a2a13c97f8a3bd3a6d95edb9142a3db73b","head":{"label":"jmvizan:CMGTools-from-CMSSW_7_2_3","ref":"CMGTools-from-CMSSW_7_2_3","sha":"0be8e4a2a13c97f8a3bd3a6d95edb9142a3db73b","user":{"login":"jmvizan","id":4331115,"avatar_url":"https://avatars.githubusercontent.com/u/4331115?v=3","gravatar_id":"","url":"https://api.github.com/users/jmvizan","html_url":"https://github.com/jmvizan","followers_url":"https://api.github.com/users/jmvizan/followers","following_url":"https://api.github.com/users/jmvizan/following{/other_user}","gists_url":"https://api.github.com/users/jmvizan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmvizan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmvizan/subscriptions","organizations_url":"https://api.github.com/users/jmvizan/orgs","repos_url":"https://api.github.com/users/jmvizan/repos","events_url":"https://api.github.com/users/jmvizan/events{/privacy}","received_events_url":"https://api.github.com/users/jmvizan/received_events","type":"User","site_admin":false},"repo":{"id":28143743,"name":"cmg-cmssw","full_name":"jmvizan/cmg-cmssw","owner":{"login":"jmvizan","id":4331115,"avatar_url":"https://avatars.githubusercontent.com/u/4331115?v=3","gravatar_id":"","url":"https://api.github.com/users/jmvizan","html_url":"https://github.com/jmvizan","followers_url":"https://api.github.com/users/jmvizan/followers","following_url":"https://api.github.com/users/jmvizan/following{/other_user}","gists_url":"https://api.github.com/users/jmvizan/gists{/gist_id}","starred_url":"https://api.github.com/users/jmvizan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmvizan/subscriptions","organizations_url":"https://api.github.com/users/jmvizan/orgs","repos_url":"https://api.github.com/users/jmvizan/repos","events_url":"https://api.github.com/users/jmvizan/events{/privacy}","received_events_url":"https://api.github.com/users/jmvizan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmvizan/cmg-cmssw","description":"CERN CMG Tools repository. Installation instructions available on the twiki: ","fork":true,"url":"https://api.github.com/repos/jmvizan/cmg-cmssw","forks_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/forks","keys_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/teams","hooks_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/hooks","issue_events_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/events","assignees_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/tags","blobs_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/languages","stargazers_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/stargazers","contributors_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/contributors","subscribers_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/subscribers","subscription_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/subscription","commits_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/merges","archive_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/downloads","issues_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/labels{/name}","releases_url":"https://api.github.com/repos/jmvizan/cmg-cmssw/releases{/id}","created_at":"2014-12-17T15:48:39Z","updated_at":"2014-12-17T15:51:18Z","pushed_at":"2015-04-13T10:02:06Z","git_url":"git://github.com/jmvizan/cmg-cmssw.git","ssh_url":"git@github.com:jmvizan/cmg-cmssw.git","clone_url":"https://github.com/jmvizan/cmg-cmssw.git","svn_url":"https://github.com/jmvizan/cmg-cmssw","homepage":"https://twiki.cern.ch/twiki/bin/viewauth/CMS/CMGToolsReleasesExperimental","size":609129,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":"CMG_PAT_V5_18_from-CMSSW_5_3_14"}},"base":{"label":"CERN-PH-CMG:CMGTools-from-CMSSW_7_2_3","ref":"CMGTools-from-CMSSW_7_2_3","sha":"f8c66dd88faa185d090454f2de29e73f0e49b938","user":{"login":"CERN-PH-CMG","id":5182689,"avatar_url":"https://avatars.githubusercontent.com/u/5182689?v=3","gravatar_id":"","url":"https://api.github.com/users/CERN-PH-CMG","html_url":"https://github.com/CERN-PH-CMG","followers_url":"https://api.github.com/users/CERN-PH-CMG/followers","following_url":"https://api.github.com/users/CERN-PH-CMG/following{/other_user}","gists_url":"https://api.github.com/users/CERN-PH-CMG/gists{/gist_id}","starred_url":"https://api.github.com/users/CERN-PH-CMG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CERN-PH-CMG/subscriptions","organizations_url":"https://api.github.com/users/CERN-PH-CMG/orgs","repos_url":"https://api.github.com/users/CERN-PH-CMG/repos","events_url":"https://api.github.com/users/CERN-PH-CMG/events{/privacy}","received_events_url":"https://api.github.com/users/CERN-PH-CMG/received_events","type":"Organization","site_admin":false},"repo":{"id":13088143,"name":"cmg-cmssw","full_name":"CERN-PH-CMG/cmg-cmssw","owner":{"login":"CERN-PH-CMG","id":5182689,"avatar_url":"https://avatars.githubusercontent.com/u/5182689?v=3","gravatar_id":"","url":"https://api.github.com/users/CERN-PH-CMG","html_url":"https://github.com/CERN-PH-CMG","followers_url":"https://api.github.com/users/CERN-PH-CMG/followers","following_url":"https://api.github.com/users/CERN-PH-CMG/following{/other_user}","gists_url":"https://api.github.com/users/CERN-PH-CMG/gists{/gist_id}","starred_url":"https://api.github.com/users/CERN-PH-CMG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CERN-PH-CMG/subscriptions","organizations_url":"https://api.github.com/users/CERN-PH-CMG/orgs","repos_url":"https://api.github.com/users/CERN-PH-CMG/repos","events_url":"https://api.github.com/users/CERN-PH-CMG/events{/privacy}","received_events_url":"https://api.github.com/users/CERN-PH-CMG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CERN-PH-CMG/cmg-cmssw","description":"CERN CMG Tools repository. Installation instructions available on the twiki: ","fork":false,"url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw","forks_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/forks","keys_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/teams","hooks_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/hooks","issue_events_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/events","assignees_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/tags","blobs_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/languages","stargazers_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/stargazers","contributors_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/contributors","subscribers_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/subscribers","subscription_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/subscription","commits_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/merges","archive_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/downloads","issues_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/labels{/name}","releases_url":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/releases{/id}","created_at":"2013-09-25T08:23:20Z","updated_at":"2015-04-14T07:42:09Z","pushed_at":"2015-04-14T07:42:08Z","git_url":"git://github.com/CERN-PH-CMG/cmg-cmssw.git","ssh_url":"git@github.com:CERN-PH-CMG/cmg-cmssw.git","clone_url":"https://github.com/CERN-PH-CMG/cmg-cmssw.git","svn_url":"https://github.com/CERN-PH-CMG/cmg-cmssw","homepage":"https://twiki.cern.ch/twiki/bin/viewauth/CMS/CMGToolsReleasesExperimental","size":845896,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":14,"forks":68,"open_issues":14,"watchers":8,"default_branch":"CMGTools-from-CMSSW_7_2_3"}},"_links":{"self":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335"},"html":{"href":"https://github.com/CERN-PH-CMG/cmg-cmssw/pull/335"},"issue":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/335"},"comments":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/CERN-PH-CMG/cmg-cmssw/statuses/0be8e4a2a13c97f8a3bd3a6d95edb9142a3db73b"}}}}