Public Types | |
enum | DEFINITION_T { PHYSICS =0, ALGO, NEAREST_STATUS2, NEAREST_STATUS3, HEAVIEST, N_DEFINITIONS, NULL_DEF } |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
JetFlavourIdentifier (const edm::ParameterSet &) | |
~JetFlavourIdentifier () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
void | fillLeptons (const std::vector< const reco::Candidate * > &, JetFlavour::Leptons &, int, int) |
std::vector< const reco::Candidate * > | findCandidates (const reco::Candidate *, int) |
JetFlavour::Leptons | findLeptons (const GenParticleRef &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Static Private Member Functions | |
static int | heaviestFlavour (int) |
Private Attributes | |
DEFINITION_T | definition |
bool | leptonInfo_ |
bool | physDefinition |
InputTag | sourceByRefer_ |
math::XYZTLorentzVector | thePartonLV |
Handle < JetMatchedPartonsCollection > | theTagByRef |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Definition at line 85 of file JetFlavourIdentifier.cc.
Enumerator | |
---|---|
PHYSICS | |
ALGO | |
NEAREST_STATUS2 | |
NEAREST_STATUS3 | |
HEAVIEST | |
N_DEFINITIONS | |
NULL_DEF |
Definition at line 88 of file JetFlavourIdentifier.cc.
JetFlavourIdentifier::JetFlavourIdentifier | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 116 of file JetFlavourIdentifier.cc.
References edm::ParameterSet::exists(), and edm::ParameterSet::getParameter().
JetFlavourIdentifier::~JetFlavourIdentifier | ( | ) |
Definition at line 135 of file JetFlavourIdentifier.cc.
|
private |
test for neutrinos because of conversions and dalitz pions
Definition at line 342 of file JetFlavourIdentifier.cc.
References abs, reco::JetFlavour::Leptons::electron, i, j, max(), reco::JetFlavour::Leptons::muon, benchmark_cfg::pdgId, and reco::JetFlavour::Leptons::tau.
|
private |
Definition at line 306 of file JetFlavourIdentifier.cc.
References abs, filterCSVwithJSON::copy, reco::Candidate::daughter(), reco::flavour(), i, reco::Candidate::numberOfDaughters(), reco::Candidate::p4(), benchmark_cfg::pdgId, and reco::Candidate::pdgId().
|
private |
first daughter of the parton should be an MC particle (pdgId==92,93)
lookup particles with parton flavour and weak decay
count leptons of candidates
Definition at line 284 of file JetFlavourIdentifier.cc.
References abs.
|
staticprivate |
Definition at line 371 of file JetFlavourIdentifier.cc.
References abs, reco::flavour(), and benchmark_cfg::pdgId.
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 141 of file JetFlavourIdentifier.cc.
References lumi::ALGO, reco::MatchedPartons::algoDefinitionParton(), edm::Ref< C, T, F >::get(), edm::Event::getByLabel(), reco::MatchedPartons::heaviest(), edm::Ref< C, T, F >::isNonnull(), j, findQualityFiles::jj, reco::MatchedPartons::nearest_status2(), reco::MatchedPartons::nearest_status3(), sistrip::PHYSICS, reco::MatchedPartons::physicsDefinitionParton(), and edm::Event::put().
|
private |
Definition at line 107 of file JetFlavourIdentifier.cc.
|
private |
Definition at line 106 of file JetFlavourIdentifier.cc.
|
private |
Definition at line 105 of file JetFlavourIdentifier.cc.
|
private |
Definition at line 104 of file JetFlavourIdentifier.cc.
|
private |
Definition at line 108 of file JetFlavourIdentifier.cc.
|
private |
Definition at line 103 of file JetFlavourIdentifier.cc.