#include <InputGenJetsParticleSelector.h>
Public Types | |
typedef std::vector< bool > | ParticleBitmap |
typedef std::vector< const reco::Candidate * > | ParticleVector |
enum | ResonanceState { kNo = 0, kDirect, kIndirect } |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions | |
static bool | isHadron (int pdgId) |
static bool | isResonance (int pdgId) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
InputGenJetsParticleSelector () | |
bool | isExcludedFromResonance (int pdgId) const |
void | setExcludeFromResonancePids (const std::vector< unsigned int > &particleIDs) |
void | setIgnoredParticles (const std::vector< unsigned int > &particleIDs) |
int | testPartonChildren (ParticleBitmap &invalid, const ParticleVector &p, const reco::Candidate *particle) const |
Private Attributes | |
std::vector< unsigned int > | excludeFromResonancePids |
bool | excludeResonances |
std::vector< unsigned int > | ignoreParticleIDs |
edm::EDGetTokenT< reco::CandidateView > | input_genpartcoll_token_ |
edm::EDGetTokenT< reco::CandidateView > | input_prunedgenpartcoll_token_ |
edm::InputTag | inTag |
bool | isMiniAOD |
bool | partonicFinalState |
edm::InputTag | prunedInTag |
double | ptMin |
bool | tausAsJets |
Additional Inherited Members | |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 27 of file InputGenJetsParticleSelector.h.
typedef std::vector<bool> InputGenJetsParticleSelector::ParticleBitmap |
Definition at line 30 of file InputGenJetsParticleSelector.h.
typedef std::vector<const reco::Candidate *> InputGenJetsParticleSelector::ParticleVector |
Definition at line 31 of file InputGenJetsParticleSelector.h.
Enumerator | |
---|---|
kNo | |
kDirect | |
kIndirect |
Definition at line 56 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::InputGenJetsParticleSelector | ( | const edm::ParameterSet & | params | ) |
Definition at line 49 of file InputGenJetsParticleSelector.cc.
References input_genpartcoll_token_, input_prunedgenpartcoll_token_, inTag, isMiniAOD, edm::InputTag::label(), submitPVValidationJobs::params, partonicFinalState, prunedInTag, setExcludeFromResonancePids(), and setIgnoredParticles().
|
override |
Definition at line 76 of file InputGenJetsParticleSelector.cc.
|
inlineprivate |
Definition at line 63 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::ResonanceState InputGenJetsParticleSelector::fromResonance | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const reco::Candidate * | particle | ||
) | const |
Definition at line 172 of file InputGenJetsParticleSelector.cc.
References mps_fire::i, heavyIonCSV_trainingSettings::idx, invalid, isExcludedFromResonance(), isIgnored(), isParton(), isResonance(), kDirect, kIndirect, kNo, reco::Candidate::mother(), reco::Candidate::numberOfMothers(), AlCaHLTBitMon_ParallelJobs::p, partIdx(), reco::Candidate::pdgId(), mps_fire::result, and reco::Candidate::status().
Referenced by produce().
|
inline |
Definition at line 40 of file InputGenJetsParticleSelector.h.
References excludeResonances.
|
inline |
Definition at line 43 of file InputGenJetsParticleSelector.h.
References ignoreParticleIDs.
|
inline |
Definition at line 39 of file InputGenJetsParticleSelector.h.
References partonicFinalState.
|
inline |
|
inline |
Definition at line 41 of file InputGenJetsParticleSelector.h.
References tausAsJets.
bool InputGenJetsParticleSelector::hasPartonChildren | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const reco::Candidate * | particle | ||
) | const |
Definition at line 209 of file InputGenJetsParticleSelector.cc.
References invalid, AlCaHLTBitMon_ParallelJobs::p, and testPartonChildren().
Referenced by produce().
|
private |
Definition at line 113 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, createfilelist::int, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and EgammaValidation_cff::pdgId.
Referenced by fromResonance().
|
static |
Definition at line 95 of file InputGenJetsParticleSelector.cc.
References EgammaValidation_cff::pdgId.
Referenced by testPartonChildren().
bool InputGenJetsParticleSelector::isIgnored | ( | int | pdgId | ) | const |
Definition at line 106 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, createfilelist::int, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and EgammaValidation_cff::pdgId.
Referenced by fromResonance(), and produce().
bool InputGenJetsParticleSelector::isParton | ( | int | pdgId | ) | const |
Definition at line 88 of file InputGenJetsParticleSelector.cc.
References EgammaValidation_cff::pdgId, and tausAsJets.
Referenced by fromResonance(), produce(), and testPartonChildren().
|
static |
Definition at line 100 of file InputGenJetsParticleSelector.cc.
References EgammaValidation_cff::pdgId.
Referenced by fromResonance().
|
overridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 217 of file InputGenJetsParticleSelector.cc.
References excludeResonances, fromResonance(), AJJGenJetFilter_cfi::genParticles, edm::Event::getByToken(), hasPartonChildren(), mps_fire::i, heavyIonCSV_trainingSettings::idx, input_genpartcoll_token_, input_prunedgenpartcoll_token_, invalid, invalidateTree(), isIgnored(), isMiniAOD, isParton(), eostools::move(), reco::Candidate::numberOfDaughters(), ecalTrigSettings_cff::particles, partonicFinalState, reco::Candidate::pdgId(), prunedGenParticles_cfi::prunedGenParticles, reco::Candidate::pt(), ptMin, edm::Event::put(), findQualityFiles::size, jetsAK4_CHS_cff::sort, and reco::Candidate::status().
|
private |
Definition at line 83 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, and jetsAK4_CHS_cff::sort.
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 46 of file InputGenJetsParticleSelector.h.
References excludeResonances, and RemoveAddSevLevel::flag.
|
private |
Definition at line 78 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, and jetsAK4_CHS_cff::sort.
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 45 of file InputGenJetsParticleSelector.h.
References RemoveAddSevLevel::flag, and partonicFinalState.
|
inline |
|
inline |
Definition at line 47 of file InputGenJetsParticleSelector.h.
References RemoveAddSevLevel::flag, and tausAsJets.
|
private |
Definition at line 147 of file InputGenJetsParticleSelector.cc.
References reco::Candidate::daughter(), mps_fire::i, heavyIonCSV_trainingSettings::idx, invalid, isHadron(), isParton(), npart, reco::Candidate::numberOfDaughters(), AlCaHLTBitMon_ParallelJobs::p, partIdx(), reco::Candidate::pdgId(), and mps_fire::result.
Referenced by hasPartonChildren().
|
private |
Definition at line 70 of file InputGenJetsParticleSelector.h.
Referenced by isExcludedFromResonance(), and setExcludeFromResonancePids().
|
private |
Definition at line 76 of file InputGenJetsParticleSelector.h.
Referenced by getExcludeResonances(), produce(), and setExcludeResonances().
|
private |
Definition at line 69 of file InputGenJetsParticleSelector.h.
Referenced by getIgnoredParticles(), isIgnored(), and setIgnoredParticles().
|
private |
Definition at line 81 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 82 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 65 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector().
|
private |
Definition at line 78 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 75 of file InputGenJetsParticleSelector.h.
Referenced by getPartonicFinalState(), InputGenJetsParticleSelector(), produce(), and setPartonicFinalState().
|
private |
Definition at line 66 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector().
|
private |
Definition at line 79 of file InputGenJetsParticleSelector.h.
Referenced by getPtMin(), produce(), and setPtMin().
|
private |
Definition at line 77 of file InputGenJetsParticleSelector.h.
Referenced by getTausAndJets(), isParton(), and setTausAsJets().