Skip to content

Commit

Permalink
Merge pull request #82 from AlexandreMertens/lowPtFatJets
Browse files Browse the repository at this point in the history
adding tau1, tau2 and tau3 as config file string
  • Loading branch information
blinkseb committed Oct 15, 2015
2 parents 57826aa + e5b68c1 commit bce98a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions interface/FatJetsProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ class FatJetsProducer: public CandidatesProducer<pat::Jet>, public BTaggingScale
&CandidatesProducer<pat::Jet>::tree["toptag_" + btag].write<std::vector<std::vector<float>>>());
}
}
Njettinesstau1 = config.getUntrackedParameter<std::string>("Njettinesstau1","NjettinessAK8:tau1");
Njettinesstau2 = config.getUntrackedParameter<std::string>("Njettinesstau2","NjettinessAK8:tau2");
Njettinesstau3 = config.getUntrackedParameter<std::string>("Njettinesstau3","NjettinessAK8:tau3");

}

virtual ~FatJetsProducer() {}
Expand All @@ -57,6 +61,12 @@ class FatJetsProducer: public CandidatesProducer<pat::Jet>, public BTaggingScale
std::vector<std::string> m_subjets_btag_discriminators;
std::map<std::string, std::vector<std::vector<float>>*> m_softdrop_btag_discriminators_branches;
std::map<std::string, std::vector<std::vector<float>>*> m_toptag_btag_discriminators_branches;

std::string Njettinesstau1;
std::string Njettinesstau2;
std::string Njettinesstau3;


public:
// Tree members
std::vector<float>& area = tree["area"].write<std::vector<float>>();
Expand Down
6 changes: 3 additions & 3 deletions src/FatJetsProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit bce98a2

Please sign in to comment.