#include <TagProbeFitTreeProducer.cc>
Public Member Functions | |
TagProbeFitTreeProducer (const edm::ParameterSet &) | |
~TagProbeFitTreeProducer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
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 () |
Private Attributes | |
edm::InputTag | allProbes_ |
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::InputTag | probeMatches_ |
std::auto_ptr < tnp::BaseTreeFiller > | tagFiller_ |
edm::InputTag | tagMatches_ |
InputTag to an 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 |
typedef WorkerT< EDAnalyzer > | WorkerType |
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::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 51 of file TagProbeFitTreeProducer.cc.
|
explicit |
Definition at line 94 of file TagProbeFitTreeProducer.cc.
References edm::ParameterSet::addParameter(), allProbes_, edm::ParameterSet::empty(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), isMC_, makeMCUnbiasTree_, mcFiller_, mcUnbiasFiller_, motherPdgId_, pairFiller_, probeMatches_, tagFiller_, tagMatches_, and treeFiller_.
TagProbeFitTreeProducer::~TagProbeFitTreeProducer | ( | ) |
Definition at line 136 of file TagProbeFitTreeProducer.cc.
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 147 of file TagProbeFitTreeProducer.cc.
References allProbes_, checkMother(), checkMotherInUnbiasEff_, edm::Event::getByLabel(), i, isMC_, edm::Ref< C, T, F >::isNonnull(), makeMCUnbiasTree_, mcFiller_, mcUnbiasFiller_, n, oldTagFiller_, pairFiller_, probeMatches_, tnp::TagProbePairMaker::run(), alcazmumu_cfi::src, tagFiller_, tagMatches_, 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 abs, edm::RefVector< C, T, F >::begin(), alignCSCRings::e, edm::RefVector< C, T, F >::end(), edm::Ref< C, T, F >::isNull(), m, and motherPdgId_.
Referenced by analyze().
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 216 of file TagProbeFitTreeProducer.cc.
References edm::getProcessParameterSet(), and treeFiller_.
|
private |
InputTag to the collection of all probes.
Definition at line 77 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Check mother pdgId in unbiased inefficiency measurement.
Definition at line 75 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
Is this sample MC?
Definition at line 63 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Do we have to compute this.
Definition at line 73 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 88 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 84 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 67 of file TagProbeFitTreeProducer.cc.
Referenced by checkMother(), and TagProbeFitTreeProducer().
|
private |
Definition at line 85 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
Definition at line 87 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 65 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
Definition at line 86 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), and TagProbeFitTreeProducer().
|
private |
InputTag to an edm::Association<reco::GenParticle> from tags & probes to MC truth.
Definition at line 65 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 80 of file TagProbeFitTreeProducer.cc.
Referenced by analyze().
|
private |
The object that actually computes variables and fills the tree for T&P.
Definition at line 82 of file TagProbeFitTreeProducer.cc.
Referenced by analyze(), endJob(), and TagProbeFitTreeProducer().