{"action":"created","comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/53804757","id":53804757,"diff_hunk":"@@ -0,0 +1,50 @@\n+/**\n+ * Copyright 2016 Heiko Burau\n+ *\n+ * This file is part of PIConGPU.\n+ *\n+ * PIConGPU is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * PIConGPU is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with PIConGPU.\n+ * If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+#pragma once\n+\n+namespace picongpu\n+{\n+namespace particleDetector\n+{\n+\n+/** Map theta and phi into [0,1] respectively. These ranges correspond to\n+ * the normalized histogram range of the detector (0: first bin, 1: last bin).\n+ * Out-of-range values are mapped to the first or the last bin.\n+ *\n+ * Useful for tuning the spacial detector resolution.\n+ *\n+ * \\param theta -maxTheta...maxTheta\n+ * \\param phi -maxPhi...maxPhi\n+ * \\param maxTheta maximum value of angle theta\n+ * \\param maxPhi maximum value of angle phi\n+ * \\return Two values within [-1,1]\n+ */\n+HDINLINE float2_X mapThetaPhiToNormedRange(const float_X theta,\n+                                           const float_X phi,","path":"src/picongpu/include/simulation_defines/param/particleDetector.param","position":41,"original_position":41,"commit_id":"bba18337b644a5e453e176605f175e3a26b00fec","original_commit_id":"bba18337b644a5e453e176605f175e3a26b00fec","user":{"login":"PrometheusPi","id":5121158,"avatar_url":"https://avatars.githubusercontent.com/u/5121158?v=3","gravatar_id":"","url":"https://api.github.com/users/PrometheusPi","html_url":"https://github.com/PrometheusPi","followers_url":"https://api.github.com/users/PrometheusPi/followers","following_url":"https://api.github.com/users/PrometheusPi/following{/other_user}","gists_url":"https://api.github.com/users/PrometheusPi/gists{/gist_id}","starred_url":"https://api.github.com/users/PrometheusPi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrometheusPi/subscriptions","organizations_url":"https://api.github.com/users/PrometheusPi/orgs","repos_url":"https://api.github.com/users/PrometheusPi/repos","events_url":"https://api.github.com/users/PrometheusPi/events{/privacy}","received_events_url":"https://api.github.com/users/PrometheusPi/received_events","type":"User","site_admin":false},"body":"Why  do you put this quite general method into a param file?","created_at":"2016-02-23T16:22:57Z","updated_at":"2016-02-23T16:22:57Z","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376#discussion_r53804757","pull_request_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376","_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments/53804757"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376#discussion_r53804757"},"pull_request":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376"}}},"pull_request":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376","id":59425059,"html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376","diff_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376.diff","patch_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376.patch","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1376","number":1376,"state":"open","locked":false,"title":"Feature: Calorimeter Plugin","user":{"login":"Heikman","id":5159590,"avatar_url":"https://avatars.githubusercontent.com/u/5159590?v=3","gravatar_id":"","url":"https://api.github.com/users/Heikman","html_url":"https://github.com/Heikman","followers_url":"https://api.github.com/users/Heikman/followers","following_url":"https://api.github.com/users/Heikman/following{/other_user}","gists_url":"https://api.github.com/users/Heikman/gists{/gist_id}","starred_url":"https://api.github.com/users/Heikman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heikman/subscriptions","organizations_url":"https://api.github.com/users/Heikman/orgs","repos_url":"https://api.github.com/users/Heikman/repos","events_url":"https://api.github.com/users/Heikman/events{/privacy}","received_events_url":"https://api.github.com/users/Heikman/received_events","type":"User","site_admin":false},"body":"Adds the particle ~~detector~~ calorimeter plugin.\r\nSee the [wiki entry](https://github.com/ComputationalRadiationPhysics/picongpu/wiki/Plugin%3A-ParticleDetector) for a detailed description.\r\n\r\nDependencies:\r\n- [x] #1375 \r\n- [x] #1374 \r\n- [x] #1363 \r\n\r\nTested with #1354. The spectrum has also been tested against a python script.","created_at":"2016-02-15T23:24:01Z","updated_at":"2016-02-23T16:22:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70b766ba8828f990b4a3475c530465a76437f713","assignee":{"login":"PrometheusPi","id":5121158,"avatar_url":"https://avatars.githubusercontent.com/u/5121158?v=3","gravatar_id":"","url":"https://api.github.com/users/PrometheusPi","html_url":"https://github.com/PrometheusPi","followers_url":"https://api.github.com/users/PrometheusPi/followers","following_url":"https://api.github.com/users/PrometheusPi/following{/other_user}","gists_url":"https://api.github.com/users/PrometheusPi/gists{/gist_id}","starred_url":"https://api.github.com/users/PrometheusPi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrometheusPi/subscriptions","organizations_url":"https://api.github.com/users/PrometheusPi/orgs","repos_url":"https://api.github.com/users/PrometheusPi/repos","events_url":"https://api.github.com/users/PrometheusPi/events{/privacy}","received_events_url":"https://api.github.com/users/PrometheusPi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/2","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/milestones/Open%20Beta","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/2/labels","id":395839,"number":2,"title":"Open Beta","description":"Tasks to complete until the release of our open beta (version 0.1)\r\n\r\nThe [beta](https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta) release shall be useful for *physicist* that used a Particle-in-Cell code *before*. Experience with *compiling libraries from source* and a *good Linux knowledge* is required for the initial installation.\r\n","creator":{"login":"ax3l","id":1353258,"avatar_url":"https://avatars.githubusercontent.com/u/1353258?v=3","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"open_issues":159,"closed_issues":1119,"state":"open","created_at":"2013-08-06T16:38:57Z","updated_at":"2016-02-22T17:13:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376/commits","review_comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376/comments","review_comment_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1376/comments","statuses_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/bba18337b644a5e453e176605f175e3a26b00fec","head":{"label":"Heikman:feat-ParticleDetector","ref":"feat-ParticleDetector","sha":"bba18337b644a5e453e176605f175e3a26b00fec","user":{"login":"Heikman","id":5159590,"avatar_url":"https://avatars.githubusercontent.com/u/5159590?v=3","gravatar_id":"","url":"https://api.github.com/users/Heikman","html_url":"https://github.com/Heikman","followers_url":"https://api.github.com/users/Heikman/followers","following_url":"https://api.github.com/users/Heikman/following{/other_user}","gists_url":"https://api.github.com/users/Heikman/gists{/gist_id}","starred_url":"https://api.github.com/users/Heikman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heikman/subscriptions","organizations_url":"https://api.github.com/users/Heikman/orgs","repos_url":"https://api.github.com/users/Heikman/repos","events_url":"https://api.github.com/users/Heikman/events{/privacy}","received_events_url":"https://api.github.com/users/Heikman/received_events","type":"User","site_admin":false},"repo":{"id":12133878,"name":"picongpu","full_name":"Heikman/picongpu","owner":{"login":"Heikman","id":5159590,"avatar_url":"https://avatars.githubusercontent.com/u/5159590?v=3","gravatar_id":"","url":"https://api.github.com/users/Heikman","html_url":"https://github.com/Heikman","followers_url":"https://api.github.com/users/Heikman/followers","following_url":"https://api.github.com/users/Heikman/following{/other_user}","gists_url":"https://api.github.com/users/Heikman/gists{/gist_id}","starred_url":"https://api.github.com/users/Heikman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heikman/subscriptions","organizations_url":"https://api.github.com/users/Heikman/orgs","repos_url":"https://api.github.com/users/Heikman/repos","events_url":"https://api.github.com/users/Heikman/events{/privacy}","received_events_url":"https://api.github.com/users/Heikman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Heikman/picongpu","description":"PIConGPU - A particle-in-cell code for GPGPUs","fork":true,"url":"https://api.github.com/repos/Heikman/picongpu","forks_url":"https://api.github.com/repos/Heikman/picongpu/forks","keys_url":"https://api.github.com/repos/Heikman/picongpu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Heikman/picongpu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Heikman/picongpu/teams","hooks_url":"https://api.github.com/repos/Heikman/picongpu/hooks","issue_events_url":"https://api.github.com/repos/Heikman/picongpu/issues/events{/number}","events_url":"https://api.github.com/repos/Heikman/picongpu/events","assignees_url":"https://api.github.com/repos/Heikman/picongpu/assignees{/user}","branches_url":"https://api.github.com/repos/Heikman/picongpu/branches{/branch}","tags_url":"https://api.github.com/repos/Heikman/picongpu/tags","blobs_url":"https://api.github.com/repos/Heikman/picongpu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Heikman/picongpu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Heikman/picongpu/git/refs{/sha}","trees_url":"https://api.github.com/repos/Heikman/picongpu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Heikman/picongpu/statuses/{sha}","languages_url":"https://api.github.com/repos/Heikman/picongpu/languages","stargazers_url":"https://api.github.com/repos/Heikman/picongpu/stargazers","contributors_url":"https://api.github.com/repos/Heikman/picongpu/contributors","subscribers_url":"https://api.github.com/repos/Heikman/picongpu/subscribers","subscription_url":"https://api.github.com/repos/Heikman/picongpu/subscription","commits_url":"https://api.github.com/repos/Heikman/picongpu/commits{/sha}","git_commits_url":"https://api.github.com/repos/Heikman/picongpu/git/commits{/sha}","comments_url":"https://api.github.com/repos/Heikman/picongpu/comments{/number}","issue_comment_url":"https://api.github.com/repos/Heikman/picongpu/issues/comments{/number}","contents_url":"https://api.github.com/repos/Heikman/picongpu/contents/{+path}","compare_url":"https://api.github.com/repos/Heikman/picongpu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Heikman/picongpu/merges","archive_url":"https://api.github.com/repos/Heikman/picongpu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Heikman/picongpu/downloads","issues_url":"https://api.github.com/repos/Heikman/picongpu/issues{/number}","pulls_url":"https://api.github.com/repos/Heikman/picongpu/pulls{/number}","milestones_url":"https://api.github.com/repos/Heikman/picongpu/milestones{/number}","notifications_url":"https://api.github.com/repos/Heikman/picongpu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Heikman/picongpu/labels{/name}","releases_url":"https://api.github.com/repos/Heikman/picongpu/releases{/id}","deployments_url":"https://api.github.com/repos/Heikman/picongpu/deployments","created_at":"2013-08-15T12:28:22Z","updated_at":"2014-06-12T11:22:44Z","pushed_at":"2016-02-23T15:10:08Z","git_url":"git://github.com/Heikman/picongpu.git","ssh_url":"git@github.com:Heikman/picongpu.git","clone_url":"https://github.com/Heikman/picongpu.git","svn_url":"https://github.com/Heikman/picongpu","homepage":"http://picongpu.hzdr.de","size":10536,"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":"master"}},"base":{"label":"ComputationalRadiationPhysics:dev","ref":"dev","sha":"73befbda38bfec86561aeca666a816dd5d1a8e9a","user":{"login":"ComputationalRadiationPhysics","id":5120388,"avatar_url":"https://avatars.githubusercontent.com/u/5120388?v=3","gravatar_id":"","url":"https://api.github.com/users/ComputationalRadiationPhysics","html_url":"https://github.com/ComputationalRadiationPhysics","followers_url":"https://api.github.com/users/ComputationalRadiationPhysics/followers","following_url":"https://api.github.com/users/ComputationalRadiationPhysics/following{/other_user}","gists_url":"https://api.github.com/users/ComputationalRadiationPhysics/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputationalRadiationPhysics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputationalRadiationPhysics/subscriptions","organizations_url":"https://api.github.com/users/ComputationalRadiationPhysics/orgs","repos_url":"https://api.github.com/users/ComputationalRadiationPhysics/repos","events_url":"https://api.github.com/users/ComputationalRadiationPhysics/events{/privacy}","received_events_url":"https://api.github.com/users/ComputationalRadiationPhysics/received_events","type":"Organization","site_admin":false},"repo":{"id":11764461,"name":"picongpu","full_name":"ComputationalRadiationPhysics/picongpu","owner":{"login":"ComputationalRadiationPhysics","id":5120388,"avatar_url":"https://avatars.githubusercontent.com/u/5120388?v=3","gravatar_id":"","url":"https://api.github.com/users/ComputationalRadiationPhysics","html_url":"https://github.com/ComputationalRadiationPhysics","followers_url":"https://api.github.com/users/ComputationalRadiationPhysics/followers","following_url":"https://api.github.com/users/ComputationalRadiationPhysics/following{/other_user}","gists_url":"https://api.github.com/users/ComputationalRadiationPhysics/gists{/gist_id}","starred_url":"https://api.github.com/users/ComputationalRadiationPhysics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComputationalRadiationPhysics/subscriptions","organizations_url":"https://api.github.com/users/ComputationalRadiationPhysics/orgs","repos_url":"https://api.github.com/users/ComputationalRadiationPhysics/repos","events_url":"https://api.github.com/users/ComputationalRadiationPhysics/events{/privacy}","received_events_url":"https://api.github.com/users/ComputationalRadiationPhysics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ComputationalRadiationPhysics/picongpu","description":"PIConGPU - A particle-in-cell code for GPGPUs","fork":false,"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu","forks_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/forks","keys_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/teams","hooks_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/hooks","issue_events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/events{/number}","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/events","assignees_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/assignees{/user}","branches_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/branches{/branch}","tags_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/tags","blobs_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/refs{/sha}","trees_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/{sha}","languages_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/languages","stargazers_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/stargazers","contributors_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/contributors","subscribers_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/subscribers","subscription_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/subscription","commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/commits{/sha}","git_commits_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/git/commits{/sha}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/comments{/number}","issue_comment_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/comments{/number}","contents_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/contents/{+path}","compare_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/merges","archive_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/downloads","issues_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues{/number}","pulls_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls{/number}","milestones_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones{/number}","notifications_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels{/name}","releases_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/releases{/id}","deployments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/deployments","created_at":"2013-07-30T12:28:20Z","updated_at":"2016-02-16T21:38:18Z","pushed_at":"2016-02-23T15:10:09Z","git_url":"git://github.com/ComputationalRadiationPhysics/picongpu.git","ssh_url":"git@github.com:ComputationalRadiationPhysics/picongpu.git","clone_url":"https://github.com/ComputationalRadiationPhysics/picongpu.git","svn_url":"https://github.com/ComputationalRadiationPhysics/picongpu","homepage":"http://picongpu.hzdr.de","size":11144,"stargazers_count":147,"watchers_count":147,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":234,"forks":76,"open_issues":234,"watchers":147,"default_branch":"release-0.1.2"}},"_links":{"self":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376"},"html":{"href":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1376"},"issue":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1376"},"comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1376/comments"},"review_comments":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376/comments"},"review_comment":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1376/commits"},"statuses":{"href":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/statuses/bba18337b644a5e453e176605f175e3a26b00fec"}}}}