GenJetFlavourTableProducer::GenJetFlavourTableProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
inlineexplicit |
Definition at line 26 of file GenJetFlavourTableProducer.cc.
33 produces<nanoaod::FlatTable>();
edm::EDGetTokenT< reco::JetFlavourInfoMatchingCollection > jetFlavourInfosToken_
edm::EDGetTokenT< std::vector< reco::GenJet > > src_
const StringCutObjectSelector< reco::GenJet > cut_
T getParameter(std::string const &) const
GenJetFlavourTableProducer::~GenJetFlavourTableProducer |
( |
| ) |
|
|
inlineoverride |
Definition at line 59 of file GenJetFlavourTableProducer.cc.
References cut_, HLT_FULL_cff::deltaR, deltaR_, edm::Event::getByToken(), metsig::jet, jetFlavourInfosToken_, fwrapper::jets, eostools::move(), name_, edm::Event::put(), and src_.
66 unsigned int ncand = 0;
67 std::vector<int> partonFlavour;
68 std::vector<uint8_t> hadronFlavour;
77 partonFlavour.push_back(jetFlavourInfoMatching.second.getPartonFlavour());
78 hadronFlavour.push_back(jetFlavourInfoMatching.second.getHadronFlavour());
84 partonFlavour.push_back(0);
85 hadronFlavour.push_back(0);
89 auto tab = std::make_unique<nanoaod::FlatTable>(ncand,
name_,
false,
true);
90 tab->addColumn<
int>(
"partonFlavour", partonFlavour,
"flavour from parton matching");
91 tab->addColumn<uint8_t>(
"hadronFlavour", hadronFlavour,
"flavour from hadron ghost clustering");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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_
const double GenJetFlavourTableProducer::deltaR_ |
|
private |
std::string GenJetFlavourTableProducer::name_ |
|
private |