{"action":"created","issue":{"url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/554","repository_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers","labels_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/554/comments","events_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/554/events","html_url":"https://github.com/UCATLAS/xAODAnaHelpers/pull/554","id":142782882,"number":554,"title":"Adding JetCharge","user":{"login":"johnda102","id":7108106,"avatar_url":"https://avatars.githubusercontent.com/u/7108106?v=3","gravatar_id":"","url":"https://api.github.com/users/johnda102","html_url":"https://github.com/johnda102","followers_url":"https://api.github.com/users/johnda102/followers","following_url":"https://api.github.com/users/johnda102/following{/other_user}","gists_url":"https://api.github.com/users/johnda102/gists{/gist_id}","starred_url":"https://api.github.com/users/johnda102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnda102/subscriptions","organizations_url":"https://api.github.com/users/johnda102/orgs","repos_url":"https://api.github.com/users/johnda102/repos","events_url":"https://api.github.com/users/johnda102/events{/privacy}","received_events_url":"https://api.github.com/users/johnda102/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-22T21:14:14Z","updated_at":"2016-03-22T21:57:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/pulls/554","html_url":"https://github.com/UCATLAS/xAODAnaHelpers/pull/554","diff_url":"https://github.com/UCATLAS/xAODAnaHelpers/pull/554.diff","patch_url":"https://github.com/UCATLAS/xAODAnaHelpers/pull/554.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/comments/200049368","html_url":"https://github.com/UCATLAS/xAODAnaHelpers/pull/554#issuecomment-200049368","issue_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/554","id":200049368,"user":{"login":"kratsg","id":761483,"avatar_url":"https://avatars.githubusercontent.com/u/761483?v=3","gravatar_id":"","url":"https://api.github.com/users/kratsg","html_url":"https://github.com/kratsg","followers_url":"https://api.github.com/users/kratsg/followers","following_url":"https://api.github.com/users/kratsg/following{/other_user}","gists_url":"https://api.github.com/users/kratsg/gists{/gist_id}","starred_url":"https://api.github.com/users/kratsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kratsg/subscriptions","organizations_url":"https://api.github.com/users/kratsg/orgs","repos_url":"https://api.github.com/users/kratsg/repos","events_url":"https://api.github.com/users/kratsg/events{/privacy}","received_events_url":"https://api.github.com/users/kratsg/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T21:57:11Z","updated_at":"2016-03-22T21:57:11Z","body":"> static SG::AuxElement::ConstAccessor jetCharge (\"Charge\");\r\n> std::cout << \"comp \" << charge_calculator.result(jet_itr) << \" \" << jetCharge(jet_itr) << \" diff \" << charge_calculator.result(jet_itr)-jetCharge(jet_itr) << std::endl;\r\n\r\nShouldn't that be\r\n\r\n```\r\nstatic SG::AuxElement::ConstAccessor<float> jetCharge(\"Charge\");\r\n```\r\n\r\nalso, you can do `jet->getAttribute<float>(\"Charge\")` instead for a quick convenience."}}