#include <TagProbeFitTreeProducer.cc>
Private Member Functions | |
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... | |
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::unique_ptr< tnp::BaseTreeFiller > | mcFiller_ |
std::unique_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::unique_ptr< tnp::BaseTreeFiller > | oldTagFiller_ |
std::unique_ptr< tnp::BaseTreeFiller > | pairFiller_ |
edm::EDGetTokenT< edm::Association< std::vector< reco::GenParticle > > > | probeMatchesToken_ |
std::unique_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::unique_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 &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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_.
|
override |
Definition at line 133 of file TagProbeFitTreeProducer.cc.
|
overrideprivate |
Definition at line 144 of file TagProbeFitTreeProducer.cc.
References allProbesToken_, checkMother(), checkMotherInUnbiasEff_, edm::Event::getByToken(), mps_fire::i, isMC_, edm::Ref< C, T, F >::isNonnull(), makeMCUnbiasTree_, ResonanceBuilder::mass, mcFiller_, TagProbeFitTreeAnalyzer_cfi::mcTrue, mcUnbiasFiller_, gen::n, oldTagFiller_, pairFiller_, probeMatchesToken_, edm::View< T >::refAt(), tnp::TagProbePairMaker::run(), edm::View< T >::size(), TrackRefitter_38T_cff::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(), MillePedeFileConverter_cfg::e, edm::RefVector< C, T, F >::end(), edm::Ref< C, T, F >::isNull(), funct::m, and motherPdgId_.
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 216 of file TagProbeFitTreeProducer.cc.
References DEFINE_FWK_MODULE, 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().