#include <PseudoTopProducer.h>
Public Member Functions | |
void | produce (edm::Event &event, const edm::EventSetup &eventSetup) override |
PseudoTopProducer (const edm::ParameterSet &pset) | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Types | |
typedef fastjet::JetDefinition | JetDef |
typedef reco::Particle::LorentzVector | LorentzVector |
Private Member Functions | |
reco::GenParticleRef | buildGenParticle (const reco::Candidate *p, reco::GenParticleRefProd &refHandle, std::auto_ptr< reco::GenParticleCollection > &outColl) const |
const reco::Candidate * | getLast (const reco::Candidate *p) |
bool | isBHadron (const reco::Candidate *p) const |
bool | isBHadron (const unsigned int pdgId) const |
bool | isFromHadron (const reco::Candidate *p) const |
Private Attributes | |
edm::EDGetTokenT< edm::View < reco::Candidate > > | finalStateToken_ |
std::shared_ptr< JetDef > | fjJetDef_ |
std::shared_ptr< JetDef > | fjLepDef_ |
edm::EDGetTokenT< edm::View < reco::Candidate > > | genParticleToken_ |
reco::Particle::Point | genVertex_ |
const double | jetMaxEta_ |
const double | jetMinPt_ |
const double | leptonMaxEta_ |
const double | leptonMinPt_ |
const double | tMass_ |
const double | wMass_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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::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 13 of file PseudoTopProducer.h.
|
private |
Definition at line 36 of file PseudoTopProducer.h.
|
private |
Definition at line 28 of file PseudoTopProducer.h.
PseudoTopProducer::PseudoTopProducer | ( | const edm::ParameterSet & | pset | ) |
Definition at line 12 of file PseudoTopProducer.cc.
References finalStateToken_, fjJetDef_, fjLepDef_, genParticleToken_, genVertex_, and edm::ParameterSet::getParameter().
|
private |
Definition at line 563 of file PseudoTopProducer.cc.
References reco::CompositeRefCandidateT< D >::clearDaughters(), reco::CompositeRefCandidateT< D >::clearMothers(), edm::RefProd< T >::id(), reco::CompositeRefCandidateT< D >::resetDaughters(), and reco::CompositeRefCandidateT< D >::resetMothers().
|
private |
Definition at line 504 of file PseudoTopProducer.cc.
References reco::Candidate::daughter(), i, gen::n, reco::Candidate::numberOfDaughters(), AlCaHLTBitMon_ParallelJobs::p, and reco::Candidate::pdgId().
|
private |
Definition at line 528 of file PseudoTopProducer.cc.
References funct::abs(), reco::Candidate::daughter(), i, gen::n, reco::Candidate::numberOfDaughters(), and reco::Candidate::pdgId().
Referenced by produce().
|
private |
Definition at line 544 of file PseudoTopProducer.cc.
|
private |
Definition at line 514 of file PseudoTopProducer.cc.
References funct::abs(), i, reco::Candidate::mother(), gen::n, reco::Candidate::numberOfMothers(), benchmark_cfg::pdgId, and reco::Candidate::pdgId().
Referenced by produce().
|
overridevirtual |
Build jets
Implements edm::EDProducer.
Definition at line 38 of file PseudoTopProducer.cc.
References funct::abs(), reco::CompositeRefCandidateT< D >::addDaughter(), RazorAnalyzer::bJet1, RazorAnalyzer::bJet2, reco::Candidate::charge(), alignCSCRings::e, reco::Candidate::energy(), finalStateToken_, fjJetDef_, fjLepDef_, genParticleToken_, genVertex_, i, cmsHarvester::index, isBHadron(), isFromHadron(), edm::detail::isnan(), edm::Ptr< T >::isNonnull(), edm::Ptr< T >::isNull(), j, jetMaxEta_, jetMinPt_, fwrapper::jets, leptonMaxEta_, leptonMinPt_, HLT_25ns14e33_v1_cff::leptons, visualization-live-secondInstance_cfg::m, reco::Candidate::mother(), gen::n, reco::Candidate::numberOfMothers(), or, reco::Candidate::p(), AlCaHLTBitMon_ParallelJobs::p, reco::Candidate::p4(), reco::Candidate::pdgId(), pseudoTop_cfi::pseudoTop, reco::Candidate::pt(), reco::Candidate::px(), reco::Candidate::py(), reco::Candidate::pz(), pileupReCalc_HLTpaths::scale, python.multivaluedict::sort(), reco::Candidate::status(), ntuplemaker::status, tMass_, reco::Candidate::vertex(), w2, wMass_, and reco::writeSpecific().
|
private |
Definition at line 31 of file PseudoTopProducer.h.
Referenced by produce(), and PseudoTopProducer().
|
private |
Definition at line 37 of file PseudoTopProducer.h.
Referenced by produce(), and PseudoTopProducer().
|
private |
Definition at line 37 of file PseudoTopProducer.h.
Referenced by produce(), and PseudoTopProducer().
|
private |
Definition at line 32 of file PseudoTopProducer.h.
Referenced by produce(), and PseudoTopProducer().
|
private |
Definition at line 38 of file PseudoTopProducer.h.
Referenced by produce(), and PseudoTopProducer().
|
private |
Definition at line 33 of file PseudoTopProducer.h.
Referenced by produce().
|
private |
Definition at line 33 of file PseudoTopProducer.h.
Referenced by produce().
|
private |
Definition at line 33 of file PseudoTopProducer.h.
Referenced by produce().
|
private |
Definition at line 33 of file PseudoTopProducer.h.
Referenced by produce().
|
private |
Definition at line 34 of file PseudoTopProducer.h.
Referenced by produce().
|
private |
Definition at line 34 of file PseudoTopProducer.h.
Referenced by produce().