babymaker
e95a6a9342d4604277fe7cc6149b6b5b24447d89
|
#include <lepton_tools.hh>
Public Types | |
enum | CutLevel { kVeto, kLoose, kMedium, kMediumICHEP, kTight } |
Public Member Functions | |
lepton_tools () | |
~lepton_tools () | |
template<class T > | |
T | chooseVal (CutLevel threshold, T valVeto, T valLoose, T valMedium, T valTight) |
bool | isVetoMuon (const pat::Muon &lep, edm::Handle< reco::VertexCollection > vtx, double lepIso) |
bool | isSignalMuon (const pat::Muon &lep, edm::Handle< reco::VertexCollection > vtx, double lepIso) |
bool | idMuon (const pat::Muon &lep, edm::Handle< reco::VertexCollection > vtx, CutLevel threshold) |
bool | vertexMuon (const pat::Muon &lep, edm::Handle< reco::VertexCollection > vtx, double &dz, double &d0) |
double | getEffAreaMuon (double eta) |
double | getRelIsolation (const pat::Muon &lep, double rho) |
bool | isVetoElectron (const pat::Electron &lep, edm::Handle< reco::VertexCollection > vtx, double lepIso) |
bool | isSignalElectron (const pat::Electron &lep, edm::Handle< reco::VertexCollection > vtx, double lepIso) |
bool | idElectron (const pat::Electron &lep, edm::Handle< reco::VertexCollection > vtx, CutLevel threshold, bool doIso=false) |
bool | vertexElectron (const pat::Electron &lep, edm::Handle< reco::VertexCollection > vtx, double &dz, double &d0) |
double | getEffAreaElectron (double eta) |
double | getRelIsolation (const pat::Electron &lep, double rho) |
double | getPFIsolation (edm::Handle< pat::PackedCandidateCollection > pfcands, const reco::Candidate *ptcl, double r_iso_min, double r_iso_max, double kt_scale, double rho, bool charged_only) |
vCands | getIsoTracks (edm::Handle< pat::PackedCandidateCollection > pfcands, double met, double met_phi) |
vCands | getRA4IsoTracks (edm::Handle< pat::PackedCandidateCollection > pfcands, double met, double met_phi, double rhoEventCentral, std::vector< float > &isos, std::vector< float > &relisos, int primary_pdg) |
bool | outInOnly (const reco::Muon &mu) const |
bool | preselection (const reco::Muon &mu, bool selectClones) const |
bool | tighterId (const reco::Muon &mu) const |
bool | tightGlobal (const reco::Muon &mu) const |
bool | safeId (const reco::Muon &mu) const |
bool | partnerId (const reco::Muon &mu) const |
std::set< unsigned > | badGlobalMuonSelector (edm::Handle< reco::VertexCollection > vtx, edm::Handle< pat::MuonCollection > muons, bool selectClones) |
Static Public Member Functions | |
static std::pair< double, double > | getScaleFactor (const reco::Candidate &cand) |
static std::pair< double, double > | getScaleFactor (const vCands &sig_leps) |
static std::pair< double, double > | getScaleFactorFs (const reco::Candidate &cand) |
static std::pair< double, double > | getScaleFactorFs (const vCands &sig_leps) |
Public Attributes | |
const float | SignalLeptonPtCut = 20.0 |
const float | VetoLeptonPtCut = 10.0 |
const float | MuonEtaCut = 2.4 |
const float | ElectronEtaCut = 2.5 |
const float | MuonMiniIsoCut = 0.2 |
const float | ElectronMiniIsoCut = 0.1 |
Static Private Member Functions | |
static std::pair< double, double > | getScaleFactor (const reco::Muon &lep) |
static std::pair< double, double > | getScaleFactor (const pat::Electron &lep) |
static std::pair< double, double > | getScaleFactorFs (const reco::Muon &lep) |
static std::pair< double, double > | getScaleFactorFs (const pat::Electron &lep) |
Static Private Attributes | |
static const TH2F | sf_full_muon_medium |
static const TH2F | sf_full_muon_iso |
static const TH2F | sf_full_muon_vtx |
static const TH2F | sf_full_electron_medium |
static const TH2F | sf_full_electron_iso |
static const TH2F | sf_full_electron_tracking |
static const TH2D | sf_fast_muon_medium |
static const TH2D | sf_fast_muon_iso |
static const TH2D | sf_fast_electron_mediumiso |
Definition at line 22 of file lepton_tools.hh.
Enumerator | |
---|---|
kVeto | |
kLoose | |
kMedium | |
kMediumICHEP | |
kTight |
Definition at line 36 of file lepton_tools.hh.
lepton_tools::lepton_tools | ( | ) |
Definition at line 749 of file lepton_tools.cc.
lepton_tools::~lepton_tools | ( | ) |
Definition at line 752 of file lepton_tools.cc.
set< unsigned > lepton_tools::badGlobalMuonSelector | ( | edm::Handle< reco::VertexCollection > | vtx, |
edm::Handle< pat::MuonCollection > | muons, | ||
bool | selectClones | ||
) |
Definition at line 692 of file lepton_tools.cc.
Referenced by chooseVal().
|
inline |
Definition at line 38 of file lepton_tools.hh.
References badGlobalMuonSelector(), getEffAreaElectron(), getEffAreaMuon(), getIsoTracks(), getPFIsolation(), getRA4IsoTracks(), getRelIsolation(), getScaleFactor(), getScaleFactorFs(), idElectron(), idMuon(), isSignalElectron(), isSignalMuon(), isVetoElectron(), isVetoMuon(), kLoose, kMedium, kMediumICHEP, kVeto, bmaker_full_cfg::met, outInOnly(), partnerId(), preselection(), safeId(), tighterId(), tightGlobal(), vertexElectron(), and vertexMuon().
double lepton_tools::getEffAreaElectron | ( | double | eta | ) |
Definition at line 391 of file lepton_tools.cc.
Referenced by chooseVal().
double lepton_tools::getEffAreaMuon | ( | double | eta | ) |
Definition at line 251 of file lepton_tools.cc.
Referenced by chooseVal().
vCands lepton_tools::getIsoTracks | ( | edm::Handle< pat::PackedCandidateCollection > | pfcands, |
double | met, | ||
double | met_phi | ||
) |
Definition at line 578 of file lepton_tools.cc.
References utilities::getMT().
Referenced by chooseVal().
double lepton_tools::getPFIsolation | ( | edm::Handle< pat::PackedCandidateCollection > | pfcands, |
const reco::Candidate * | ptcl, | ||
double | r_iso_min, | ||
double | r_iso_max, | ||
double | kt_scale, | ||
double | rho, | ||
bool | charged_only | ||
) |
Definition at line 522 of file lepton_tools.cc.
Referenced by chooseVal().
vCands lepton_tools::getRA4IsoTracks | ( | edm::Handle< pat::PackedCandidateCollection > | pfcands, |
double | met, | ||
double | met_phi, | ||
double | rhoEventCentral, | ||
std::vector< float > & | isos, | ||
std::vector< float > & | relisos, | ||
int | primary_pdg | ||
) |
Definition at line 622 of file lepton_tools.cc.
Referenced by chooseVal().
double lepton_tools::getRelIsolation | ( | const pat::Muon & | lep, |
double | rho | ||
) |
Definition at line 261 of file lepton_tools.cc.
Referenced by chooseVal().
double lepton_tools::getRelIsolation | ( | const pat::Electron & | lep, |
double | rho | ||
) |
Definition at line 403 of file lepton_tools.cc.
|
static |
Definition at line 417 of file lepton_tools.cc.
References ERROR.
Referenced by chooseVal(), bmaker_full::setDiLepMass(), and bmaker_full::setElMuMass().
|
static |
Definition at line 428 of file lepton_tools.cc.
References ERROR, and anonymous_namespace{lepton_tools.cc}::MergeSF().
|
staticprivate |
Definition at line 455 of file lepton_tools.cc.
References anonymous_namespace{lepton_tools.cc}::GetSF(), and anonymous_namespace{lepton_tools.cc}::MergeSF().
|
staticprivate |
Definition at line 474 of file lepton_tools.cc.
References anonymous_namespace{lepton_tools.cc}::GetSF(), and anonymous_namespace{lepton_tools.cc}::MergeSF().
|
static |
|
static |
Definition at line 447 of file lepton_tools.cc.
References ERROR, and anonymous_namespace{lepton_tools.cc}::MergeSF().
|
staticprivate |
Definition at line 493 of file lepton_tools.cc.
References anonymous_namespace{lepton_tools.cc}::GetSF(), and anonymous_namespace{lepton_tools.cc}::MergeSF().
|
staticprivate |
Definition at line 508 of file lepton_tools.cc.
References anonymous_namespace{lepton_tools.cc}::GetSF(), and anonymous_namespace{lepton_tools.cc}::MergeSF().
bool lepton_tools::idElectron | ( | const pat::Electron & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
CutLevel | threshold, | ||
bool | doIso = false |
||
) |
Definition at line 302 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::idMuon | ( | const pat::Muon & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
CutLevel | threshold | ||
) |
Definition at line 214 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::isSignalElectron | ( | const pat::Electron & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double | lepIso | ||
) |
Definition at line 278 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::isSignalMuon | ( | const pat::Muon & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double | lepIso | ||
) |
Definition at line 190 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::isVetoElectron | ( | const pat::Electron & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double | lepIso | ||
) |
Definition at line 290 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::isVetoMuon | ( | const pat::Muon & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double | lepIso | ||
) |
Definition at line 202 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::outInOnly | ( | const reco::Muon & | mu | ) | const |
Definition at line 671 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::partnerId | ( | const reco::Muon & | mu | ) | const |
Definition at line 688 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::preselection | ( | const reco::Muon & | mu, |
bool | selectClones | ||
) | const |
Definition at line 675 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::safeId | ( | const reco::Muon & | mu | ) | const |
Definition at line 684 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::tighterId | ( | const reco::Muon & | mu | ) | const |
Definition at line 678 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::tightGlobal | ( | const reco::Muon & | mu | ) | const |
Definition at line 681 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::vertexElectron | ( | const pat::Electron & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double & | dz, | ||
double & | d0 | ||
) |
Definition at line 380 of file lepton_tools.cc.
Referenced by chooseVal().
bool lepton_tools::vertexMuon | ( | const pat::Muon & | lep, |
edm::Handle< reco::VertexCollection > | vtx, | ||
double & | dz, | ||
double & | d0 | ||
) |
Definition at line 240 of file lepton_tools.cc.
Referenced by chooseVal().
const float lepton_tools::ElectronEtaCut = 2.5 |
Definition at line 32 of file lepton_tools.hh.
const float lepton_tools::ElectronMiniIsoCut = 0.1 |
Definition at line 34 of file lepton_tools.hh.
const float lepton_tools::MuonEtaCut = 2.4 |
Definition at line 31 of file lepton_tools.hh.
const float lepton_tools::MuonMiniIsoCut = 0.2 |
Definition at line 33 of file lepton_tools.hh.
|
staticprivate |
Definition at line 97 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 97 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 97 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
|
staticprivate |
Definition at line 96 of file lepton_tools.hh.
Referenced by anonymous_namespace{lepton_tools.cc}::GraphToHist().
const float lepton_tools::SignalLeptonPtCut = 20.0 |
Definition at line 29 of file lepton_tools.hh.
const float lepton_tools::VetoLeptonPtCut = 10.0 |
Definition at line 30 of file lepton_tools.hh.