{"action":"opened","number":16253,"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253","id":89849307,"html_url":"https://github.com/cms-sw/cmssw/pull/16253","diff_url":"https://github.com/cms-sw/cmssw/pull/16253.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/16253.patch","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/16253","number":16253,"state":"open","locked":false,"title":"New PopCon handler for dealing with B ON/OFF transitions, with test analyzer for EcalADCToGeVConstants","user":{"login":"diguida","id":5444102,"avatar_url":"https://avatars.githubusercontent.com/u/5444102?v=3","gravatar_id":"","url":"https://api.github.com/users/diguida","html_url":"https://github.com/diguida","followers_url":"https://api.github.com/users/diguida/followers","following_url":"https://api.github.com/users/diguida/following{/other_user}","gists_url":"https://api.github.com/users/diguida/gists{/gist_id}","starred_url":"https://api.github.com/users/diguida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diguida/subscriptions","organizations_url":"https://api.github.com/users/diguida/orgs","repos_url":"https://api.github.com/users/diguida/repos","events_url":"https://api.github.com/users/diguida/events{/privacy}","received_events_url":"https://api.github.com/users/diguida/received_events","type":"User","site_admin":false},"body":"This code enables to automatically handle condition changes in case of magnetic field transitions using `PopCon` modules. It was developed during 2015.\r\n\r\nThe new analyzer requires as template arguments:\r\n* the payload class\r\n\r\nThe new handler does the following:\r\n\r\n1. it retrieves the value of the magnet current from the `RunInfo` payload relative to the IOV valid for the run defined in the configuration\r\n1. it compares the average current with the threshold set by the user in the configuration\r\n1. it loads the IOV from the target and the reference tags valid for the run defined in the configuration: the reference tag is chosen from the configuration according to the comparison of the above step\r\n1. it compares the target and the reference payload hashes using a virtual method: endusers can override it, as they know how to assess whether or not two condition payloads are the same\r\n1. if the payloads are different, it writes the reference payload into the target tag using `PopCon`.\r\n\r\nA complete example is provided for the `EcalADCToGeVConstant` class.\r\n\r\n@mmusich @franzoni this is something you might want to watch as well.","created_at":"2016-10-18T16:13:23Z","updated_at":"2016-10-18T16:13:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253/commits","review_comments_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253/comments","review_comment_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/16253/comments","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/1e89c4b0192f05c9f10f5425b80dea841e35764d","head":{"label":"diguida:BTransition_PopCon_81X_v1","ref":"BTransition_PopCon_81X_v1","sha":"1e89c4b0192f05c9f10f5425b80dea841e35764d","user":{"login":"diguida","id":5444102,"avatar_url":"https://avatars.githubusercontent.com/u/5444102?v=3","gravatar_id":"","url":"https://api.github.com/users/diguida","html_url":"https://github.com/diguida","followers_url":"https://api.github.com/users/diguida/followers","following_url":"https://api.github.com/users/diguida/following{/other_user}","gists_url":"https://api.github.com/users/diguida/gists{/gist_id}","starred_url":"https://api.github.com/users/diguida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diguida/subscriptions","organizations_url":"https://api.github.com/users/diguida/orgs","repos_url":"https://api.github.com/users/diguida/repos","events_url":"https://api.github.com/users/diguida/events{/privacy}","received_events_url":"https://api.github.com/users/diguida/received_events","type":"User","site_admin":false},"repo":{"id":13623200,"name":"cmssw","full_name":"diguida/cmssw","owner":{"login":"diguida","id":5444102,"avatar_url":"https://avatars.githubusercontent.com/u/5444102?v=3","gravatar_id":"","url":"https://api.github.com/users/diguida","html_url":"https://github.com/diguida","followers_url":"https://api.github.com/users/diguida/followers","following_url":"https://api.github.com/users/diguida/following{/other_user}","gists_url":"https://api.github.com/users/diguida/gists{/gist_id}","starred_url":"https://api.github.com/users/diguida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diguida/subscriptions","organizations_url":"https://api.github.com/users/diguida/orgs","repos_url":"https://api.github.com/users/diguida/repos","events_url":"https://api.github.com/users/diguida/events{/privacy}","received_events_url":"https://api.github.com/users/diguida/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diguida/cmssw","description":"CMS Offline Software","fork":true,"url":"https://api.github.com/repos/diguida/cmssw","forks_url":"https://api.github.com/repos/diguida/cmssw/forks","keys_url":"https://api.github.com/repos/diguida/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diguida/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diguida/cmssw/teams","hooks_url":"https://api.github.com/repos/diguida/cmssw/hooks","issue_events_url":"https://api.github.com/repos/diguida/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/diguida/cmssw/events","assignees_url":"https://api.github.com/repos/diguida/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/diguida/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/diguida/cmssw/tags","blobs_url":"https://api.github.com/repos/diguida/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diguida/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diguida/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/diguida/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diguida/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/diguida/cmssw/languages","stargazers_url":"https://api.github.com/repos/diguida/cmssw/stargazers","contributors_url":"https://api.github.com/repos/diguida/cmssw/contributors","subscribers_url":"https://api.github.com/repos/diguida/cmssw/subscribers","subscription_url":"https://api.github.com/repos/diguida/cmssw/subscription","commits_url":"https://api.github.com/repos/diguida/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/diguida/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/diguida/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/diguida/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/diguida/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/diguida/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diguida/cmssw/merges","archive_url":"https://api.github.com/repos/diguida/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diguida/cmssw/downloads","issues_url":"https://api.github.com/repos/diguida/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/diguida/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/diguida/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/diguida/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diguida/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/diguida/cmssw/releases{/id}","deployments_url":"https://api.github.com/repos/diguida/cmssw/deployments","created_at":"2013-10-16T15:35:03Z","updated_at":"2014-09-30T17:09:28Z","pushed_at":"2016-10-18T16:00:18Z","git_url":"git://github.com/diguida/cmssw.git","ssh_url":"git@github.com:diguida/cmssw.git","clone_url":"https://github.com/diguida/cmssw.git","svn_url":"https://github.com/diguida/cmssw","homepage":"cms-sw.github.io/cmssw","size":837223,"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":"CMSSW_8_1_X"}},"base":{"label":"cms-sw:CMSSW_8_1_X","ref":"CMSSW_8_1_X","sha":"46c7c4d0822a25d294e63ed1c213d1fe58f5427a","user":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"repo":{"id":10969551,"name":"cmssw","full_name":"cms-sw/cmssw","owner":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-sw/cmssw","description":"CMS Offline Software","fork":false,"url":"https://api.github.com/repos/cms-sw/cmssw","forks_url":"https://api.github.com/repos/cms-sw/cmssw/forks","keys_url":"https://api.github.com/repos/cms-sw/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-sw/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-sw/cmssw/teams","hooks_url":"https://api.github.com/repos/cms-sw/cmssw/hooks","issue_events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/cms-sw/cmssw/events","assignees_url":"https://api.github.com/repos/cms-sw/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/cms-sw/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/cms-sw/cmssw/tags","blobs_url":"https://api.github.com/repos/cms-sw/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-sw/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-sw/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-sw/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-sw/cmssw/languages","stargazers_url":"https://api.github.com/repos/cms-sw/cmssw/stargazers","contributors_url":"https://api.github.com/repos/cms-sw/cmssw/contributors","subscribers_url":"https://api.github.com/repos/cms-sw/cmssw/subscribers","subscription_url":"https://api.github.com/repos/cms-sw/cmssw/subscription","commits_url":"https://api.github.com/repos/cms-sw/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-sw/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-sw/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/cms-sw/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-sw/cmssw/merges","archive_url":"https://api.github.com/repos/cms-sw/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-sw/cmssw/downloads","issues_url":"https://api.github.com/repos/cms-sw/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/cms-sw/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-sw/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-sw/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-sw/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/cms-sw/cmssw/releases{/id}","deployments_url":"https://api.github.com/repos/cms-sw/cmssw/deployments","created_at":"2013-06-26T14:09:07Z","updated_at":"2016-10-16T23:34:27Z","pushed_at":"2016-10-18T16:12:59Z","git_url":"git://github.com/cms-sw/cmssw.git","ssh_url":"git@github.com:cms-sw/cmssw.git","clone_url":"https://github.com/cms-sw/cmssw.git","svn_url":"https://github.com/cms-sw/cmssw","homepage":"http://cms-sw.github.io/","size":1112821,"stargazers_count":349,"watchers_count":349,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2001,"mirror_url":null,"open_issues_count":372,"forks":2001,"open_issues":372,"watchers":349,"default_branch":"CMSSW_8_1_X"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253"},"html":{"href":"https://github.com/cms-sw/cmssw/pull/16253"},"issue":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/16253"},"comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/16253/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/16253/commits"},"statuses":{"href":"https://api.github.com/repos/cms-sw/cmssw/statuses/1e89c4b0192f05c9f10f5425b80dea841e35764d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":295,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"diguida"}}