{"action":"created","comment":{"url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/comments/231929935","pull_request_review_id":173009664,"id":231929935,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTkyOTkzNQ==","diff_hunk":"@@ -0,0 +1,66 @@\n+import os, glob, fnmatch\n+from optparse import OptionParser\n+\n+meta_dict = {\n+    \"diboson\" : ('WGJets','WW','WZ','ZG','ZZ'),\n+    \"dyjets\"  : ('DYJetsToLL',),\n+    \"gjets\"   : ('GJets',),\n+    \"qcd\"     : ('QCD_HT',),\n+    \"qcd_pt\"  : ('QCD_Pt',),\n+    \"signal\"  : ('SMS','RPV','StealthSYY','StealthSHH'),\n+    \"singlet\" : ('ST_s-channel','ST_t-channel','ST_tW','tZq'),\n+    \"ttbar\"   : ('TTJets','TT_Tune'),\n+    \"tth\"     : ('TTZTo','TTWJets','TTGJets','TTGamma','TTHH','TTTT','TTTW','TTWH','TTWW','TTWZ','TTZH','TTZZ','ttHJet'),\n+    \"wjets\"   : ('WJetsToLNu',),\n+    \"zjets\"   : ('ZJetsToNuNu',),\n+}\n+\n+def main(args):\n+    '''\n+    Example usage:\n+    python makeDicts.py -o tmp/\n+    '''\n+\n+    # Read parameters\n+    parser = OptionParser()\n+    parser.add_option(\"-b\", \"--base\",          dest=\"base\",     default=os.environ[\"CMSSW_BASE\"]+\"/src/TreeMaker/Production/python/\", help=\"Base path to the python folder containing the file lists (default = %(default)s\")\n+    parser.add_option(\"-d\", \"--debug\",         dest=\"debug\",    default=False, action=\"store_true\",                                   help=\"Print extra debugging information (default = %(default)s)\")\n+    parser.add_option(\"-e\", \"--era\",           dest=\"era\",      default='RunIIFall17MiniAODv2',                                       help=\"The era used in the naming of the ouput dictionaries (default = %(default)s)\")\n+    parser.add_option(\"-l\", \"--location\",      dest=\"location\", default='RunIIFall17MiniAODv2/',                                      help=\"Location of the file lists which will be added to the dictionary (default = %(default)s)\")\n+    parser.add_option(\"-o\", \"--output_folder\", dest=\"ofolder\",  default=\"./\",                                                         help=\"Put the output files in the specified folder (default = %(default)s)\")\n+    parser.add_option(\"-s\", \"--sig_senario\",   dest=\"sigsen\",   default='Fall17sig',                                                  help=\"The scenario used for the signal samples (default = %(default)s)\")","path":"Production/test/condorSub/makeDicts.py","position":31,"original_position":31,"commit_id":"55ad9c9632a11abd7ec4e7ddffb924924aecc77c","original_commit_id":"55ad9c9632a11abd7ec4e7ddffb924924aecc77c","user":{"login":"kpedro88","id":4672808,"node_id":"MDQ6VXNlcjQ2NzI4MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/4672808?v=4","gravatar_id":"","url":"https://api.github.com/users/kpedro88","html_url":"https://github.com/kpedro88","followers_url":"https://api.github.com/users/kpedro88/followers","following_url":"https://api.github.com/users/kpedro88/following{/other_user}","gists_url":"https://api.github.com/users/kpedro88/gists{/gist_id}","starred_url":"https://api.github.com/users/kpedro88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpedro88/subscriptions","organizations_url":"https://api.github.com/users/kpedro88/orgs","repos_url":"https://api.github.com/users/kpedro88/repos","events_url":"https://api.github.com/users/kpedro88/events{/privacy}","received_events_url":"https://api.github.com/users/kpedro88/received_events","type":"User","site_admin":false},"body":"fix spelling of scenario (also in next arg)","created_at":"2018-11-08T15:18:47Z","updated_at":"2018-11-08T15:18:47Z","html_url":"https://github.com/TreeMaker/TreeMaker/pull/364#discussion_r231929935","pull_request_url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/comments/231929935"},"html":{"href":"https://github.com/TreeMaker/TreeMaker/pull/364#discussion_r231929935"},"pull_request":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364"}}},"pull_request":{"url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364","id":229118880,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MTE4ODgw","html_url":"https://github.com/TreeMaker/TreeMaker/pull/364","diff_url":"https://github.com/TreeMaker/TreeMaker/pull/364.diff","patch_url":"https://github.com/TreeMaker/TreeMaker/pull/364.patch","issue_url":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/364","number":364,"state":"open","locked":false,"title":"Preparation For V15 MC Production","user":{"login":"aperloff","id":4808106,"node_id":"MDQ6VXNlcjQ4MDgxMDY=","avatar_url":"https://avatars0.githubusercontent.com/u/4808106?v=4","gravatar_id":"","url":"https://api.github.com/users/aperloff","html_url":"https://github.com/aperloff","followers_url":"https://api.github.com/users/aperloff/followers","following_url":"https://api.github.com/users/aperloff/following{/other_user}","gists_url":"https://api.github.com/users/aperloff/gists{/gist_id}","starred_url":"https://api.github.com/users/aperloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperloff/subscriptions","organizations_url":"https://api.github.com/users/aperloff/orgs","repos_url":"https://api.github.com/users/aperloff/repos","events_url":"https://api.github.com/users/aperloff/events{/privacy}","received_events_url":"https://api.github.com/users/aperloff/received_events","type":"User","site_admin":false},"body":"This is a large update needed to run the 2017 V15 MC production. It includes updates to the tool used to make weightProducer lines, get_mcm.py, get_py.py, and others. It also adds the many, many dictionaries needed to run this productions.","created_at":"2018-11-07T18:04:17Z","updated_at":"2018-11-08T15:18:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b42d2457e4cf4dc8c30815091665ca83686f519","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364/commits","review_comments_url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364/comments","review_comment_url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/364/comments","statuses_url":"https://api.github.com/repos/TreeMaker/TreeMaker/statuses/55ad9c9632a11abd7ec4e7ddffb924924aecc77c","head":{"label":"aperloff:PreparationForV15MCProduction","ref":"PreparationForV15MCProduction","sha":"55ad9c9632a11abd7ec4e7ddffb924924aecc77c","user":{"login":"aperloff","id":4808106,"node_id":"MDQ6VXNlcjQ4MDgxMDY=","avatar_url":"https://avatars0.githubusercontent.com/u/4808106?v=4","gravatar_id":"","url":"https://api.github.com/users/aperloff","html_url":"https://github.com/aperloff","followers_url":"https://api.github.com/users/aperloff/followers","following_url":"https://api.github.com/users/aperloff/following{/other_user}","gists_url":"https://api.github.com/users/aperloff/gists{/gist_id}","starred_url":"https://api.github.com/users/aperloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperloff/subscriptions","organizations_url":"https://api.github.com/users/aperloff/orgs","repos_url":"https://api.github.com/users/aperloff/repos","events_url":"https://api.github.com/users/aperloff/events{/privacy}","received_events_url":"https://api.github.com/users/aperloff/received_events","type":"User","site_admin":false},"repo":{"id":126210566,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYyMTA1NjY=","name":"TreeMaker","full_name":"aperloff/TreeMaker","private":false,"owner":{"login":"aperloff","id":4808106,"node_id":"MDQ6VXNlcjQ4MDgxMDY=","avatar_url":"https://avatars0.githubusercontent.com/u/4808106?v=4","gravatar_id":"","url":"https://api.github.com/users/aperloff","html_url":"https://github.com/aperloff","followers_url":"https://api.github.com/users/aperloff/followers","following_url":"https://api.github.com/users/aperloff/following{/other_user}","gists_url":"https://api.github.com/users/aperloff/gists{/gist_id}","starred_url":"https://api.github.com/users/aperloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aperloff/subscriptions","organizations_url":"https://api.github.com/users/aperloff/orgs","repos_url":"https://api.github.com/users/aperloff/repos","events_url":"https://api.github.com/users/aperloff/events{/privacy}","received_events_url":"https://api.github.com/users/aperloff/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aperloff/TreeMaker","description":"Generic Treemaker","fork":true,"url":"https://api.github.com/repos/aperloff/TreeMaker","forks_url":"https://api.github.com/repos/aperloff/TreeMaker/forks","keys_url":"https://api.github.com/repos/aperloff/TreeMaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aperloff/TreeMaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aperloff/TreeMaker/teams","hooks_url":"https://api.github.com/repos/aperloff/TreeMaker/hooks","issue_events_url":"https://api.github.com/repos/aperloff/TreeMaker/issues/events{/number}","events_url":"https://api.github.com/repos/aperloff/TreeMaker/events","assignees_url":"https://api.github.com/repos/aperloff/TreeMaker/assignees{/user}","branches_url":"https://api.github.com/repos/aperloff/TreeMaker/branches{/branch}","tags_url":"https://api.github.com/repos/aperloff/TreeMaker/tags","blobs_url":"https://api.github.com/repos/aperloff/TreeMaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aperloff/TreeMaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aperloff/TreeMaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/aperloff/TreeMaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aperloff/TreeMaker/statuses/{sha}","languages_url":"https://api.github.com/repos/aperloff/TreeMaker/languages","stargazers_url":"https://api.github.com/repos/aperloff/TreeMaker/stargazers","contributors_url":"https://api.github.com/repos/aperloff/TreeMaker/contributors","subscribers_url":"https://api.github.com/repos/aperloff/TreeMaker/subscribers","subscription_url":"https://api.github.com/repos/aperloff/TreeMaker/subscription","commits_url":"https://api.github.com/repos/aperloff/TreeMaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/aperloff/TreeMaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/aperloff/TreeMaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/aperloff/TreeMaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/aperloff/TreeMaker/contents/{+path}","compare_url":"https://api.github.com/repos/aperloff/TreeMaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aperloff/TreeMaker/merges","archive_url":"https://api.github.com/repos/aperloff/TreeMaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aperloff/TreeMaker/downloads","issues_url":"https://api.github.com/repos/aperloff/TreeMaker/issues{/number}","pulls_url":"https://api.github.com/repos/aperloff/TreeMaker/pulls{/number}","milestones_url":"https://api.github.com/repos/aperloff/TreeMaker/milestones{/number}","notifications_url":"https://api.github.com/repos/aperloff/TreeMaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aperloff/TreeMaker/labels{/name}","releases_url":"https://api.github.com/repos/aperloff/TreeMaker/releases{/id}","deployments_url":"https://api.github.com/repos/aperloff/TreeMaker/deployments","created_at":"2018-03-21T16:43:33Z","updated_at":"2018-09-24T20:16:45Z","pushed_at":"2018-11-08T00:03:02Z","git_url":"git://github.com/aperloff/TreeMaker.git","ssh_url":"git@github.com:aperloff/TreeMaker.git","clone_url":"https://github.com/aperloff/TreeMaker.git","svn_url":"https://github.com/aperloff/TreeMaker","homepage":null,"size":152406,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"Run2_2017"}},"base":{"label":"TreeMaker:Run2_2017","ref":"Run2_2017","sha":"ab823d146d3d1d7a0de099e14df712e86244096b","user":{"login":"TreeMaker","id":10514034,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTE0MDM0","avatar_url":"https://avatars0.githubusercontent.com/u/10514034?v=4","gravatar_id":"","url":"https://api.github.com/users/TreeMaker","html_url":"https://github.com/TreeMaker","followers_url":"https://api.github.com/users/TreeMaker/followers","following_url":"https://api.github.com/users/TreeMaker/following{/other_user}","gists_url":"https://api.github.com/users/TreeMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/TreeMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TreeMaker/subscriptions","organizations_url":"https://api.github.com/users/TreeMaker/orgs","repos_url":"https://api.github.com/users/TreeMaker/repos","events_url":"https://api.github.com/users/TreeMaker/events{/privacy}","received_events_url":"https://api.github.com/users/TreeMaker/received_events","type":"Organization","site_admin":false},"repo":{"id":29192343,"node_id":"MDEwOlJlcG9zaXRvcnkyOTE5MjM0Mw==","name":"TreeMaker","full_name":"TreeMaker/TreeMaker","private":false,"owner":{"login":"TreeMaker","id":10514034,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTE0MDM0","avatar_url":"https://avatars0.githubusercontent.com/u/10514034?v=4","gravatar_id":"","url":"https://api.github.com/users/TreeMaker","html_url":"https://github.com/TreeMaker","followers_url":"https://api.github.com/users/TreeMaker/followers","following_url":"https://api.github.com/users/TreeMaker/following{/other_user}","gists_url":"https://api.github.com/users/TreeMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/TreeMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TreeMaker/subscriptions","organizations_url":"https://api.github.com/users/TreeMaker/orgs","repos_url":"https://api.github.com/users/TreeMaker/repos","events_url":"https://api.github.com/users/TreeMaker/events{/privacy}","received_events_url":"https://api.github.com/users/TreeMaker/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TreeMaker/TreeMaker","description":"Generic Treemaker","fork":false,"url":"https://api.github.com/repos/TreeMaker/TreeMaker","forks_url":"https://api.github.com/repos/TreeMaker/TreeMaker/forks","keys_url":"https://api.github.com/repos/TreeMaker/TreeMaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TreeMaker/TreeMaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TreeMaker/TreeMaker/teams","hooks_url":"https://api.github.com/repos/TreeMaker/TreeMaker/hooks","issue_events_url":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/events{/number}","events_url":"https://api.github.com/repos/TreeMaker/TreeMaker/events","assignees_url":"https://api.github.com/repos/TreeMaker/TreeMaker/assignees{/user}","branches_url":"https://api.github.com/repos/TreeMaker/TreeMaker/branches{/branch}","tags_url":"https://api.github.com/repos/TreeMaker/TreeMaker/tags","blobs_url":"https://api.github.com/repos/TreeMaker/TreeMaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TreeMaker/TreeMaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TreeMaker/TreeMaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/TreeMaker/TreeMaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TreeMaker/TreeMaker/statuses/{sha}","languages_url":"https://api.github.com/repos/TreeMaker/TreeMaker/languages","stargazers_url":"https://api.github.com/repos/TreeMaker/TreeMaker/stargazers","contributors_url":"https://api.github.com/repos/TreeMaker/TreeMaker/contributors","subscribers_url":"https://api.github.com/repos/TreeMaker/TreeMaker/subscribers","subscription_url":"https://api.github.com/repos/TreeMaker/TreeMaker/subscription","commits_url":"https://api.github.com/repos/TreeMaker/TreeMaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/TreeMaker/TreeMaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/TreeMaker/TreeMaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/TreeMaker/TreeMaker/contents/{+path}","compare_url":"https://api.github.com/repos/TreeMaker/TreeMaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TreeMaker/TreeMaker/merges","archive_url":"https://api.github.com/repos/TreeMaker/TreeMaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TreeMaker/TreeMaker/downloads","issues_url":"https://api.github.com/repos/TreeMaker/TreeMaker/issues{/number}","pulls_url":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls{/number}","milestones_url":"https://api.github.com/repos/TreeMaker/TreeMaker/milestones{/number}","notifications_url":"https://api.github.com/repos/TreeMaker/TreeMaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TreeMaker/TreeMaker/labels{/name}","releases_url":"https://api.github.com/repos/TreeMaker/TreeMaker/releases{/id}","deployments_url":"https://api.github.com/repos/TreeMaker/TreeMaker/deployments","created_at":"2015-01-13T13:59:30Z","updated_at":"2018-11-07T15:06:55Z","pushed_at":"2018-11-08T00:03:04Z","git_url":"git://github.com/TreeMaker/TreeMaker.git","ssh_url":"git@github.com:TreeMaker/TreeMaker.git","clone_url":"https://github.com/TreeMaker/TreeMaker.git","svn_url":"https://github.com/TreeMaker/TreeMaker","homepage":null,"size":151896,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":33,"open_issues":6,"watchers":4,"default_branch":"Run2_2017"}},"_links":{"self":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364"},"html":{"href":"https://github.com/TreeMaker/TreeMaker/pull/364"},"issue":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/364"},"comments":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/issues/364/comments"},"review_comments":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364/comments"},"review_comment":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/pulls/364/commits"},"statuses":{"href":"https://api.github.com/repos/TreeMaker/TreeMaker/statuses/55ad9c9632a11abd7ec4e7ddffb924924aecc77c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kpedro88"}}