Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jet vertex for pfbreco #347

Merged
merged 3 commits into from Aug 25, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CommonTools/ParticleFlow/python/Tools/jetTools.py
Expand Up @@ -18,4 +18,6 @@ def jetAlgo( algo ):
jetAlgo.doAreaFastjet = cms.bool(False)

jetAlgo.src = 'pfNoElectronJME'
jetAlgo.doPVCorrection = True
jetAlgo.srcPVs = cms.InputTag("goodOfflinePrimaryVertices")
return jetAlgo
2 changes: 1 addition & 1 deletion RecoJets/JetProducers/plugins/VirtualJetProducer.cc
Expand Up @@ -313,7 +313,7 @@ void VirtualJetProducer::produce(edm::Event& iEvent,const edm::EventSetup& iSetu
LogDebug("VirtualJetProducer") << "Entered produce\n";
//determine signal vertex2
vertex_=reco::Jet::Point(0,0,0);
if (makeCaloJet(jetTypeE)&&doPVCorrection_) {
if ( (makeCaloJet(jetTypeE) || makePFJet(jetTypeE)) &&doPVCorrection_) {
LogDebug("VirtualJetProducer") << "Adding PV info\n";
edm::Handle<reco::VertexCollection> pvCollection;
iEvent.getByLabel(srcPVs_,pvCollection);
Expand Down