#include <TagProbeFitTreeProducer.cc>
Public Member Functions | |
TagProbeFitTreeProducer (const edm::ParameterSet &) | |
~TagProbeFitTreeProducer () | |
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 Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
bool | checkMother (const reco::GenParticleRef &ref) const |
Return true if ref is not null and has an ancestor with pdgId inside 'motherPdgId_'. More... | |
virtual void | endJob () override |
Private Attributes | |
edm::EDGetTokenT < reco::CandidateView > | allProbesToken_ |
InputTag to the collection of all probes. More... | |
bool | checkMotherInUnbiasEff_ |
Check mother pdgId in unbiased inefficiency measurement. More... | |
bool | isMC_ |
Is this sample MC? More... | |
bool | makeMCUnbiasTree_ |
Do we have to compute this. More... | |
std::auto_ptr < tnp::BaseTreeFiller > | mcFiller_ |
std::auto_ptr < tnp::BaseTreeFiller > | mcUnbiasFiller_ |
The object that actually computes variables and fills the tree for unbiased MC. More... | |
std::set< int32_t > | motherPdgId_ |
Possible pdgids for the mother. If empty, any truth-matched mu will be considered good. More... | |
std::auto_ptr < tnp::BaseTreeFiller > | oldTagFiller_ |
std::auto_ptr < tnp::BaseTreeFiller > | pairFiller_ |
edm::EDGetTokenT < edm::Association < std::vector < reco::GenParticle > > > | probeMatchesToken_ |
std::auto_ptr < tnp::BaseTreeFiller > | tagFiller_ |
edm::EDGetTokenT < edm::Association < std::vector < reco::GenParticle > > > | tagMatchesToken_ |
Token foran edm::Association<reco::GenParticle> from tags & probes to MC truth. More... | |
tnp::TagProbePairMaker | tagProbePairMaker_ |
The object that produces pairs of tags and probes, making any arbitration needed. More... | |
std::auto_ptr< tnp::TPTreeFiller > | treeFiller_ |
The object that actually computes variables and fills the tree for T&P. More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 48 of file TagProbeFitTreeProducer.cc.
|
explicit |
Definition at line 91 of file TagProbeFitTreeProducer.cc.
References edm::ParameterSet::addParameter(), allProbesToken_, edm::EDConsumerBase::consumesCollector(), edm::ParameterSet::empty(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), isMC_, makeMCUnbiasTree_, mcFiller_, mcUnbiasFiller_, motherPdgId_, pairFiller_, probeMatchesToken_, tagFiller_, tagMatchesToken_, and treeFiller_.
TagProbeFitTreeProducer::~TagProbeFitTreeProducer | ( | ) |
Definition at line 133 of file TagProbeFitTreeProducer.cc.
|
overrideprivatevirtual |
Implements edm::EDAnalyzer.
Definition at line 144 of file TagProbeFitTreeProducer.cc.
References allProbesToken_, checkMother(), checkMotherInUnbiasEff_, edm::Event::getByToken(), i, isMC_, edm::Ref< C, T, F >::isNonnull(), makeMCUnbiasTree_, mcFiller_, mcUnbiasFiller_, gen::n, oldTagFiller_, pairFiller_, probeMatchesToken_, tnp::TagProbePairMaker::run(), alcazmumu_cfi::src, tagFiller_, tagMatchesToken_, tagProbePairMaker_, and treeFiller_.
|
private |
Return true if ref is not null and has an ancestor with pdgId inside 'motherPdgId_'.
Definition at line 202 of file TagProbeFitTreeProducer.cc.
References funct::abs(), edm::RefVector< C, T, F >::begin(), alignCSCRings::e, edm::RefVector< C, T, F >::end(), edm::Ref< C, T, F >::isNull(), visualization-live-secondInstance_cfg::m, and motherPdgId_.
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 216 of file TagProbeFitTreeProducer.cc.
References edm::getProcessParameterSetContainingModule(), edm::EDAnalyzer::moduleDescription(), and treeFiller_.
|
private |
InputTag to the collection of all probes.
Definition at line 74 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Check mother pdgId in unbiased inefficiency measurement.
Definition at line 72 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
Is this sample MC?
Definition at line 60 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Do we have to compute this.
Definition at line 70 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 85 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
The object that actually computes variables and fills the tree for unbiased MC.
Definition at line 81 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Possible pdgids for the mother. If empty, any truth-matched mu will be considered good.
Definition at line 64 of file TagProbeFitTreeProducer.cc.
Referenced by checkMother(), and TagProbeFitTreeProducer().
|
private |
Definition at line 82 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 62 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 83 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Token foran edm::Association<reco::GenParticle> from tags & probes to MC truth.
Definition at line 62 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
The object that produces pairs of tags and probes, making any arbitration needed.
Definition at line 77 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
The object that actually computes variables and fills the tree for T&P.
Definition at line 79 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), endJob(), and TagProbeFitTreeProducer().