GenJetFlavourTableProducer::GenJetFlavourTableProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
inlineexplicit |
Definition at line 26 of file GenJetFlavourTableProducer.cc.
33 produces<nanoaod::FlatTable>();
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::JetFlavourInfoMatchingCollection > jetFlavourInfosToken_
edm::EDGetTokenT< std::vector< reco::GenJet > > src_
const StringCutObjectSelector< reco::GenJet > cut_
GenJetFlavourTableProducer::~GenJetFlavourTableProducer |
( |
| ) |
|
|
inlineoverride |
Definition at line 61 of file GenJetFlavourTableProducer.cc.
References cut_, DEFINE_FWK_MODULE, deltaR(), deltaR_, edm::Event::getByToken(), jets_cff::hadronFlavour, nanoaod::FlatTable::IntColumn, metsig::jet, GenHFHadronMatcher_cfi::jetFlavourInfos, jetFlavourInfosToken_, fwrapper::jets, electrons_cff::matched, eostools::move(), name_, jets_cff::partonFlavour, edm::Event::put(), src_, and nanoaod::FlatTable::UInt8Column.
Referenced by fillDescriptions().
69 unsigned int ncand = 0;
79 partonFlavour.push_back(jetFlavourInfoMatching.second.getPartonFlavour());
80 hadronFlavour.push_back(jetFlavourInfoMatching.second.getHadronFlavour());
86 partonFlavour.push_back(0);
87 hadronFlavour.push_back(0);
91 auto tab = std::make_unique<nanoaod::FlatTable>(ncand,
name_,
false,
true);
edm::EDGetTokenT< reco::JetFlavourInfoMatchingCollection > jetFlavourInfosToken_
edm::EDGetTokenT< std::vector< reco::GenJet > > src_
Jets made from MC generator particles.
double deltaR(double eta1, double eta2, double phi1, double phi2)
JetFlavourInfoMatchingCollection::value_type JetFlavourInfoMatching
const StringCutObjectSelector< reco::GenJet > cut_
const double GenJetFlavourTableProducer::deltaR_ |
|
private |
std::string GenJetFlavourTableProducer::name_ |
|
private |