{"action":"created","comment":{"url":"https://api.github.com/repos/root-mirror/root/pulls/comments/84011199","pull_request_review_id":4815550,"id":84011199,"diff_hunk":"@@ -0,0 +1,216 @@\n+// @(#)root/hist:$Id$\n+// Author: Benjamin Bannier, August 2016\n+\n+/*************************************************************************\n+ * Copyright (C) 1995-2016, Rene Brun and Fons Rademakers.               *\n+ * All rights reserved.                                                  *\n+ *                                                                       *\n+ * For the licensing terms see $ROOTSYS/LICENSE.                         *\n+ * For the list of contributors see $ROOTSYS/README/CREDITS.             *\n+ *************************************************************************/\n+\n+#include \"THnChain.h\"\n+\n+#include \"TArray.h\"\n+#include \"TAxis.h\"\n+#include \"TDirectory.h\"\n+#include \"TFile.h\"\n+#include \"TH1.h\"\n+#include \"TH2.h\"\n+#include \"TH3.h\"\n+#include \"THnBase.h\"\n+#include \"TMath.h\"\n+#include \"TMetaUtils.h\"\n+\n+void THnChain::AddFile(const char* fileName)\n+{\n+   fFiles.emplace_back(fileName);\n+\n+   // Initialize axes from first seen instance.\n+   if (fAxes.empty()) {\n+      THnBase* hs = ReadHistogram(fileName);\n+\n+      if (hs) {\n+         const Int_t naxes = hs->GetNdimensions();\n+         for (Int_t i = 0; i < naxes; ++i) {\n+            fAxes.push_back(hs->GetAxis(i));\n+         }\n+      }","path":"hist/hist/src/THnChain.cxx","position":38,"original_position":38,"commit_id":"6b001bb1cb28ba838b4ab2fb7a479b08dd6ee8dc","original_commit_id":"6b001bb1cb28ba838b4ab2fb7a479b08dd6ee8dc","user":{"login":"bbannier","id":324957,"avatar_url":"https://avatars.githubusercontent.com/u/324957?v=3","gravatar_id":"","url":"https://api.github.com/users/bbannier","html_url":"https://github.com/bbannier","followers_url":"https://api.github.com/users/bbannier/followers","following_url":"https://api.github.com/users/bbannier/following{/other_user}","gists_url":"https://api.github.com/users/bbannier/gists{/gist_id}","starred_url":"https://api.github.com/users/bbannier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbannier/subscriptions","organizations_url":"https://api.github.com/users/bbannier/orgs","repos_url":"https://api.github.com/users/bbannier/repos","events_url":"https://api.github.com/users/bbannier/events{/privacy}","received_events_url":"https://api.github.com/users/bbannier/received_events","type":"User","site_admin":false},"body":"I went `Warning` here. Makes sense?","created_at":"2016-10-19T07:33:10Z","updated_at":"2016-10-19T07:33:11Z","html_url":"https://github.com/root-mirror/root/pull/212#discussion_r84011199","pull_request_url":"https://api.github.com/repos/root-mirror/root/pulls/212","_links":{"self":{"href":"https://api.github.com/repos/root-mirror/root/pulls/comments/84011199"},"html":{"href":"https://github.com/root-mirror/root/pull/212#discussion_r84011199"},"pull_request":{"href":"https://api.github.com/repos/root-mirror/root/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/root-mirror/root/pulls/212","id":80364990,"html_url":"https://github.com/root-mirror/root/pull/212","diff_url":"https://github.com/root-mirror/root/pull/212.diff","patch_url":"https://github.com/root-mirror/root/pull/212.patch","issue_url":"https://api.github.com/repos/root-mirror/root/issues/212","number":212,"state":"open","locked":false,"title":"Added TChain-like interface to THnBase histograms.","user":{"login":"bbannier","id":324957,"avatar_url":"https://avatars.githubusercontent.com/u/324957?v=3","gravatar_id":"","url":"https://api.github.com/users/bbannier","html_url":"https://github.com/bbannier","followers_url":"https://api.github.com/users/bbannier/followers","following_url":"https://api.github.com/users/bbannier/following{/other_user}","gists_url":"https://api.github.com/users/bbannier/gists{/gist_id}","starred_url":"https://api.github.com/users/bbannier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbannier/subscriptions","organizations_url":"https://api.github.com/users/bbannier/orgs","repos_url":"https://api.github.com/users/bbannier/repos","events_url":"https://api.github.com/users/bbannier/events{/privacy}","received_events_url":"https://api.github.com/users/bbannier/received_events","type":"User","site_admin":false},"body":"This allows to interactively adjust histogram parameters before\r\nperforming a projection to a lower dimensional representation.\r\n\r\nThis patch implements ROOT-4515.\r\n\r\nA unit test is being added in root-mirror/roottest/pull/6.","created_at":"2016-08-07T11:41:53Z","updated_at":"2016-10-19T07:33:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a93fc2264a180beba1cefb34f062547885482a6f","assignee":{"login":"karies","id":144675,"avatar_url":"https://avatars.githubusercontent.com/u/144675?v=3","gravatar_id":"","url":"https://api.github.com/users/karies","html_url":"https://github.com/karies","followers_url":"https://api.github.com/users/karies/followers","following_url":"https://api.github.com/users/karies/following{/other_user}","gists_url":"https://api.github.com/users/karies/gists{/gist_id}","starred_url":"https://api.github.com/users/karies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karies/subscriptions","organizations_url":"https://api.github.com/users/karies/orgs","repos_url":"https://api.github.com/users/karies/repos","events_url":"https://api.github.com/users/karies/events{/privacy}","received_events_url":"https://api.github.com/users/karies/received_events","type":"User","site_admin":false},"assignees":[{"login":"karies","id":144675,"avatar_url":"https://avatars.githubusercontent.com/u/144675?v=3","gravatar_id":"","url":"https://api.github.com/users/karies","html_url":"https://github.com/karies","followers_url":"https://api.github.com/users/karies/followers","following_url":"https://api.github.com/users/karies/following{/other_user}","gists_url":"https://api.github.com/users/karies/gists{/gist_id}","starred_url":"https://api.github.com/users/karies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karies/subscriptions","organizations_url":"https://api.github.com/users/karies/orgs","repos_url":"https://api.github.com/users/karies/repos","events_url":"https://api.github.com/users/karies/events{/privacy}","received_events_url":"https://api.github.com/users/karies/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/root-mirror/root/pulls/212/commits","review_comments_url":"https://api.github.com/repos/root-mirror/root/pulls/212/comments","review_comment_url":"https://api.github.com/repos/root-mirror/root/pulls/comments{/number}","comments_url":"https://api.github.com/repos/root-mirror/root/issues/212/comments","statuses_url":"https://api.github.com/repos/root-mirror/root/statuses/6b001bb1cb28ba838b4ab2fb7a479b08dd6ee8dc","head":{"label":"bbannier:t/THnChain_squashed","ref":"t/THnChain_squashed","sha":"6b001bb1cb28ba838b4ab2fb7a479b08dd6ee8dc","user":{"login":"bbannier","id":324957,"avatar_url":"https://avatars.githubusercontent.com/u/324957?v=3","gravatar_id":"","url":"https://api.github.com/users/bbannier","html_url":"https://github.com/bbannier","followers_url":"https://api.github.com/users/bbannier/followers","following_url":"https://api.github.com/users/bbannier/following{/other_user}","gists_url":"https://api.github.com/users/bbannier/gists{/gist_id}","starred_url":"https://api.github.com/users/bbannier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbannier/subscriptions","organizations_url":"https://api.github.com/users/bbannier/orgs","repos_url":"https://api.github.com/users/bbannier/repos","events_url":"https://api.github.com/users/bbannier/events{/privacy}","received_events_url":"https://api.github.com/users/bbannier/received_events","type":"User","site_admin":false},"repo":{"id":65128479,"name":"root-1","full_name":"bbannier/root-1","owner":{"login":"bbannier","id":324957,"avatar_url":"https://avatars.githubusercontent.com/u/324957?v=3","gravatar_id":"","url":"https://api.github.com/users/bbannier","html_url":"https://github.com/bbannier","followers_url":"https://api.github.com/users/bbannier/followers","following_url":"https://api.github.com/users/bbannier/following{/other_user}","gists_url":"https://api.github.com/users/bbannier/gists{/gist_id}","starred_url":"https://api.github.com/users/bbannier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbannier/subscriptions","organizations_url":"https://api.github.com/users/bbannier/orgs","repos_url":"https://api.github.com/users/bbannier/repos","events_url":"https://api.github.com/users/bbannier/events{/privacy}","received_events_url":"https://api.github.com/users/bbannier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbannier/root-1","description":"Mirror of official ROOT git repository","fork":true,"url":"https://api.github.com/repos/bbannier/root-1","forks_url":"https://api.github.com/repos/bbannier/root-1/forks","keys_url":"https://api.github.com/repos/bbannier/root-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbannier/root-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbannier/root-1/teams","hooks_url":"https://api.github.com/repos/bbannier/root-1/hooks","issue_events_url":"https://api.github.com/repos/bbannier/root-1/issues/events{/number}","events_url":"https://api.github.com/repos/bbannier/root-1/events","assignees_url":"https://api.github.com/repos/bbannier/root-1/assignees{/user}","branches_url":"https://api.github.com/repos/bbannier/root-1/branches{/branch}","tags_url":"https://api.github.com/repos/bbannier/root-1/tags","blobs_url":"https://api.github.com/repos/bbannier/root-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbannier/root-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbannier/root-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbannier/root-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbannier/root-1/statuses/{sha}","languages_url":"https://api.github.com/repos/bbannier/root-1/languages","stargazers_url":"https://api.github.com/repos/bbannier/root-1/stargazers","contributors_url":"https://api.github.com/repos/bbannier/root-1/contributors","subscribers_url":"https://api.github.com/repos/bbannier/root-1/subscribers","subscription_url":"https://api.github.com/repos/bbannier/root-1/subscription","commits_url":"https://api.github.com/repos/bbannier/root-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbannier/root-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbannier/root-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbannier/root-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbannier/root-1/contents/{+path}","compare_url":"https://api.github.com/repos/bbannier/root-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbannier/root-1/merges","archive_url":"https://api.github.com/repos/bbannier/root-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbannier/root-1/downloads","issues_url":"https://api.github.com/repos/bbannier/root-1/issues{/number}","pulls_url":"https://api.github.com/repos/bbannier/root-1/pulls{/number}","milestones_url":"https://api.github.com/repos/bbannier/root-1/milestones{/number}","notifications_url":"https://api.github.com/repos/bbannier/root-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbannier/root-1/labels{/name}","releases_url":"https://api.github.com/repos/bbannier/root-1/releases{/id}","deployments_url":"https://api.github.com/repos/bbannier/root-1/deployments","created_at":"2016-08-07T10:50:22Z","updated_at":"2016-08-07T10:51:22Z","pushed_at":"2016-08-28T10:44:10Z","git_url":"git://github.com/bbannier/root-1.git","ssh_url":"git@github.com:bbannier/root-1.git","clone_url":"https://github.com/bbannier/root-1.git","svn_url":"https://github.com/bbannier/root-1","homepage":"http://root.cern.ch","size":593128,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"root-mirror:master","ref":"master","sha":"4baffbf342703f796ed46acaa214b8421e41bbca","user":{"login":"root-mirror","id":4849136,"avatar_url":"https://avatars.githubusercontent.com/u/4849136?v=3","gravatar_id":"","url":"https://api.github.com/users/root-mirror","html_url":"https://github.com/root-mirror","followers_url":"https://api.github.com/users/root-mirror/followers","following_url":"https://api.github.com/users/root-mirror/following{/other_user}","gists_url":"https://api.github.com/users/root-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/root-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-mirror/subscriptions","organizations_url":"https://api.github.com/users/root-mirror/orgs","repos_url":"https://api.github.com/users/root-mirror/repos","events_url":"https://api.github.com/users/root-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/root-mirror/received_events","type":"Organization","site_admin":false},"repo":{"id":10994345,"name":"root","full_name":"root-mirror/root","owner":{"login":"root-mirror","id":4849136,"avatar_url":"https://avatars.githubusercontent.com/u/4849136?v=3","gravatar_id":"","url":"https://api.github.com/users/root-mirror","html_url":"https://github.com/root-mirror","followers_url":"https://api.github.com/users/root-mirror/followers","following_url":"https://api.github.com/users/root-mirror/following{/other_user}","gists_url":"https://api.github.com/users/root-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/root-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/root-mirror/subscriptions","organizations_url":"https://api.github.com/users/root-mirror/orgs","repos_url":"https://api.github.com/users/root-mirror/repos","events_url":"https://api.github.com/users/root-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/root-mirror/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/root-mirror/root","description":"Mirror of official ROOT git repository","fork":false,"url":"https://api.github.com/repos/root-mirror/root","forks_url":"https://api.github.com/repos/root-mirror/root/forks","keys_url":"https://api.github.com/repos/root-mirror/root/keys{/key_id}","collaborators_url":"https://api.github.com/repos/root-mirror/root/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/root-mirror/root/teams","hooks_url":"https://api.github.com/repos/root-mirror/root/hooks","issue_events_url":"https://api.github.com/repos/root-mirror/root/issues/events{/number}","events_url":"https://api.github.com/repos/root-mirror/root/events","assignees_url":"https://api.github.com/repos/root-mirror/root/assignees{/user}","branches_url":"https://api.github.com/repos/root-mirror/root/branches{/branch}","tags_url":"https://api.github.com/repos/root-mirror/root/tags","blobs_url":"https://api.github.com/repos/root-mirror/root/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/root-mirror/root/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/root-mirror/root/git/refs{/sha}","trees_url":"https://api.github.com/repos/root-mirror/root/git/trees{/sha}","statuses_url":"https://api.github.com/repos/root-mirror/root/statuses/{sha}","languages_url":"https://api.github.com/repos/root-mirror/root/languages","stargazers_url":"https://api.github.com/repos/root-mirror/root/stargazers","contributors_url":"https://api.github.com/repos/root-mirror/root/contributors","subscribers_url":"https://api.github.com/repos/root-mirror/root/subscribers","subscription_url":"https://api.github.com/repos/root-mirror/root/subscription","commits_url":"https://api.github.com/repos/root-mirror/root/commits{/sha}","git_commits_url":"https://api.github.com/repos/root-mirror/root/git/commits{/sha}","comments_url":"https://api.github.com/repos/root-mirror/root/comments{/number}","issue_comment_url":"https://api.github.com/repos/root-mirror/root/issues/comments{/number}","contents_url":"https://api.github.com/repos/root-mirror/root/contents/{+path}","compare_url":"https://api.github.com/repos/root-mirror/root/compare/{base}...{head}","merges_url":"https://api.github.com/repos/root-mirror/root/merges","archive_url":"https://api.github.com/repos/root-mirror/root/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/root-mirror/root/downloads","issues_url":"https://api.github.com/repos/root-mirror/root/issues{/number}","pulls_url":"https://api.github.com/repos/root-mirror/root/pulls{/number}","milestones_url":"https://api.github.com/repos/root-mirror/root/milestones{/number}","notifications_url":"https://api.github.com/repos/root-mirror/root/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/root-mirror/root/labels{/name}","releases_url":"https://api.github.com/repos/root-mirror/root/releases{/id}","deployments_url":"https://api.github.com/repos/root-mirror/root/deployments","created_at":"2013-06-27T10:46:59Z","updated_at":"2016-10-17T17:34:50Z","pushed_at":"2016-10-18T15:42:53Z","git_url":"git://github.com/root-mirror/root.git","ssh_url":"git@github.com:root-mirror/root.git","clone_url":"https://github.com/root-mirror/root.git","svn_url":"https://github.com/root-mirror/root","homepage":"http://root.cern.ch","size":1303507,"stargazers_count":238,"watchers_count":238,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":33,"forks":184,"open_issues":33,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/root-mirror/root/pulls/212"},"html":{"href":"https://github.com/root-mirror/root/pull/212"},"issue":{"href":"https://api.github.com/repos/root-mirror/root/issues/212"},"comments":{"href":"https://api.github.com/repos/root-mirror/root/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/root-mirror/root/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/root-mirror/root/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/root-mirror/root/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/root-mirror/root/statuses/6b001bb1cb28ba838b4ab2fb7a479b08dd6ee8dc"}}}}
{"actor":{"display_login":"bbannier"}}