Public Member Functions | |
ZMuMuEfficiency (const edm::ParameterSet &pset) | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
virtual void | analyze (const edm::Event &event, const edm::EventSetup &setup) |
bool | check_ifZmumu (const Candidate *dauGen0, const Candidate *dauGen1, const Candidate *dauGen2) |
virtual void | endJob () |
float | getParticleEta (const int ipart, const Candidate *dauGen0, const Candidate *dauGen1, const Candidate *dauGen2) |
Particle::LorentzVector | getParticleP4 (const int ipart, const Candidate *dauGen0, const Candidate *dauGen1, const Candidate *dauGen2) |
float | getParticlePhi (const int ipart, const Candidate *dauGen0, const Candidate *dauGen1, const Candidate *dauGen2) |
float | getParticlePt (const int ipart, const Candidate *dauGen0, const Candidate *dauGen1, const Candidate *dauGen2) |
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 | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
CurrentProcessingContext const * | currentContext () const |
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 28 of file ZMuMuEfficiency.cc.
ZMuMuEfficiency::ZMuMuEfficiency | ( | const edm::ParameterSet & | pset | ) |
Definition at line 104 of file ZMuMuEfficiency.cc.
References etamax_, h_DELTA_ZMuMuMassReco_dimuonMassGen_, h_DELTA_ZMuStaMassReco_dimuonMassGen_, h_DELTA_ZMuTrackMassReco_dimuonMassGen_, h_dimuonEtaGen_, h_dimuonEtaGenPassed_, h_dimuonMassGen_, h_dimuonMassGenPassed_, h_dimuonPtGen_, h_dimuonPtGenPassed_, h_etaMuonOverlappedToStandAlone_, h_etaMuonOverlappedToTrack_, h_etaStandAlone_, h_etaTrack_, h_muetaGen_, h_muetaGenPassed_, h_muptGen_, h_muptGenPassed_, h_nZMCfound_, h_ptMuonOverlappedToStandAlone_, h_ptMuonOverlappedToTrack_, h_ptStandAlone_, h_ptTrack_, h_ZetaGen_, h_ZetaGenPassed_, h_ZmassGen_, h_ZmassGenPassed_, h_ZptGen_, h_ZptGenPassed_, TFileDirectory::make(), TFileDirectory::mkdir(), n_zMuMufound_genZsele, n_zMuStafound_genZsele, n_zMuTrkfound_genZsele, nbinsEta_, nbinsPt_, noMCmatching, numberOfEventsWithZMuMufound, numberOfEventsWithZMuStafound, numberOfMatchedSelectedZMuMu_, numberOfMatchedSelectedZMuSta_, numberOfMatchedSelectedZMuTrack_exclusive, numberOfMatchedZMuMu_, numberOfMatchedZMuSta_, numberOfMatchedZMuTrack_exclusive, numberOfMatchedZMuTrack_matchedSelectedZMuMu, numberOfMatchedZMuTrack_matchedZMuMu, numberOfMatchedZMuTrack_notOverlapped, numberOfOverlappedStandAlone_, numberOfOverlappedTracks_, ptmin_, totalNumberOfevents, totalNumberOfZfound, totalNumberOfZPassed, ZMuTrack_exclusive_1match, ZMuTrack_exclusive_morematch, ZMuTrack_ZMuMu_1match, ZMuTrack_ZMuMu_2match, ZMuTrack_ZMuMu_morematch, ZMuTrackselected_exclusive_1match, and ZMuTrackselected_exclusive_morematch.
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 222 of file ZMuMuEfficiency.cc.
References check_ifZmumu(), gather_cfg::cout, reco::Candidate::daughter(), reco::Candidate::eta(), etamax_, genParticleCandidates2GenParticles_cfi::genParticles, genParticles_, getParticleEta(), getParticleP4(), getParticlePt(), globalMuonCandRef_, h_DELTA_ZMuMuMassReco_dimuonMassGen_, h_DELTA_ZMuStaMassReco_dimuonMassGen_, h_DELTA_ZMuTrackMassReco_dimuonMassGen_, h_dimuonEtaGen_, h_dimuonEtaGenPassed_, h_dimuonMassGen_, h_dimuonMassGenPassed_, h_dimuonPtGen_, h_dimuonPtGenPassed_, h_etaMuonOverlappedToStandAlone_, h_etaMuonOverlappedToTrack_, h_etaStandAlone_, h_etaTrack_, h_muetaGen_, h_muetaGenPassed_, h_muptGen_, h_muptGenPassed_, h_nZMCfound_, h_ptMuonOverlappedToStandAlone_, h_ptMuonOverlappedToTrack_, h_ptStandAlone_, h_ptTrack_, h_ZetaGen_, h_ZetaGenPassed_, h_ZmassGen_, h_ZmassGenPassed_, h_ZptGen_, h_ZptGenPassed_, i, reco::Candidate::isGlobalMuon(), trackerHitRTTI::isMatched(), edm::Ref< C, T, F >::isNonnull(), isomax_, j, create_public_lumi_plots::log, reco::Candidate::mass(), reco::Candidate::masterClone(), muonIso_, muonMatch_cfi::muonMatch, muonMatchMap_, patZpeak::muons, muons_, n_zMuMufound_genZsele, n_zMuStafound_genZsele, n_zMuTrkfound_genZsele, noMCmatching, reco::Candidate::numberOfDaughters(), numberOfEventsWithZMuMufound, numberOfEventsWithZMuStafound, numberOfMatchedSelectedZMuMu_, numberOfMatchedSelectedZMuSta_, numberOfMatchedSelectedZMuTrack_exclusive, numberOfMatchedZMuMu_, numberOfMatchedZMuSta_, numberOfMatchedZMuTrack_exclusive, numberOfMatchedZMuTrack_matchedSelectedZMuMu, numberOfMatchedZMuTrack_matchedZMuMu, reco::Candidate::pdgId(), reco::Candidate::pt(), ptmin_, mathSSE::sqrt(), standAlone_, standAloneIso_, standAloneMuonCandRef_, reco::Candidate::status(), funct::tan(), totalNumberOfevents, totalNumberOfZfound, totalNumberOfZPassed, trackIso_, testEve_cfg::tracks, tracks_, zMassMax_, zMassMin_, ZMuMuAnalysisNtupler_cff::zMuMu, zMuMu_, zMuMuMatchMap_, zMuStandAlone_, zMuStandAloneMatchMap_, zMuTrack_, ZMuTrack_exclusive_1match, ZMuTrack_exclusive_morematch, ZMuTrack_ZMuMu_1match, ZMuTrack_ZMuMu_2match, ZMuTrack_ZMuMu_morematch, zMuTrackMatchMap_, ZMuTrackselected_exclusive_1match, and ZMuTrackselected_exclusive_morematch.
|
private |
Definition at line 524 of file ZMuMuEfficiency.cc.
References reco::Candidate::pdgId().
Referenced by analyze().
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 672 of file ZMuMuEfficiency.cc.
References gather_cfg::cout, n_zMuMufound_genZsele, n_zMuStafound_genZsele, n_zMuTrkfound_genZsele, noMCmatching, numberOfEventsWithZMuMufound, numberOfEventsWithZMuStafound, numberOfMatchedSelectedZMuMu_, numberOfMatchedSelectedZMuSta_, numberOfMatchedSelectedZMuTrack_exclusive, numberOfMatchedZMuMu_, numberOfMatchedZMuSta_, numberOfMatchedZMuTrack_exclusive, numberOfMatchedZMuTrack_matchedSelectedZMuMu, numberOfMatchedZMuTrack_matchedZMuMu, mathSSE::sqrt(), totalNumberOfevents, totalNumberOfZfound, totalNumberOfZPassed, ZMuTrack_exclusive_1match, ZMuTrack_exclusive_morematch, ZMuTrack_ZMuMu_1match, ZMuTrack_ZMuMu_2match, ZMuTrack_ZMuMu_morematch, ZMuTrackselected_exclusive_1match, and ZMuTrackselected_exclusive_morematch.
|
private |
Definition at line 571 of file ZMuMuEfficiency.cc.
References abs, reco::Candidate::daughter(), reco::Candidate::eta(), gen::k, reco::Candidate::numberOfDaughters(), reco::Candidate::pdgId(), and reco::Candidate::status().
Referenced by analyze().
|
private |
Definition at line 637 of file ZMuMuEfficiency.cc.
References abs, reco::Candidate::daughter(), gen::k, reco::Candidate::numberOfDaughters(), reco::Candidate::p4(), reco::Candidate::pdgId(), and reco::Candidate::status().
Referenced by analyze().
|
private |
Definition at line 604 of file ZMuMuEfficiency.cc.
References abs, reco::Candidate::daughter(), gen::k, reco::Candidate::numberOfDaughters(), reco::Candidate::pdgId(), reco::Candidate::phi(), and reco::Candidate::status().
|
private |
Definition at line 538 of file ZMuMuEfficiency.cc.
References abs, reco::Candidate::daughter(), gen::k, reco::Candidate::numberOfDaughters(), reco::Candidate::pdgId(), reco::Candidate::pt(), and reco::Candidate::status().
Referenced by analyze().
|
private |
Definition at line 48 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 46 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 50 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 70 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 70 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 70 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 65 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 68 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 65 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 68 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 65 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 68 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 54 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 58 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 54 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 58 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 64 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 67 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 64 of file ZMuMuEfficiency.cc.
|
private |
Definition at line 67 of file ZMuMuEfficiency.cc.
|
private |
Definition at line 64 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 67 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 62 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 55 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 59 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 55 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 59 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 63 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 66 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 63 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 66 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 63 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 66 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 48 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 43 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 43 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 43 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 83 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 83 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 83 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 49 of file ZMuMuEfficiency.cc.
Referenced by ZMuMuEfficiency().
|
private |
Definition at line 49 of file ZMuMuEfficiency.cc.
Referenced by ZMuMuEfficiency().
|
private |
Definition at line 79 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 72 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 72 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 74 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 73 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 76 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 74 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 73 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 76 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 77 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 77 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 75 of file ZMuMuEfficiency.cc.
Referenced by ZMuMuEfficiency().
|
private |
Definition at line 75 of file ZMuMuEfficiency.cc.
Referenced by ZMuMuEfficiency().
|
private |
Definition at line 75 of file ZMuMuEfficiency.cc.
Referenced by ZMuMuEfficiency().
|
private |
Definition at line 51 of file ZMuMuEfficiency.cc.
|
private |
Definition at line 48 of file ZMuMuEfficiency.cc.
Referenced by analyze(), and ZMuMuEfficiency().
|
private |
Definition at line 45 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 45 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 50 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 78 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 78 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 78 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 44 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 50 of file ZMuMuEfficiency.cc.
|
private |
Definition at line 44 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 48 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 48 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 40 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 40 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 42 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 42 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 41 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 79 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 79 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 81 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 81 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 81 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 41 of file ZMuMuEfficiency.cc.
Referenced by analyze().
|
private |
Definition at line 80 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().
|
private |
Definition at line 80 of file ZMuMuEfficiency.cc.
Referenced by analyze(), endJob(), and ZMuMuEfficiency().