{"action":"created","issue":{"url":"https://api.github.com/repos/vallot/CATTools/issues/463","repository_url":"https://api.github.com/repos/vallot/CATTools","labels_url":"https://api.github.com/repos/vallot/CATTools/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/vallot/CATTools/issues/463/comments","events_url":"https://api.github.com/repos/vallot/CATTools/issues/463/events","html_url":"https://github.com/vallot/CATTools/pull/463","id":138457596,"number":463,"title":"GenWeight dataformat","user":{"login":"jhgoh","id":4388926,"avatar_url":"https://avatars.githubusercontent.com/u/4388926?v=3","gravatar_id":"","url":"https://api.github.com/users/jhgoh","html_url":"https://github.com/jhgoh","followers_url":"https://api.github.com/users/jhgoh/followers","following_url":"https://api.github.com/users/jhgoh/following{/other_user}","gists_url":"https://api.github.com/users/jhgoh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhgoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhgoh/subscriptions","organizations_url":"https://api.github.com/users/jhgoh/orgs","repos_url":"https://api.github.com/users/jhgoh/repos","events_url":"https://api.github.com/users/jhgoh/events{/privacy}","received_events_url":"https://api.github.com/users/jhgoh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vallot/CATTools/labels/production","name":"production","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/vallot/CATTools/milestones/12","html_url":"https://github.com/vallot/CATTools/milestones/Next%20production","labels_url":"https://api.github.com/repos/vallot/CATTools/milestones/12/labels","id":1577344,"number":12,"title":"Next production","description":"","creator":{"login":"jhgoh","id":4388926,"avatar_url":"https://avatars.githubusercontent.com/u/4388926?v=3","gravatar_id":"","url":"https://api.github.com/users/jhgoh","html_url":"https://github.com/jhgoh","followers_url":"https://api.github.com/users/jhgoh/followers","following_url":"https://api.github.com/users/jhgoh/following{/other_user}","gists_url":"https://api.github.com/users/jhgoh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhgoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhgoh/subscriptions","organizations_url":"https://api.github.com/users/jhgoh/orgs","repos_url":"https://api.github.com/users/jhgoh/repos","events_url":"https://api.github.com/users/jhgoh/events{/privacy}","received_events_url":"https://api.github.com/users/jhgoh/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-02-11T11:07:46Z","updated_at":"2016-03-04T11:56:52Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-04T11:56:52Z","updated_at":"2016-03-04T16:20:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vallot/CATTools/pulls/463","html_url":"https://github.com/vallot/CATTools/pull/463","diff_url":"https://github.com/vallot/CATTools/pull/463.diff","patch_url":"https://github.com/vallot/CATTools/pull/463.patch"},"body":"This PR adds new dataformat for generator level weights - packs up genWeight stuffs into member variables.\r\n\r\nMain features:\r\n\r\n- Scale weights are split into \"scaleUp\" and \"scaleDown\" and the unphysical up+down combinations are dropped, thus users can easily apply scale weights in their analysis codes.\r\n- Parameters for each weight items are stored in the run, GenWeightInfo class to retrieve the information.\r\n\r\n```\r\nedmDumpEventContent --run catTuple.root \r\nType                   Module        Label     Process   \r\n---------------------------------------------------------\r\ncat::GenWeightInfo     \"genWeight\"   \"\"        \"CAT\"     \r\n```\r\n\r\n```\r\nedmDumpEventContent  catTuple.root \r\nType                                  Module                   Label             Process   \r\n-------------------------------------------------------------------------------------------\r\ncat::GenWeights                       \"genWeight\"              \"\"                \"CAT\"     \r\n```\r\n\r\nSize is somehow large, but I think we have much more gain in convenience.\r\ncatGenWeights_genWeight__CAT. 1275.31 905.21\r\n"},"comment":{"url":"https://api.github.com/repos/vallot/CATTools/issues/comments/192341290","html_url":"https://github.com/vallot/CATTools/pull/463#issuecomment-192341290","issue_url":"https://api.github.com/repos/vallot/CATTools/issues/463","id":192341290,"user":{"login":"jhgoh","id":4388926,"avatar_url":"https://avatars.githubusercontent.com/u/4388926?v=3","gravatar_id":"","url":"https://api.github.com/users/jhgoh","html_url":"https://github.com/jhgoh","followers_url":"https://api.github.com/users/jhgoh/followers","following_url":"https://api.github.com/users/jhgoh/following{/other_user}","gists_url":"https://api.github.com/users/jhgoh/gists{/gist_id}","starred_url":"https://api.github.com/users/jhgoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhgoh/subscriptions","organizations_url":"https://api.github.com/users/jhgoh/orgs","repos_url":"https://api.github.com/users/jhgoh/repos","events_url":"https://api.github.com/users/jhgoh/events{/privacy}","received_events_url":"https://api.github.com/users/jhgoh/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T16:20:13Z","updated_at":"2016-03-04T16:20:13Z","body":"To be more precise,\r\n```xml\r\n<weightgroup combine=\"envelope\" name=\"scale_variation\">\r\n<weight id=\"1001\"> muR=1 muF=1 hdamp=mt=172.5 </weight>\r\n<weight id=\"1002\"> muR=1 muF=2 hdamp=mt=172.5 </weight>\r\n<weight id=\"1003\"> muR=1 muF=0.5 hdamp=mt=172.5 </weight>\r\n<weight id=\"1004\"> muR=2 muF=1 hdamp=mt=172.5 </weight>\r\n<weight id=\"1005\"> muR=2 muF=2 hdamp=mt=172.5 </weight>\r\n<weight id=\"1006\"> muR=2 muF=0.5 hdamp=mt=172.5 </weight>\r\n<weight id=\"1007\"> muR=0.5 muF=1 hdamp=mt=172.5 </weight>\r\n<weight id=\"1008\"> muR=0.5 muF=2 hdamp=mt=172.5 </weight>\r\n<weight id=\"1009\"> muR=0.5 muF=0.5 hdamp=mt=172.5 </weight>\r\n</weightgroup>\r\n```\r\n\r\nFor the powheg sample what we are using. This ordering is not guaranteed but let us just assume it to be stable."}}