Public Member Functions | |
JetPartonMatcher (const edm::ParameterSet &) | |
~JetPartonMatcher () | |
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 | |
int | fillAlgoritDefinition (const Jet &) |
int | fillPhysicsDefinition (const Jet &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
double | coneSizeToAssociate |
bool | doPriority |
edm::InputTag | m_jetsSrc |
edm::InputTag | m_ParticleSrc |
Handle< GenParticleRefVector > | particles |
bool | physDefinition |
vector< int > | priorityList |
int | theHardest |
int | theHeaviest |
int | theNearest2 |
int | theNearest3 |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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 94 of file JetPartonMatcher.cc.
JetPartonMatcher::JetPartonMatcher | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 122 of file JetPartonMatcher.cc.
References coneSizeToAssociate, doPriority, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), m_jetsSrc, m_ParticleSrc, and priorityList.
JetPartonMatcher::~JetPartonMatcher | ( | ) |
Definition at line 143 of file JetPartonMatcher.cc.
|
private |
Definition at line 215 of file JetPartonMatcher.cc.
References abs, coneSizeToAssociate, doPriority, spr::find(), m, reco::Candidate::p4(), reco::LeafCandidate::p4(), particles, reco::Candidate::pdgId(), priorityList, reco::Candidate::pt(), reco::Candidate::status(), theHardest, theHeaviest, and theNearest2.
Referenced by produce().
|
private |
Definition at line 326 of file JetPartonMatcher.cc.
References abs, coneSizeToAssociate, doPriority, spr::find(), reco::flavour(), m, reco::Candidate::numberOfDaughters(), reco::Candidate::p4(), reco::LeafCandidate::p4(), particles, benchmark_cfg::pdgId, reco::Candidate::pdgId(), priorityList, reco::Candidate::status(), theHardest, theHeaviest, theNearest2, and theNearest3.
Referenced by produce().
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 149 of file JetPartonMatcher.cc.
References reco::LeafCandidate::eta(), fillAlgoritDefinition(), fillPhysicsDefinition(), edm::Event::getByLabel(), j, m, m_jetsSrc, m_ParticleSrc, particles, reco::LeafCandidate::pdgId(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), edm::Event::put(), reco::LeafCandidate::status(), theHeaviest, theNearest2, and theNearest3.
|
private |
Definition at line 113 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and JetPartonMatcher().
|
private |
Definition at line 115 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and JetPartonMatcher().
|
private |
Definition at line 112 of file JetPartonMatcher.cc.
Referenced by JetPartonMatcher(), and produce().
|
private |
Definition at line 112 of file JetPartonMatcher.cc.
Referenced by JetPartonMatcher(), and produce().
|
private |
Definition at line 110 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and produce().
|
private |
Definition at line 114 of file JetPartonMatcher.cc.
|
private |
Definition at line 116 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and JetPartonMatcher().
|
private |
Definition at line 108 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), and fillPhysicsDefinition().
|
private |
Definition at line 105 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and produce().
|
private |
Definition at line 106 of file JetPartonMatcher.cc.
Referenced by fillAlgoritDefinition(), fillPhysicsDefinition(), and produce().
|
private |
Definition at line 107 of file JetPartonMatcher.cc.
Referenced by fillPhysicsDefinition(), and produce().