diff --git a/interface/FatJetsProducer.h b/interface/FatJetsProducer.h index 4a62f5f..0f691db 100644 --- a/interface/FatJetsProducer.h +++ b/interface/FatJetsProducer.h @@ -33,6 +33,10 @@ class FatJetsProducer: public CandidatesProducer, public BTaggingScale &CandidatesProducer::tree["toptag_" + btag].write>>()); } } + Njettinesstau1 = config.getUntrackedParameter("Njettinesstau1","NjettinessAK8:tau1"); + Njettinesstau2 = config.getUntrackedParameter("Njettinesstau2","NjettinessAK8:tau2"); + Njettinesstau3 = config.getUntrackedParameter("Njettinesstau3","NjettinessAK8:tau3"); + } virtual ~FatJetsProducer() {} @@ -57,6 +61,12 @@ class FatJetsProducer: public CandidatesProducer, public BTaggingScale std::vector m_subjets_btag_discriminators; std::map>*> m_softdrop_btag_discriminators_branches; std::map>*> m_toptag_btag_discriminators_branches; + + std::string Njettinesstau1; + std::string Njettinesstau2; + std::string Njettinesstau3; + + public: // Tree members std::vector& area = tree["area"].write>(); diff --git a/src/FatJetsProducer.cc b/src/FatJetsProducer.cc index 25c5cd2..47d1006 100644 --- a/src/FatJetsProducer.cc +++ b/src/FatJetsProducer.cc @@ -22,9 +22,9 @@ void FatJetsProducer::produce(edm::Event& event, const edm::EventSetup& eventSet passTightID.push_back(Tools::Jets::passTightId(jet)); passTightLeptonVetoID.push_back(Tools::Jets::passTightLeptonVetoId(jet)); - tau1.push_back(jet.userFloat("NjettinessAK8:tau1")); - tau2.push_back(jet.userFloat("NjettinessAK8:tau2")); - tau3.push_back(jet.userFloat("NjettinessAK8:tau3")); + tau1.push_back(jet.userFloat(Njettinesstau1)); + tau2.push_back(jet.userFloat(Njettinesstau2)); + tau3.push_back(jet.userFloat(Njettinesstau3)); softdrop_mass.push_back(jet.userFloat("ak8PFJetsCHSSoftDropMass")); trimmed_mass.push_back(jet.userFloat("ak8PFJetsCHSTrimmedMass"));