#include <EGammaMvaEleEstimator.h>
Public Types | |
enum | MVAType { kTrig = 0, kTrigNoIP = 1, kNonTrig = 2, kIsoRings, kTrigIDIsoCombined, kTrigIDIsoCombinedPUCorrected } |
Public Member Functions | |
void | bindVariables () |
EGammaMvaEleEstimator () | |
UInt_t | GetMVABin (double eta, double pt) const |
Double_t | IDIsoCombinedMvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, const reco::PFCandidateCollection &PFCandidates, double Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EATarget, bool printDebug=kFALSE) |
Double_t | IDIsoCombinedMvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t OneMinusE1x5E5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t d0, Double_t ip3d, 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, Double_t Rho, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
void | initialize (std::string methodName, std::string weightsfile, EGammaMvaEleEstimator::MVAType type) |
void | initialize (std::string methodName, EGammaMvaEleEstimator::MVAType type, Bool_t useBinnedVersion, std::vector< std::string > weightsfiles) |
Bool_t | isInitialized () const |
Double_t | isoMvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const reco::PFCandidateCollection &PFCandidates, double Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EATarget, const reco::GsfElectronCollection &IdentifiedElectrons, const reco::MuonCollection &IdentifiedMuons, bool printDebug=kFALSE) |
Double_t | isoMvaValue (Double_t Pt, Double_t Eta, Double_t Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget 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 | mvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE) |
Double_t | mvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, double rho, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE) |
Double_t | mvaValue (const pat::Electron &ele, double rho, bool printDebug=kFALSE) |
Double_t | mvaValue (const pat::Electron &ele, const reco::Vertex &vertex, double rho, bool useFull5x5=kFALSE, bool printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t d0, Double_t ip3d, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t rho, Double_t PreShowerOverRaw, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
~EGammaMvaEleEstimator () | |
–> 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 39 of file EGammaMvaEleEstimator.h.
Enumerator | |
---|---|
kTrig | |
kTrigNoIP | |
kNonTrig | |
kIsoRings | |
kTrigIDIsoCombined | |
kTrigIDIsoCombinedPUCorrected |
Definition at line 44 of file EGammaMvaEleEstimator.h.
EGammaMvaEleEstimator::EGammaMvaEleEstimator | ( | ) |
Definition at line 27 of file EGammaMvaEleEstimator.cc.
EGammaMvaEleEstimator::~EGammaMvaEleEstimator | ( | ) |
Definition at line 38 of file EGammaMvaEleEstimator.cc.
void EGammaMvaEleEstimator::bindVariables | ( | ) |
Definition at line 1945 of file EGammaMvaEleEstimator.cc.
UInt_t EGammaMvaEleEstimator::GetMVABin | ( | double | eta, |
double | pt | ||
) | const |
Definition at line 409 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::IDIsoCombinedMvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const TransientTrackBuilder & | transientTrackBuilder, | ||
EcalClusterLazyTools | myEcalCluster, | ||
const reco::PFCandidateCollection & | PFCandidates, | ||
double | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | EATarget, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1682 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::IDIsoCombinedMvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | OneMinusE1x5E5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | d0, | ||
Double_t | ip3d, | ||
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, | ||
Double_t | Rho, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 771 of file EGammaMvaEleEstimator.cc.
void EGammaMvaEleEstimator::initialize | ( | std::string | methodName, |
std::string | weightsfile, | ||
EGammaMvaEleEstimator::MVAType | type | ||
) |
Definition at line 47 of file EGammaMvaEleEstimator.cc.
Referenced by heppy::EGammaMvaEleEstimatorFWLite::initialize().
void EGammaMvaEleEstimator::initialize | ( | std::string | methodName, |
EGammaMvaEleEstimator::MVAType | type, | ||
Bool_t | useBinnedVersion, | ||
std::vector< std::string > | weightsfiles | ||
) |
Definition at line 59 of file EGammaMvaEleEstimator.cc.
|
inline |
Definition at line 61 of file EGammaMvaEleEstimator.h.
Double_t EGammaMvaEleEstimator::isoMvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const reco::PFCandidateCollection & | PFCandidates, | ||
double | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | EATarget, | ||
const reco::GsfElectronCollection & | IdentifiedElectrons, | ||
const reco::MuonCollection & | IdentifiedMuons, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1481 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::isoMvaValue | ( | Double_t | Pt, |
Double_t | Eta, | ||
Double_t | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | 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 919 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const TransientTrackBuilder & | transientTrackBuilder, | ||
EcalClusterLazyTools | myEcalCluster, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 997 of file EGammaMvaEleEstimator.cc.
Referenced by ElectronIdMVAProducer::filter(), heppy::EGammaMvaEleEstimatorFWLite::mvaValue(), and ElectronPATIdMVAProducer::produce().
Double_t EGammaMvaEleEstimator::mvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
double | rho, | ||
EcalClusterLazyTools | myEcalCluster, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1131 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | const pat::Electron & | ele, |
double | rho, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1368 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | const pat::Electron & | ele, |
const reco::Vertex & | vertex, | ||
double | rho, | ||
bool | useFull5x5 = kFALSE , |
||
bool | printDebug = kFALSE |
||
) |
Definition at line 1242 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | d0, | ||
Double_t | ip3d, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 454 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | rho, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 563 of file EGammaMvaEleEstimator.cc.
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 665 of file EGammaMvaEleEstimator.cc.
|
private |
Definition at line 252 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 251 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 253 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 289 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 290 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 291 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 292 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 293 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 281 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 263 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 265 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 264 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 277 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 275 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 278 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 285 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 269 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 257 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 294 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 295 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 296 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 297 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 298 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 261 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 274 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 276 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 282 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 283 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 258 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 259 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 260 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 299 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 300 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 301 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 302 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 303 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 271 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 270 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 279 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 286 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 272 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 287 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 267 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 268 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 255 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 250 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 249 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 254 of file EGammaMvaEleEstimator.h.