{"action":"created","comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments/35810539","id":35810539,"diff_hunk":"@@ -0,0 +1,325 @@\n+#include <memory>\n+#include \"RecoJets/JetProducers/plugins/MVAJetPuIdProducer.h\"\n+ \n+ \n+ MVAJetPuIdProducer::MVAJetPuIdProducer(const edm::ParameterSet& iConfig)\n+ {\n+     runMvas_ = iConfig.getParameter<bool>(\"runMvas\");\n+     produceJetIds_ = iConfig.getParameter<bool>(\"produceJetIds\");\n+     jets_ = iConfig.getParameter<edm::InputTag>(\"jets\");\n+     vertexes_ = iConfig.getParameter<edm::InputTag>(\"vertexes\");\n+     jetids_  = iConfig.getParameter<edm::InputTag>(\"jetids\");\n+     inputIsCorrected_ = iConfig.getParameter<bool>(\"inputIsCorrected\");\n+     applyJec_ = iConfig.getParameter<bool>(\"applyJec\");\n+     jec_ =  iConfig.getParameter<std::string>(\"jec\");\n+     rho_ = iConfig.getParameter<edm::InputTag>(\"rho\");\n+     residualsFromTxt_ = iConfig.getParameter<bool>(\"residualsFromTxt\");\n+     if(residualsFromTxt_) residualsTxt_ = iConfig.getParameter<edm::FileInPath>(\"residualsTxt\");\n+     std::vector<edm::ParameterSet> algos = iConfig.getParameter<std::vector<edm::ParameterSet> >(\"algos\");\n+     \n+     jecCor_ = 0;\n+ \n+     if( ! runMvas_ ) assert( algos.size() == 1 );\n+     \n+     if( produceJetIds_ ) {\n+         produces<edm::ValueMap<StoredPileupJetIdentifier> > (\"\");\n+     }\n+     for(std::vector<edm::ParameterSet>::iterator it=algos.begin(); it!=algos.end(); ++it) {\n+         std::string label = it->getParameter<std::string>(\"label\");\n+         algos_.push_back( std::make_pair(label,new MVAJetPuId(*it)) );\n+         if( runMvas_ ) {\n+             produces<edm::ValueMap<float> > (label+\"Discriminant\");\n+             produces<edm::ValueMap<int> > (label+\"Id\");\n+         }\n+     }\n+ \n+     input_jet_token_ = consumes<edm::View<reco::Jet> >(jets_);\n+     input_vertex_token_ = consumes<reco::VertexCollection>(vertexes_);\n+         input_vm_pujetid_token_ = consumes<edm::ValueMap<StoredPileupJetIdentifier> >(jetids_);","path":"RecoJets/JetProducers/plugins/MVAJetPuIdProducer.cc","position":38,"original_position":38,"commit_id":"c5ebced0fbb5cecf6a661573f94a7b3c0070a30d","original_commit_id":"c5ebced0fbb5cecf6a661573f94a7b3c0070a30d","user":{"login":"slava77","id":4676718,"avatar_url":"https://avatars.githubusercontent.com/u/4676718?v=3","gravatar_id":"","url":"https://api.github.com/users/slava77","html_url":"https://github.com/slava77","followers_url":"https://api.github.com/users/slava77/followers","following_url":"https://api.github.com/users/slava77/following{/other_user}","gists_url":"https://api.github.com/users/slava77/gists{/gist_id}","starred_url":"https://api.github.com/users/slava77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slava77/subscriptions","organizations_url":"https://api.github.com/users/slava77/orgs","repos_url":"https://api.github.com/users/slava77/repos","events_url":"https://api.github.com/users/slava77/events{/privacy}","received_events_url":"https://api.github.com/users/slava77/received_events","type":"User","site_admin":false},"body":"consistent indentation would be nice","created_at":"2015-07-29T20:54:15Z","updated_at":"2015-07-29T20:54:15Z","html_url":"https://github.com/cms-sw/cmssw/pull/10334#discussion_r35810539","pull_request_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334","_links":{"self":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments/35810539"},"html":{"href":"https://github.com/cms-sw/cmssw/pull/10334#discussion_r35810539"},"pull_request":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334"}}},"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334","id":40719630,"html_url":"https://github.com/cms-sw/cmssw/pull/10334","diff_url":"https://github.com/cms-sw/cmssw/pull/10334.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/10334.patch","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/10334","number":10334,"state":"open","locked":false,"title":"Hlt mvapuid recojet","user":{"login":"cvernier","id":5022836,"avatar_url":"https://avatars.githubusercontent.com/u/5022836?v=3","gravatar_id":"","url":"https://api.github.com/users/cvernier","html_url":"https://github.com/cvernier","followers_url":"https://api.github.com/users/cvernier/followers","following_url":"https://api.github.com/users/cvernier/following{/other_user}","gists_url":"https://api.github.com/users/cvernier/gists{/gist_id}","starred_url":"https://api.github.com/users/cvernier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvernier/subscriptions","organizations_url":"https://api.github.com/users/cvernier/orgs","repos_url":"https://api.github.com/users/cvernier/repos","events_url":"https://api.github.com/users/cvernier/events{/privacy}","received_events_url":"https://api.github.com/users/cvernier/received_events","type":"User","site_admin":false},"body":"First version of HLT MVA PU Id and filter for HLT jet collection\r\n@kirschen @silviodonato ","created_at":"2015-07-23T21:19:18Z","updated_at":"2015-07-29T20:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b38ce7ac501c67b50144379247c8e3880f55b5d2","assignee":null,"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/55","html_url":"https://github.com/cms-sw/cmssw/milestones/Next%20CMSSW_7_6_X","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/55/labels","id":1176788,"number":55,"title":"Next CMSSW_7_6_X","description":"","creator":{"login":"smuzaffar","id":4115138,"avatar_url":"https://avatars.githubusercontent.com/u/4115138?v=3","gravatar_id":"","url":"https://api.github.com/users/smuzaffar","html_url":"https://github.com/smuzaffar","followers_url":"https://api.github.com/users/smuzaffar/followers","following_url":"https://api.github.com/users/smuzaffar/following{/other_user}","gists_url":"https://api.github.com/users/smuzaffar/gists{/gist_id}","starred_url":"https://api.github.com/users/smuzaffar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smuzaffar/subscriptions","organizations_url":"https://api.github.com/users/smuzaffar/orgs","repos_url":"https://api.github.com/users/smuzaffar/repos","events_url":"https://api.github.com/users/smuzaffar/events{/privacy}","received_events_url":"https://api.github.com/users/smuzaffar/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":268,"state":"open","created_at":"2015-06-23T07:27:04Z","updated_at":"2015-07-29T18:41:09Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334/commits","review_comments_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334/comments","review_comment_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/10334/comments","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/c5ebced0fbb5cecf6a661573f94a7b3c0070a30d","head":{"label":"cvernier:hlt-mvapuid-recojet","ref":"hlt-mvapuid-recojet","sha":"c5ebced0fbb5cecf6a661573f94a7b3c0070a30d","user":{"login":"cvernier","id":5022836,"avatar_url":"https://avatars.githubusercontent.com/u/5022836?v=3","gravatar_id":"","url":"https://api.github.com/users/cvernier","html_url":"https://github.com/cvernier","followers_url":"https://api.github.com/users/cvernier/followers","following_url":"https://api.github.com/users/cvernier/following{/other_user}","gists_url":"https://api.github.com/users/cvernier/gists{/gist_id}","starred_url":"https://api.github.com/users/cvernier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvernier/subscriptions","organizations_url":"https://api.github.com/users/cvernier/orgs","repos_url":"https://api.github.com/users/cvernier/repos","events_url":"https://api.github.com/users/cvernier/events{/privacy}","received_events_url":"https://api.github.com/users/cvernier/received_events","type":"User","site_admin":false},"repo":{"id":13504271,"name":"cmssw","full_name":"cvernier/cmssw","owner":{"login":"cvernier","id":5022836,"avatar_url":"https://avatars.githubusercontent.com/u/5022836?v=3","gravatar_id":"","url":"https://api.github.com/users/cvernier","html_url":"https://github.com/cvernier","followers_url":"https://api.github.com/users/cvernier/followers","following_url":"https://api.github.com/users/cvernier/following{/other_user}","gists_url":"https://api.github.com/users/cvernier/gists{/gist_id}","starred_url":"https://api.github.com/users/cvernier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvernier/subscriptions","organizations_url":"https://api.github.com/users/cvernier/orgs","repos_url":"https://api.github.com/users/cvernier/repos","events_url":"https://api.github.com/users/cvernier/events{/privacy}","received_events_url":"https://api.github.com/users/cvernier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cvernier/cmssw","description":"CMS Offline Software","fork":true,"url":"https://api.github.com/repos/cvernier/cmssw","forks_url":"https://api.github.com/repos/cvernier/cmssw/forks","keys_url":"https://api.github.com/repos/cvernier/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvernier/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvernier/cmssw/teams","hooks_url":"https://api.github.com/repos/cvernier/cmssw/hooks","issue_events_url":"https://api.github.com/repos/cvernier/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/cvernier/cmssw/events","assignees_url":"https://api.github.com/repos/cvernier/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/cvernier/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/cvernier/cmssw/tags","blobs_url":"https://api.github.com/repos/cvernier/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvernier/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvernier/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvernier/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvernier/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/cvernier/cmssw/languages","stargazers_url":"https://api.github.com/repos/cvernier/cmssw/stargazers","contributors_url":"https://api.github.com/repos/cvernier/cmssw/contributors","subscribers_url":"https://api.github.com/repos/cvernier/cmssw/subscribers","subscription_url":"https://api.github.com/repos/cvernier/cmssw/subscription","commits_url":"https://api.github.com/repos/cvernier/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvernier/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvernier/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvernier/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvernier/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/cvernier/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvernier/cmssw/merges","archive_url":"https://api.github.com/repos/cvernier/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvernier/cmssw/downloads","issues_url":"https://api.github.com/repos/cvernier/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/cvernier/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/cvernier/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/cvernier/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvernier/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/cvernier/cmssw/releases{/id}","created_at":"2013-10-11T16:51:19Z","updated_at":"2015-07-07T03:43:35Z","pushed_at":"2015-07-29T11:59:34Z","git_url":"git://github.com/cvernier/cmssw.git","ssh_url":"git@github.com:cvernier/cmssw.git","clone_url":"https://github.com/cvernier/cmssw.git","svn_url":"https://github.com/cvernier/cmssw","homepage":"cms-sw.github.io/cmssw","size":794374,"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":"CMSSW_7_0_X"}},"base":{"label":"cms-sw:CMSSW_7_6_X","ref":"CMSSW_7_6_X","sha":"69e3c9fe0c5edb078bc31654b0dfd04bd9789b0a","user":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"repo":{"id":10969551,"name":"cmssw","full_name":"cms-sw/cmssw","owner":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-sw/cmssw","description":"CMS Offline Software","fork":false,"url":"https://api.github.com/repos/cms-sw/cmssw","forks_url":"https://api.github.com/repos/cms-sw/cmssw/forks","keys_url":"https://api.github.com/repos/cms-sw/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-sw/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-sw/cmssw/teams","hooks_url":"https://api.github.com/repos/cms-sw/cmssw/hooks","issue_events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/cms-sw/cmssw/events","assignees_url":"https://api.github.com/repos/cms-sw/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/cms-sw/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/cms-sw/cmssw/tags","blobs_url":"https://api.github.com/repos/cms-sw/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-sw/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-sw/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-sw/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-sw/cmssw/languages","stargazers_url":"https://api.github.com/repos/cms-sw/cmssw/stargazers","contributors_url":"https://api.github.com/repos/cms-sw/cmssw/contributors","subscribers_url":"https://api.github.com/repos/cms-sw/cmssw/subscribers","subscription_url":"https://api.github.com/repos/cms-sw/cmssw/subscription","commits_url":"https://api.github.com/repos/cms-sw/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-sw/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-sw/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/cms-sw/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-sw/cmssw/merges","archive_url":"https://api.github.com/repos/cms-sw/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-sw/cmssw/downloads","issues_url":"https://api.github.com/repos/cms-sw/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/cms-sw/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-sw/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-sw/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-sw/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/cms-sw/cmssw/releases{/id}","created_at":"2013-06-26T14:09:07Z","updated_at":"2015-07-27T04:07:28Z","pushed_at":"2015-07-29T18:58:06Z","git_url":"git://github.com/cms-sw/cmssw.git","ssh_url":"git@github.com:cms-sw/cmssw.git","clone_url":"https://github.com/cms-sw/cmssw.git","svn_url":"https://github.com/cms-sw/cmssw","homepage":"http://cms-sw.github.io/","size":1215828,"stargazers_count":253,"watchers_count":253,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1506,"mirror_url":null,"open_issues_count":221,"forks":1506,"open_issues":221,"watchers":253,"default_branch":"CMSSW_7_6_X"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334"},"html":{"href":"https://github.com/cms-sw/cmssw/pull/10334"},"issue":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/10334"},"comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/10334/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/10334/commits"},"statuses":{"href":"https://api.github.com/repos/cms-sw/cmssw/statuses/c5ebced0fbb5cecf6a661573f94a7b3c0070a30d"}}}}