{"action":"created","comment":{"url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/comments/30598037","id":30598037,"diff_hunk":"@@ -15,34 +15,198 @@ void LikelihoodInputAnalyser::analyse(const EventPtr event) {\n \n \tweight_ = event->weight();\n \ttreeMan_->setCurrentFolder(histogramFolder_);\n+\tunsigned int parton = 0;\n+\tdouble CSV;\n+\n+\tconst JetCollection AllJets(event->Jets());\n+\tconst JetCollection jets(event->CleanedJets());\n+\tconst JetCollection bjets(event->CleanedBJets());\n+\t// const JetCollection genJets( event->GenJets() );\n+\n+\tMETAlgorithm::value metType = (METAlgorithm::value) 0;\n+\tconst METPointer met(event->MET(metType));\n+\n+\tif (event->isSemiLeptonicElectron() || event->isSemiLeptonicMuon()){\n+\t\tfor ( unsigned int AllJetIndex=0; AllJetIndex < AllJets.size(); ++AllJetIndex ) {\n+\n+\t\t\tJetPointer AllJet = AllJets[AllJetIndex];\n+\n+\t\t\tif (AllJet->matched_parton() == 0) continue;//if null pointer\n+\n+\t\t\tparton = abs(AllJet->matched_parton()->pdgId());\n+\t\t\tCSV = AllJet->getBTagDiscriminator(BAT::BtagAlgorithm::value::CombinedSecondaryVertexV2);\n+\n+\n+\t\t\t// Look at matched generator jets <----------- something im working on (lookiong at differences between jet pt and gen jet pt etc)\n+\t\t\t// const ParticlePointer genJet = AllJet->matched_generated_jet();\n+\t\t\t// if ( genJet != 0 ) {\n+\t\t\t// \ttreeMan_->Fill(\"genJetPt\",genJet->pt());\n+\t\t\t// \ttreeMan_->Fill(\"genJetEta\",genJet->eta());\n+\t\t\t// \ttreeMan_->Fill(\"JetPt\", AllJet->pt());\n+\t\t\t// \ttreeMan_->Fill(\"JetEta\", AllJet->eta());\n+\t\t\t// }\n+\n+\n+\t\t\tif ( abs(CSV) >= 11 ){\n+\t\t\t\tcout << \"CSV : \" << CSV << \" Run Number : \" << event->runnumber() << \" Event Number : \" << event->eventnumber() << \" Lumi Number : \" << event->lumiblock() << endl;\n+\t\t\t\t// event->inspect(); //For more info on events failing\n+\t\t\t\tcontinue;\n+\t\t\t\t}\n+\n+\t\t\tif ( (parton >= 1 && parton <= 4) || (parton == 21) ){\n+\t\t\t\ttreeMan_->Fill(\"LightJets\", CSV);\n+\t\t\t\t// cout << \"LightJet CSV : \" << CSV << endl;\n+\t\t\t\tif ( CSV == -10 ){\n+\t\t\t\t\ttreeMan_->Fill(\"LightJetPt\", AllJet->getFourVector().Pt());\n+\t\t\t\t\ttreeMan_->Fill(\"LightJetEta\", AllJet->getFourVector().Eta());","path":"src/Analysers/LikelihoodInputAnalyser.cpp","position":47,"original_position":47,"commit_id":"0f83874d8ff8c84e0e7e805d8fe351d1764ee2a1","original_commit_id":"0f83874d8ff8c84e0e7e805d8fe351d1764ee2a1","user":{"login":"EmyrClement","id":4438699,"avatar_url":"https://avatars.githubusercontent.com/u/4438699?v=3","gravatar_id":"","url":"https://api.github.com/users/EmyrClement","html_url":"https://github.com/EmyrClement","followers_url":"https://api.github.com/users/EmyrClement/followers","following_url":"https://api.github.com/users/EmyrClement/following{/other_user}","gists_url":"https://api.github.com/users/EmyrClement/gists{/gist_id}","starred_url":"https://api.github.com/users/EmyrClement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmyrClement/subscriptions","organizations_url":"https://api.github.com/users/EmyrClement/orgs","repos_url":"https://api.github.com/users/EmyrClement/repos","events_url":"https://api.github.com/users/EmyrClement/events{/privacy}","received_events_url":"https://api.github.com/users/EmyrClement/received_events","type":"User","site_admin":false},"body":"Remove these plots for now?  A bit misleading if you fill a branch called \"LightJetPt\" and only jets that have weird CSV are considered.","created_at":"2015-05-19T13:27:22Z","updated_at":"2015-05-19T13:27:22Z","html_url":"https://github.com/EmyrClement/AnalysisSoftware/pull/2#discussion_r30598037","pull_request_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/comments/30598037"},"html":{"href":"https://github.com/EmyrClement/AnalysisSoftware/pull/2#discussion_r30598037"},"pull_request":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2","id":35222148,"html_url":"https://github.com/EmyrClement/AnalysisSoftware/pull/2","diff_url":"https://github.com/EmyrClement/AnalysisSoftware/pull/2.diff","patch_url":"https://github.com/EmyrClement/AnalysisSoftware/pull/2.patch","issue_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/2","number":2,"state":"open","locked":false,"title":"New","user":{"login":"DouglasBurns","id":9131578,"avatar_url":"https://avatars.githubusercontent.com/u/9131578?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasBurns","html_url":"https://github.com/DouglasBurns","followers_url":"https://api.github.com/users/DouglasBurns/followers","following_url":"https://api.github.com/users/DouglasBurns/following{/other_user}","gists_url":"https://api.github.com/users/DouglasBurns/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasBurns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasBurns/subscriptions","organizations_url":"https://api.github.com/users/DouglasBurns/orgs","repos_url":"https://api.github.com/users/DouglasBurns/repos","events_url":"https://api.github.com/users/DouglasBurns/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasBurns/received_events","type":"User","site_admin":false},"body":"Pull request if you want...","created_at":"2015-05-12T12:45:00Z","updated_at":"2015-05-19T13:27:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3729bca35a7ef8c00c9ae4bc24efde4cb190976e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2/commits","review_comments_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2/comments","review_comment_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/2/comments","statuses_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/statuses/0f83874d8ff8c84e0e7e805d8fe351d1764ee2a1","head":{"label":"DouglasBurns:New","ref":"New","sha":"0f83874d8ff8c84e0e7e805d8fe351d1764ee2a1","user":{"login":"DouglasBurns","id":9131578,"avatar_url":"https://avatars.githubusercontent.com/u/9131578?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasBurns","html_url":"https://github.com/DouglasBurns","followers_url":"https://api.github.com/users/DouglasBurns/followers","following_url":"https://api.github.com/users/DouglasBurns/following{/other_user}","gists_url":"https://api.github.com/users/DouglasBurns/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasBurns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasBurns/subscriptions","organizations_url":"https://api.github.com/users/DouglasBurns/orgs","repos_url":"https://api.github.com/users/DouglasBurns/repos","events_url":"https://api.github.com/users/DouglasBurns/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasBurns/received_events","type":"User","site_admin":false},"repo":{"id":30251518,"name":"AnalysisSoftware","full_name":"DouglasBurns/AnalysisSoftware","owner":{"login":"DouglasBurns","id":9131578,"avatar_url":"https://avatars.githubusercontent.com/u/9131578?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasBurns","html_url":"https://github.com/DouglasBurns","followers_url":"https://api.github.com/users/DouglasBurns/followers","following_url":"https://api.github.com/users/DouglasBurns/following{/other_user}","gists_url":"https://api.github.com/users/DouglasBurns/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasBurns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasBurns/subscriptions","organizations_url":"https://api.github.com/users/DouglasBurns/orgs","repos_url":"https://api.github.com/users/DouglasBurns/repos","events_url":"https://api.github.com/users/DouglasBurns/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasBurns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DouglasBurns/AnalysisSoftware","description":"Analysis software for particle physics analysis","fork":true,"url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware","forks_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/forks","keys_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/teams","hooks_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/hooks","issue_events_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/issues/events{/number}","events_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/events","assignees_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/assignees{/user}","branches_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/branches{/branch}","tags_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/tags","blobs_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/git/refs{/sha}","trees_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/statuses/{sha}","languages_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/languages","stargazers_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/stargazers","contributors_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/contributors","subscribers_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/subscribers","subscription_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/subscription","commits_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/commits{/sha}","git_commits_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/git/commits{/sha}","comments_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/comments{/number}","issue_comment_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/issues/comments{/number}","contents_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/contents/{+path}","compare_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/merges","archive_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/downloads","issues_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/issues{/number}","pulls_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/pulls{/number}","milestones_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/milestones{/number}","notifications_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/labels{/name}","releases_url":"https://api.github.com/repos/DouglasBurns/AnalysisSoftware/releases{/id}","created_at":"2015-02-03T16:11:15Z","updated_at":"2015-02-03T16:11:16Z","pushed_at":"2015-05-19T12:32:42Z","git_url":"git://github.com/DouglasBurns/AnalysisSoftware.git","ssh_url":"git@github.com:DouglasBurns/AnalysisSoftware.git","clone_url":"https://github.com/DouglasBurns/AnalysisSoftware.git","svn_url":"https://github.com/DouglasBurns/AnalysisSoftware","homepage":null,"size":77130,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EmyrClement:LikelihoodInfo","ref":"LikelihoodInfo","sha":"76afc4e08433234a1a9d01d79f54ded5e3bf71cb","user":{"login":"EmyrClement","id":4438699,"avatar_url":"https://avatars.githubusercontent.com/u/4438699?v=3","gravatar_id":"","url":"https://api.github.com/users/EmyrClement","html_url":"https://github.com/EmyrClement","followers_url":"https://api.github.com/users/EmyrClement/followers","following_url":"https://api.github.com/users/EmyrClement/following{/other_user}","gists_url":"https://api.github.com/users/EmyrClement/gists{/gist_id}","starred_url":"https://api.github.com/users/EmyrClement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmyrClement/subscriptions","organizations_url":"https://api.github.com/users/EmyrClement/orgs","repos_url":"https://api.github.com/users/EmyrClement/repos","events_url":"https://api.github.com/users/EmyrClement/events{/privacy}","received_events_url":"https://api.github.com/users/EmyrClement/received_events","type":"User","site_admin":false},"repo":{"id":20265539,"name":"AnalysisSoftware","full_name":"EmyrClement/AnalysisSoftware","owner":{"login":"EmyrClement","id":4438699,"avatar_url":"https://avatars.githubusercontent.com/u/4438699?v=3","gravatar_id":"","url":"https://api.github.com/users/EmyrClement","html_url":"https://github.com/EmyrClement","followers_url":"https://api.github.com/users/EmyrClement/followers","following_url":"https://api.github.com/users/EmyrClement/following{/other_user}","gists_url":"https://api.github.com/users/EmyrClement/gists{/gist_id}","starred_url":"https://api.github.com/users/EmyrClement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmyrClement/subscriptions","organizations_url":"https://api.github.com/users/EmyrClement/orgs","repos_url":"https://api.github.com/users/EmyrClement/repos","events_url":"https://api.github.com/users/EmyrClement/events{/privacy}","received_events_url":"https://api.github.com/users/EmyrClement/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmyrClement/AnalysisSoftware","description":"Analysis software for particle physics analysis","fork":true,"url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware","forks_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/forks","keys_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/teams","hooks_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/hooks","issue_events_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/events{/number}","events_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/events","assignees_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/assignees{/user}","branches_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/branches{/branch}","tags_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/tags","blobs_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/statuses/{sha}","languages_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/languages","stargazers_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/stargazers","contributors_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/contributors","subscribers_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/subscribers","subscription_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/subscription","commits_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/contents/{+path}","compare_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/merges","archive_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/downloads","issues_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues{/number}","pulls_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls{/number}","milestones_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/milestones{/number}","notifications_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/labels{/name}","releases_url":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/releases{/id}","created_at":"2014-05-28T17:01:51Z","updated_at":"2014-12-03T20:23:54Z","pushed_at":"2015-05-19T12:32:43Z","git_url":"git://github.com/EmyrClement/AnalysisSoftware.git","ssh_url":"git@github.com:EmyrClement/AnalysisSoftware.git","clone_url":"https://github.com/EmyrClement/AnalysisSoftware.git","svn_url":"https://github.com/EmyrClement/AnalysisSoftware","homepage":null,"size":77733,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2"},"html":{"href":"https://github.com/EmyrClement/AnalysisSoftware/pull/2"},"issue":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/2"},"comments":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/EmyrClement/AnalysisSoftware/statuses/0f83874d8ff8c84e0e7e805d8fe351d1764ee2a1"}}}}