#include <MuonMVAEstimator.h>
Public Types | |
enum | MVAType { kIDIsoRingsCombined = 0, kIsoRings, kIsoDeltaR, kID } |
Public Member Functions | |
void | bindVariables () |
UInt_t | GetMVABin (double eta, double pt, Bool_t isGlobal, Bool_t isTrackerMuon) const |
void | initialize (std::string methodName, std::string weightsfile, MuonMVAEstimator::MVAType type) |
void | initialize (std::string methodName, MuonMVAEstimator::MVAType type, Bool_t useBinnedVersion, std::vector< std::string > weightsfiles) |
Bool_t | isInitialized () const |
MuonMVAEstimator () | |
Double_t | mvaValue_Iso (Double_t Pt, Double_t Eta, Bool_t isGlobalMuon, Bool_t isTrackerMuon, Double_t Rho, MuonEffectiveArea::MuonEffectiveAreaTarget EATarget, Double_t ChargedIso_DR0p0To0p1, Double_t ChargedIso_DR0p1To0p2, Double_t ChargedIso_DR0p2To0p3, Double_t ChargedIso_DR0p3To0p4, Double_t ChargedIso_DR0p4To0p5, Double_t GammaIso_DR0p0To0p1, Double_t GammaIso_DR0p1To0p2, Double_t GammaIso_DR0p2To0p3, Double_t GammaIso_DR0p3To0p4, Double_t GammaIso_DR0p4To0p5, Double_t NeutralHadronIso_DR0p0To0p1, Double_t NeutralHadronIso_DR0p1To0p2, Double_t NeutralHadronIso_DR0p2To0p3, Double_t NeutralHadronIso_DR0p3To0p4, Double_t NeutralHadronIso_DR0p4To0p5, Bool_t printDebug=kFALSE) |
Double_t | mvaValueIso (HWW &, Int_t imu, Double_t rho, MuonEffectiveArea::MuonEffectiveAreaTarget EATarget, std::vector< Int_t > IdentifiedEle, std::vector< Int_t > IdentifiedMu, Bool_t printDebug) |
void | SetPrintMVADebug (bool b) |
~MuonMVAEstimator () | |
–> NOTE if you want to use this class as standalone without the CMSSW part you need to uncomment the below line and compile normally with scramv1 b Then you need just to load it in your root macro the lib with the correct path, eg: gSystem->Load("/data/benedet/CMSSW_5_2_2/lib/slc5_amd64_gcc462/pluginEGammaEGammaAnalysisTools.so");
Definition at line 28 of file MuonMVAEstimator.h.
Enumerator | |
---|---|
kIDIsoRingsCombined | |
kIsoRings | |
kIsoDeltaR | |
kID |
Definition at line 33 of file MuonMVAEstimator.h.
MuonMVAEstimator::MuonMVAEstimator | ( | ) |
Definition at line 54 of file MuonMVAEstimator.cc.
References fTMVAReader.
MuonMVAEstimator::~MuonMVAEstimator | ( | ) |
Definition at line 67 of file MuonMVAEstimator.cc.
References fTMVAReader, and i.
void MuonMVAEstimator::bindVariables | ( | ) |
Definition at line 277 of file MuonMVAEstimator.cc.
unsigned int MuonMVAEstimator::GetMVABin | ( | double | eta, |
double | pt, | ||
Bool_t | isGlobal, | ||
Bool_t | isTrackerMuon | ||
) | const |
Definition at line 223 of file MuonMVAEstimator.cc.
References newFWLiteAna::bin, fMVAType, kID, kIDIsoRingsCombined, kIsoDeltaR, and kIsoRings.
Referenced by mvaValue_Iso().
void MuonMVAEstimator::initialize | ( | std::string | methodName, |
std::string | weightsfile, | ||
MuonMVAEstimator::MVAType | type | ||
) |
Definition at line 74 of file MuonMVAEstimator.cc.
Referenced by HWWAnalyzer::HWWAnalyzer().
void MuonMVAEstimator::initialize | ( | std::string | methodName, |
MuonMVAEstimator::MVAType | type, | ||
Bool_t | useBinnedVersion, | ||
std::vector< std::string > | weightsfiles | ||
) |
Definition at line 85 of file MuonMVAEstimator.cc.
References fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_MuCaloCompatibility, fMVAVar_MuDeltaRMean, fMVAVar_MuDeltaRSum, fMVAVar_MuDensity, fMVAVar_MuEmEnergy, fMVAVar_MuEmS9Energy, fMVAVar_MuEta, fMVAVar_MuGlobalNchi2, fMVAVar_MuHadEnergy, fMVAVar_MuHadS9Energy, fMVAVar_MuNMatches, fMVAVar_MuNPixelHits, fMVAVar_MuNTrackerHits, fMVAVar_MuNValidHits, fMVAVar_MuPt, fMVAVar_MuRelIsoPFCharged, fMVAVar_MuRelIsoPFNeutral, fMVAVar_MuRelIsoPFPhotons, fMVAVar_MuSegmentCompatibility, fMVAVar_MuTkNchi2, fMVAVar_MuTrkKink, fMVAVar_MuTypeBits, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fNMVABins, fTMVAReader, fUseBinnedVersion, i, kID, kIDIsoRingsCombined, kIsoDeltaR, and kIsoRings.
|
inline |
Double_t MuonMVAEstimator::mvaValue_Iso | ( | Double_t | Pt, |
Double_t | Eta, | ||
Bool_t | isGlobalMuon, | ||
Bool_t | isTrackerMuon, | ||
Double_t | Rho, | ||
MuonEffectiveArea::MuonEffectiveAreaTarget | EATarget, | ||
Double_t | ChargedIso_DR0p0To0p1, | ||
Double_t | ChargedIso_DR0p1To0p2, | ||
Double_t | ChargedIso_DR0p2To0p3, | ||
Double_t | ChargedIso_DR0p3To0p4, | ||
Double_t | ChargedIso_DR0p4To0p5, | ||
Double_t | GammaIso_DR0p0To0p1, | ||
Double_t | GammaIso_DR0p1To0p2, | ||
Double_t | GammaIso_DR0p2To0p3, | ||
Double_t | GammaIso_DR0p3To0p4, | ||
Double_t | GammaIso_DR0p4To0p5, | ||
Double_t | NeutralHadronIso_DR0p0To0p1, | ||
Double_t | NeutralHadronIso_DR0p1To0p2, | ||
Double_t | NeutralHadronIso_DR0p2To0p3, | ||
Double_t | NeutralHadronIso_DR0p3To0p4, | ||
Double_t | NeutralHadronIso_DR0p4To0p5, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 285 of file MuonMVAEstimator.cc.
References fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fTMVAReader, MuonEffectiveArea::GetMuonEffectiveArea(), GetMVABin(), MuonEffectiveArea::kMuGammaIsoDR0p0To0p1, MuonEffectiveArea::kMuGammaIsoDR0p1To0p2, MuonEffectiveArea::kMuGammaIsoDR0p2To0p3, MuonEffectiveArea::kMuGammaIsoDR0p3To0p4, MuonEffectiveArea::kMuGammaIsoDR0p4To0p5, MuonEffectiveArea::kMuNeutralHadronIsoDR0p0To0p1, MuonEffectiveArea::kMuNeutralHadronIsoDR0p1To0p2, MuonEffectiveArea::kMuNeutralHadronIsoDR0p2To0p3, MuonEffectiveArea::kMuNeutralHadronIsoDR0p3To0p4, MuonEffectiveArea::kMuNeutralHadronIsoDR0p4To0p5, LogDebug, Max(), and Min().
Referenced by mvaValueIso().
Double_t MuonMVAEstimator::mvaValueIso | ( | HWW & | hww, |
Int_t | imu, | ||
Double_t | rho, | ||
MuonEffectiveArea::MuonEffectiveAreaTarget | EATarget, | ||
std::vector< Int_t > | IdentifiedEle, | ||
std::vector< Int_t > | IdentifiedMu, | ||
Bool_t | printDebug | ||
) |
Definition at line 359 of file MuonMVAEstimator.cc.
References funct::abs(), funct::cos(), dzPVmu(), HWW::els_etaSC(), HWW::els_p4(), HWW::els_trkidx(), reco::tau::disc::Eta(), first, fisInitialized, ke, kgamma, kmu, HWW::mus_p4(), HWW::mus_sta_d0(), HWW::mus_sta_p4(), HWW::mus_trk_p4(), HWW::mus_trkidx(), HWW::mus_type(), HWW::mus_vertex_p4(), mvaValue_Iso(), HWW::pfcands_p4(), HWW::pfcands_particleId(), HWW::pfcands_pfelsidx(), HWW::pfcands_trkidx(), HWW::pfels_elsidx(), funct::pow(), reco::tau::disc::Pt(), rho, mathSSE::sqrt(), translatePdgIdToType(), HWWFunctions::trks_dz_pv(), and HWW::vtxs_position().
Referenced by HWWFunctions::passMuonRingsMVA(), and HWWFunctions::passMuonRingsMVAFO().
|
inline |
|
private |
Definition at line 87 of file MuonMVAEstimator.h.
Referenced by initialize(), isInitialized(), mvaValue_Iso(), and mvaValueIso().
|
private |
Definition at line 86 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 89 of file MuonMVAEstimator.h.
Referenced by GetMVABin(), initialize(), and mvaValue_Iso().
|
private |
Definition at line 117 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 118 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 119 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 120 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 121 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 122 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 123 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 124 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 125 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 126 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 110 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 105 of file MuonMVAEstimator.h.
|
private |
Definition at line 138 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 139 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 140 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 112 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 114 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 94 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 100 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 111 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 113 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 106 of file MuonMVAEstimator.h.
|
private |
Definition at line 107 of file MuonMVAEstimator.h.
|
private |
Definition at line 104 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 103 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 102 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 101 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 95 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 135 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 136 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 137 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 109 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 99 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 108 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 96 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 127 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 128 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 129 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 130 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 131 of file MuonMVAEstimator.h.
Referenced by initialize(), and mvaValue_Iso().
|
private |
Definition at line 91 of file MuonMVAEstimator.h.
Referenced by initialize().
|
private |
Definition at line 88 of file MuonMVAEstimator.h.
Referenced by SetPrintMVADebug().
|
private |
Definition at line 85 of file MuonMVAEstimator.h.
Referenced by initialize(), MuonMVAEstimator(), mvaValue_Iso(), and ~MuonMVAEstimator().
|
private |
Definition at line 90 of file MuonMVAEstimator.h.
Referenced by initialize().