◆ GenJetFlavourTableProducer()
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::~GenJetFlavourTableProducer |
( |
| ) |
|
|
inlineoverride |
◆ fillDescriptions()
◆ produce()
Definition at line 59 of file GenJetFlavourTableProducer.cc.
References cut_, PbPb_ZMuSkimMuonDPG_cff::deltaR, deltaR_, custom_jme_cff::hadronFlavour, iEvent, metsig::jet, jetFlavourInfosToken_, muonTagProbeFilters_cff::matched, eostools::move(), name_, btvMC_cff::nBHadrons, btvMC_cff::nCHadrons, custom_jme_cff::partonFlavour, and src_.
63 unsigned int ncand = 0;
76 partonFlavour.push_back(jetFlavourInfoMatching.second.getPartonFlavour());
77 hadronFlavour.push_back(jetFlavourInfoMatching.second.getHadronFlavour());
78 nBHadrons.push_back(jetFlavourInfoMatching.second.getbHadrons().size());
79 nCHadrons.push_back(jetFlavourInfoMatching.second.getcHadrons().size());
92 auto tab = std::make_unique<nanoaod::FlatTable>(ncand,
name_,
false,
true);
93 tab->addColumn<int16_t>(
"partonFlavour",
partonFlavour,
"flavour from parton matching");
94 tab->addColumn<uint8_t>(
"hadronFlavour",
hadronFlavour,
"flavour from hadron ghost clustering");
95 tab->addColumn<uint8_t>(
"nBHadrons",
nBHadrons,
"number of b-hadrons");
96 tab->addColumn<uint8_t>(
"nCHadrons",
nCHadrons,
"number of c-hadrons");
edm::EDGetTokenT< reco::JetFlavourInfoMatchingCollection > jetFlavourInfosToken_
edm::EDGetTokenT< std::vector< reco::GenJet > > src_
Jets made from MC generator particles.
JetFlavourInfoMatchingCollection::value_type JetFlavourInfoMatching
const StringCutObjectSelector< reco::GenJet > cut_
◆ cut_
◆ deltaR_
const double GenJetFlavourTableProducer::deltaR_ |
|
private |
◆ jetFlavourInfosToken_
◆ name_
std::string GenJetFlavourTableProducer::name_ |
|
private |
◆ src_