Public Member Functions | |
ParticleTreeDrawer (const edm::ParameterSet &) | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
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 std::vector< int > | vint |
accepted status codes More... | |
Private Member Functions | |
bool | accept (const reco::Candidate &) const |
accept candidate More... | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
std::string | getParticleName (int id) const |
bool | hasValidDaughters (const reco::Candidate &) const |
has valid daughters in the chain More... | |
void | printDecay (const reco::Candidate &, const std::string &pre) const |
void | printInfo (const reco::Candidate &) const |
print 4 momenta More... | |
Private Attributes | |
std::vector< const reco::Candidate * > | cands_ |
pointer to collection More... | |
edm::ESHandle< ParticleDataTable > | pdt_ |
bool | printIndex_ |
bool | printP4_ |
print parameters More... | |
bool | printPtEtaPhi_ |
bool | printStatus_ |
bool | printVertex_ |
edm::EDGetTokenT< edm::View < reco::Candidate > > | srcToken_ |
vint | status_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
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 14 of file ParticleTreeDrawer.cc.
|
private |
accepted status codes
Definition at line 26 of file ParticleTreeDrawer.cc.
ParticleTreeDrawer::ParticleTreeDrawer | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 49 of file ParticleTreeDrawer.cc.
|
private |
accept candidate
Definition at line 59 of file ParticleTreeDrawer.cc.
References spr::find(), reco::Candidate::status(), and status_.
Referenced by analyze(), Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), esMonitoring.FDJsonServer::handle_accept(), hasValidDaughters(), and printDecay().
|
overrideprivatevirtual |
Implements edm::EDAnalyzer.
Definition at line 83 of file ParticleTreeDrawer.cc.
References accept(), cands_, gather_cfg::cout, edm::EventSetup::getData(), AlCaHLTBitMon_ParallelJobs::p, pdt_, printDecay(), and srcToken_.
|
private |
Definition at line 72 of file ParticleTreeDrawer.cc.
References pdt_, and contentValuesCheck::ss.
Referenced by printDecay().
|
private |
has valid daughters in the chain
Definition at line 64 of file ParticleTreeDrawer.cc.
References accept(), reco::Candidate::daughter(), i, and reco::Candidate::numberOfDaughters().
Referenced by printDecay().
|
private |
Definition at line 118 of file ParticleTreeDrawer.cc.
References accept(), assert(), gather_cfg::cout, ztail::d, reco::Candidate::daughter(), getParticleName(), hasValidDaughters(), i, reco::Candidate::numberOfDaughters(), reco::Candidate::pdgId(), and printInfo().
Referenced by analyze().
|
private |
print 4 momenta
Definition at line 103 of file ParticleTreeDrawer.cc.
References EnergyCorrector::c, cands_, gather_cfg::cout, reco::Candidate::energy(), reco::Candidate::eta(), spr::find(), newFWLiteAna::found, customizeTrackingMonitorSeedNumber::idx, reco::Candidate::phi(), printIndex_, printP4_, printPtEtaPhi_, printStatus_, printVertex_, reco::Candidate::pt(), reco::Candidate::px(), reco::Candidate::py(), reco::Candidate::pz(), reco::Candidate::status(), reco::Candidate::vx(), reco::Candidate::vy(), and reco::Candidate::vz().
Referenced by printDecay().
|
private |
pointer to collection
Definition at line 35 of file ParticleTreeDrawer.cc.
Referenced by analyze(), and printInfo().
|
private |
Definition at line 22 of file ParticleTreeDrawer.cc.
Referenced by analyze(), and getParticleName().
|
private |
Definition at line 24 of file ParticleTreeDrawer.cc.
Referenced by printInfo().
|
private |
|
private |
Definition at line 24 of file ParticleTreeDrawer.cc.
Referenced by printInfo().
|
private |
Definition at line 24 of file ParticleTreeDrawer.cc.
Referenced by printInfo().
|
private |
Definition at line 24 of file ParticleTreeDrawer.cc.
Referenced by printInfo().
|
private |
Definition at line 20 of file ParticleTreeDrawer.cc.
Referenced by analyze().
|
private |
Definition at line 27 of file ParticleTreeDrawer.cc.
Referenced by accept().