Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
fix CSVv2
Browse files Browse the repository at this point in the history
  • Loading branch information
Root rooster committed Jun 5, 2019
1 parent d473a18 commit 61408f4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions Jet/plugins/CSVInputTagPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,11 @@ class CSVInputTagDataPlugin:

//http://cmslxr.fnal.gov/source/DataFormats/BTauReco/interface/TaggingVariable.h?v=CMSSW_9_4_0_pre1#0033
float trackSumJetEtRatio = vars.get(reco::btau::trackSumJetEtRatio, -1);
if (trackSumJetEtRatio>0) trackSumJetEtRatio = 0.1/(0.1+trackSumJetEtRatio);
jetTagData.trackSumJetEtRatio = trackSumJetEtRatio;

float trackSumJetDeltaR = vars.get(reco::btau::trackSumJetDeltaR, -1);
if (trackSumJetDeltaR>0) trackSumJetDeltaR = 0.1/(0.1+trackSumJetDeltaR);
jetTagData.trackSumJetDeltaR = trackSumJetDeltaR;



jetTagData.vertexCategory = vars.get(reco::btau::vertexCategory, -1);
jetTagData.jetNSelectedTracks = vars.get(reco::btau::jetNSelectedTracks, -1);
jetTagData.jetNTracksEtaRel = vars.get(reco::btau::jetNTracksEtaRel, -1);
Expand Down
1 change: 0 additions & 1 deletion Jet/plugins/ChargedPFTagPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class ChargedPFTagDataPlugin:
{
const pat::Jet& jet = jetCollection->at(ijet);
const float jet_pt_uncorr = jet.correctedJet("Uncorrected").pt();
//const float jet_e_uncorr = jet.correctedJet("Uncorrected").energy();

std::vector<nanox::ChargedPFTagData::Data> cpfData;
for (unsigned int idaughter = 0; idaughter < jet.numberOfDaughters(); ++idaughter)
Expand Down
2 changes: 1 addition & 1 deletion Jet/plugins/JetOriginTagPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class JetOriginTagDataPlugin:
{
mother = mother->mother();
}
//find gluon anchestor
//find gluon ancestor
if (mother->mother() and mother->mother()->pdgId()==21)
{
nGluons+=1;
Expand Down
3 changes: 1 addition & 2 deletions Jet/plugins/NeutralPFTagPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class NeutralPFTagDataPlugin:
{
const pat::Jet& jet = jetCollection->at(ijet);
const float jet_pt_uncorr = jet.correctedJet("Uncorrected").pt();
//const float jet_e_uncorr = jet.correctedJet("Uncorrected").energy();

std::vector<nanox::NeutralPFTagData::Data> npfData;
for (unsigned int idaughter = 0; idaughter < jet.numberOfDaughters(); ++idaughter)
Expand All @@ -89,7 +88,7 @@ class NeutralPFTagDataPlugin:
data.drminsv = std::min(data.drminsv,dR);
}

if (jet.mass()<1e-10) data.jetmassdroprel = 0;
if (jet.mass()<1e-10) data.jetmassdroprel = -9;
else data.jetmassdroprel = (jet.p4()- constituent->p4()).mass()/jet.mass();


Expand Down
2 changes: 1 addition & 1 deletion LLPSpecific/test/produce_80X_NANOX.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def addFilter(seq,inputTag,cutString,minN=None):
#'softPFElectronBJetTags',
#'pfJetBProbabilityBJetTags',
#'pfJetProbabilityBJetTags',
'pfCombinedInclusiveSecondaryVertexV2BJetTags',
'pfCombinedSecondaryVertexV2BJetTags',
'pfDeepCSVJetTags:probudsg', #to be fixed with new names
'pfDeepCSVJetTags:probb',
'pfDeepCSVJetTags:probc',
Expand Down

0 comments on commit 61408f4

Please sign in to comment.