{"action":"closed","number":636,"pull_request":{"url":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636","id":143112659,"html_url":"https://github.com/FairRootGroup/FairRoot/pull/636","diff_url":"https://github.com/FairRootGroup/FairRoot/pull/636.diff","patch_url":"https://github.com/FairRootGroup/FairRoot/pull/636.patch","issue_url":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/636","number":636,"state":"closed","locked":false,"title":"Ability to register/retrieve data of any type with IO manager","user":{"login":"sawenzel","id":3536753,"avatar_url":"https://avatars1.githubusercontent.com/u/3536753?v=4","gravatar_id":"","url":"https://api.github.com/users/sawenzel","html_url":"https://github.com/sawenzel","followers_url":"https://api.github.com/users/sawenzel/followers","following_url":"https://api.github.com/users/sawenzel/following{/other_user}","gists_url":"https://api.github.com/users/sawenzel/gists{/gist_id}","starred_url":"https://api.github.com/users/sawenzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawenzel/subscriptions","organizations_url":"https://api.github.com/users/sawenzel/orgs","repos_url":"https://api.github.com/users/sawenzel/repos","events_url":"https://api.github.com/users/sawenzel/events{/privacy}","received_events_url":"https://api.github.com/users/sawenzel/received_events","type":"User","site_admin":false},"body":"This commit provides a major extension to the FairRootManager, enabling\r\nthe user to register branches based on arbitrary types.\r\nIn particular, it is now possible to register stl containers as branch\r\nentries, extending the current TObject* or TCollection* APIs.\r\n\r\nInstant gratification:\r\n```\r\n// some source registering data\r\nauto ioman = FairRootManager::Instance();\r\nstd::vector<CustomData>* data;\r\nioman->RegisterAny(\"mybranch\", data, ...);\r\n```\r\n\r\n```\r\n// some consumer task asking for the data\r\nauto ioman = FairRootManager::Instance();\r\nauto mydata = ioman->InitObjectAs<std::vector<CustomData> const*>(\"mybranch\");\r\n```\r\n\r\nThe example \"simulation/Tutorial2\" was extended accordingly showing use cases\r\nwith persistent and non-persistent branches.\r\n\r\nThe IO to ROOT trees works as before. It was checked that splitting of branches\r\nbased on std::vectors still works the same way as for TClonesArrays.\r\n\r\nThe user has to create dictionaries for any entry she wants to put into\r\na persistent branch.\r\n\r\nFurther notes:\r\n  a) the new mechanism does not use folders; Hence the persistent branches\r\n     have to be created explictly (done in FairMCApplication for the moment)\r\n  b) the commit is incompletely in many ways; It demonstrates correct working\r\n     for a simple FileSource\r\n  c) Existing API is fully preserved. The user can use the traditional API as well\r\n     as the new API at the same time.\r\n  d) The new API imposes that input data obtained from InitObjectAs is unmodifiable","created_at":"2017-09-26T11:48:04Z","updated_at":"2017-10-05T13:33:07Z","closed_at":"2017-10-05T13:33:07Z","merged_at":"2017-10-05T13:33:07Z","merge_commit_sha":"e6042fb30aed40d118f3d91389747956b33446f3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636/commits","review_comments_url":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636/comments","review_comment_url":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/636/comments","statuses_url":"https://api.github.com/repos/FairRootGroup/FairRoot/statuses/4e744546bce425f1035f236b30ad2e03506977bd","head":{"label":"sawenzel:swenzel/new","ref":"swenzel/new","sha":"4e744546bce425f1035f236b30ad2e03506977bd","user":{"login":"sawenzel","id":3536753,"avatar_url":"https://avatars1.githubusercontent.com/u/3536753?v=4","gravatar_id":"","url":"https://api.github.com/users/sawenzel","html_url":"https://github.com/sawenzel","followers_url":"https://api.github.com/users/sawenzel/followers","following_url":"https://api.github.com/users/sawenzel/following{/other_user}","gists_url":"https://api.github.com/users/sawenzel/gists{/gist_id}","starred_url":"https://api.github.com/users/sawenzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawenzel/subscriptions","organizations_url":"https://api.github.com/users/sawenzel/orgs","repos_url":"https://api.github.com/users/sawenzel/repos","events_url":"https://api.github.com/users/sawenzel/events{/privacy}","received_events_url":"https://api.github.com/users/sawenzel/received_events","type":"User","site_admin":false},"repo":{"id":54198715,"name":"FairRoot","full_name":"sawenzel/FairRoot","owner":{"login":"sawenzel","id":3536753,"avatar_url":"https://avatars1.githubusercontent.com/u/3536753?v=4","gravatar_id":"","url":"https://api.github.com/users/sawenzel","html_url":"https://github.com/sawenzel","followers_url":"https://api.github.com/users/sawenzel/followers","following_url":"https://api.github.com/users/sawenzel/following{/other_user}","gists_url":"https://api.github.com/users/sawenzel/gists{/gist_id}","starred_url":"https://api.github.com/users/sawenzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawenzel/subscriptions","organizations_url":"https://api.github.com/users/sawenzel/orgs","repos_url":"https://api.github.com/users/sawenzel/repos","events_url":"https://api.github.com/users/sawenzel/events{/privacy}","received_events_url":"https://api.github.com/users/sawenzel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sawenzel/FairRoot","description":null,"fork":true,"url":"https://api.github.com/repos/sawenzel/FairRoot","forks_url":"https://api.github.com/repos/sawenzel/FairRoot/forks","keys_url":"https://api.github.com/repos/sawenzel/FairRoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sawenzel/FairRoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sawenzel/FairRoot/teams","hooks_url":"https://api.github.com/repos/sawenzel/FairRoot/hooks","issue_events_url":"https://api.github.com/repos/sawenzel/FairRoot/issues/events{/number}","events_url":"https://api.github.com/repos/sawenzel/FairRoot/events","assignees_url":"https://api.github.com/repos/sawenzel/FairRoot/assignees{/user}","branches_url":"https://api.github.com/repos/sawenzel/FairRoot/branches{/branch}","tags_url":"https://api.github.com/repos/sawenzel/FairRoot/tags","blobs_url":"https://api.github.com/repos/sawenzel/FairRoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sawenzel/FairRoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sawenzel/FairRoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/sawenzel/FairRoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sawenzel/FairRoot/statuses/{sha}","languages_url":"https://api.github.com/repos/sawenzel/FairRoot/languages","stargazers_url":"https://api.github.com/repos/sawenzel/FairRoot/stargazers","contributors_url":"https://api.github.com/repos/sawenzel/FairRoot/contributors","subscribers_url":"https://api.github.com/repos/sawenzel/FairRoot/subscribers","subscription_url":"https://api.github.com/repos/sawenzel/FairRoot/subscription","commits_url":"https://api.github.com/repos/sawenzel/FairRoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/sawenzel/FairRoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/sawenzel/FairRoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/sawenzel/FairRoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/sawenzel/FairRoot/contents/{+path}","compare_url":"https://api.github.com/repos/sawenzel/FairRoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sawenzel/FairRoot/merges","archive_url":"https://api.github.com/repos/sawenzel/FairRoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sawenzel/FairRoot/downloads","issues_url":"https://api.github.com/repos/sawenzel/FairRoot/issues{/number}","pulls_url":"https://api.github.com/repos/sawenzel/FairRoot/pulls{/number}","milestones_url":"https://api.github.com/repos/sawenzel/FairRoot/milestones{/number}","notifications_url":"https://api.github.com/repos/sawenzel/FairRoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sawenzel/FairRoot/labels{/name}","releases_url":"https://api.github.com/repos/sawenzel/FairRoot/releases{/id}","deployments_url":"https://api.github.com/repos/sawenzel/FairRoot/deployments","created_at":"2016-03-18T12:13:42Z","updated_at":"2016-03-18T12:13:44Z","pushed_at":"2017-10-05T08:13:17Z","git_url":"git://github.com/sawenzel/FairRoot.git","ssh_url":"git@github.com:sawenzel/FairRoot.git","clone_url":"https://github.com/sawenzel/FairRoot.git","svn_url":"https://github.com/sawenzel/FairRoot","homepage":"http://fairroot.gsi.de","size":59114,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"FairRootGroup:dev","ref":"dev","sha":"f1513f5169d335c17ccdfdb27f0f0c4edbeb8b65","user":{"login":"FairRootGroup","id":6390728,"avatar_url":"https://avatars0.githubusercontent.com/u/6390728?v=4","gravatar_id":"","url":"https://api.github.com/users/FairRootGroup","html_url":"https://github.com/FairRootGroup","followers_url":"https://api.github.com/users/FairRootGroup/followers","following_url":"https://api.github.com/users/FairRootGroup/following{/other_user}","gists_url":"https://api.github.com/users/FairRootGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/FairRootGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FairRootGroup/subscriptions","organizations_url":"https://api.github.com/users/FairRootGroup/orgs","repos_url":"https://api.github.com/users/FairRootGroup/repos","events_url":"https://api.github.com/users/FairRootGroup/events{/privacy}","received_events_url":"https://api.github.com/users/FairRootGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":15936129,"name":"FairRoot","full_name":"FairRootGroup/FairRoot","owner":{"login":"FairRootGroup","id":6390728,"avatar_url":"https://avatars0.githubusercontent.com/u/6390728?v=4","gravatar_id":"","url":"https://api.github.com/users/FairRootGroup","html_url":"https://github.com/FairRootGroup","followers_url":"https://api.github.com/users/FairRootGroup/followers","following_url":"https://api.github.com/users/FairRootGroup/following{/other_user}","gists_url":"https://api.github.com/users/FairRootGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/FairRootGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FairRootGroup/subscriptions","organizations_url":"https://api.github.com/users/FairRootGroup/orgs","repos_url":"https://api.github.com/users/FairRootGroup/repos","events_url":"https://api.github.com/users/FairRootGroup/events{/privacy}","received_events_url":"https://api.github.com/users/FairRootGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FairRootGroup/FairRoot","description":null,"fork":false,"url":"https://api.github.com/repos/FairRootGroup/FairRoot","forks_url":"https://api.github.com/repos/FairRootGroup/FairRoot/forks","keys_url":"https://api.github.com/repos/FairRootGroup/FairRoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FairRootGroup/FairRoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FairRootGroup/FairRoot/teams","hooks_url":"https://api.github.com/repos/FairRootGroup/FairRoot/hooks","issue_events_url":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/events{/number}","events_url":"https://api.github.com/repos/FairRootGroup/FairRoot/events","assignees_url":"https://api.github.com/repos/FairRootGroup/FairRoot/assignees{/user}","branches_url":"https://api.github.com/repos/FairRootGroup/FairRoot/branches{/branch}","tags_url":"https://api.github.com/repos/FairRootGroup/FairRoot/tags","blobs_url":"https://api.github.com/repos/FairRootGroup/FairRoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FairRootGroup/FairRoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FairRootGroup/FairRoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/FairRootGroup/FairRoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FairRootGroup/FairRoot/statuses/{sha}","languages_url":"https://api.github.com/repos/FairRootGroup/FairRoot/languages","stargazers_url":"https://api.github.com/repos/FairRootGroup/FairRoot/stargazers","contributors_url":"https://api.github.com/repos/FairRootGroup/FairRoot/contributors","subscribers_url":"https://api.github.com/repos/FairRootGroup/FairRoot/subscribers","subscription_url":"https://api.github.com/repos/FairRootGroup/FairRoot/subscription","commits_url":"https://api.github.com/repos/FairRootGroup/FairRoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/FairRootGroup/FairRoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/FairRootGroup/FairRoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/FairRootGroup/FairRoot/contents/{+path}","compare_url":"https://api.github.com/repos/FairRootGroup/FairRoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FairRootGroup/FairRoot/merges","archive_url":"https://api.github.com/repos/FairRootGroup/FairRoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FairRootGroup/FairRoot/downloads","issues_url":"https://api.github.com/repos/FairRootGroup/FairRoot/issues{/number}","pulls_url":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls{/number}","milestones_url":"https://api.github.com/repos/FairRootGroup/FairRoot/milestones{/number}","notifications_url":"https://api.github.com/repos/FairRootGroup/FairRoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FairRootGroup/FairRoot/labels{/name}","releases_url":"https://api.github.com/repos/FairRootGroup/FairRoot/releases{/id}","deployments_url":"https://api.github.com/repos/FairRootGroup/FairRoot/deployments","created_at":"2014-01-15T13:38:57Z","updated_at":"2017-09-24T15:51:03Z","pushed_at":"2017-10-05T13:33:07Z","git_url":"git://github.com/FairRootGroup/FairRoot.git","ssh_url":"git@github.com:FairRootGroup/FairRoot.git","clone_url":"https://github.com/FairRootGroup/FairRoot.git","svn_url":"https://github.com/FairRootGroup/FairRoot","homepage":"http://fairroot.gsi.de","size":169663,"stargazers_count":24,"watchers_count":24,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":55,"mirror_url":null,"open_issues_count":20,"forks":55,"open_issues":20,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636"},"html":{"href":"https://github.com/FairRootGroup/FairRoot/pull/636"},"issue":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/636"},"comments":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/issues/636/comments"},"review_comments":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636/comments"},"review_comment":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/pulls/636/commits"},"statuses":{"href":"https://api.github.com/repos/FairRootGroup/FairRoot/statuses/4e744546bce425f1035f236b30ad2e03506977bd"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"MohammadAlTurany","id":5942635,"avatar_url":"https://avatars2.githubusercontent.com/u/5942635?v=4","gravatar_id":"","url":"https://api.github.com/users/MohammadAlTurany","html_url":"https://github.com/MohammadAlTurany","followers_url":"https://api.github.com/users/MohammadAlTurany/followers","following_url":"https://api.github.com/users/MohammadAlTurany/following{/other_user}","gists_url":"https://api.github.com/users/MohammadAlTurany/gists{/gist_id}","starred_url":"https://api.github.com/users/MohammadAlTurany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohammadAlTurany/subscriptions","organizations_url":"https://api.github.com/users/MohammadAlTurany/orgs","repos_url":"https://api.github.com/users/MohammadAlTurany/repos","events_url":"https://api.github.com/users/MohammadAlTurany/events{/privacy}","received_events_url":"https://api.github.com/users/MohammadAlTurany/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":473,"deletions":22,"changed_files":17}}
{"actor":{"display_login":"MohammadAlTurany"}}