16 = conf.
getParameter<std::vector<std::string> >(
"weightFileNames");
20 <<
"wrong number of weightfiles" << std::endl;
52 <<
" fbrem " << vars[11]
53 <<
" kfchi2 " << vars[9]
54 <<
" mykfhits " << vars[0]
55 <<
" gsfchi2 " << vars[10]
56 <<
" deta " << vars[15]
57 <<
" dphi " << vars[16]
58 <<
" detacalo " << vars[17]
61 <<
" etawidth " << vars[5]
62 <<
" phiwidth " << vars[6]
63 <<
" OneMinusE1x5E5x5 " << vars[3]
66 <<
" EoP " << vars[12]
67 <<
" IoEmIoP " << vars[14]
68 <<
" eleEoPout " << vars[13]
71 <<
" eta " << vars[21]
72 <<
" isBarrel " << vars[19]
73 <<
" isEndcap " << vars[20]
76 std::cout <<
" ### MVA " << result << std::endl;
89 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
90 <<
" but appears to be neither" << std::endl;
92 const float pt = eleRecoPtr->
pt();
103 if (pt < ptSplit &&
std::abs(eta) < ebSplit)
109 if (pt < ptSplit &&
std::abs(eta) >= ebeeSplit)
112 if (pt >= ptSplit &&
std::abs(eta) < ebSplit)
118 if (pt >= ptSplit &&
std::abs(eta) >= ebeeSplit)
144 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
145 <<
" but appears to be neither" << std::endl;
166 allMVAVars.
kfhits = (validKF) ? myTrackRef->hitPattern().trackerLayersWithMeasurement() : -1. ;
172 allMVAVars.
etawidth = superCluster->etaWidth();
173 allMVAVars.
phiwidth = superCluster->phiWidth();
176 allMVAVars.
PreShowerOverRaw = superCluster->preshowerEnergy() / superCluster->rawEnergy();
178 allMVAVars.
kfchi2 = (validKF) ? myTrackRef->normalizedChi2() : 0;
190 allMVAVars.
pt = eleRecoPtr->
pt();
191 const float scEta = superCluster->eta();
195 allMVAVars.
SCeta = scEta;
199 std::vector<float> vars;
294 "ElectronMVAEstimatorRun2Phys14NonTrig");
T getParameter(std::string const &) const
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
virtual TrackRef closestCtfTrackRef() const
bool isNonnull() const
Checks for non-null.
float eSuperClusterOverP() const
float full5x5_e5x5() const
float full5x5_e1x5() const
T const * get() const
Returns C++ pointer to the item.
float full5x5_sigmaIphiIphi() const
double pt() const final
transverse momentum
float full5x5_sigmaIetaIeta() const
std::vector< float > packMVAVariables(const Args...args) const
std::vector< std::unique_ptr< const GBRForest > > _gbrForests
float deltaEtaSuperClusterTrackAtVtx() const
float hadronicOverEm() const
std::vector< float > fillMVAVariables(const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override
float deltaPhiSuperClusterTrackAtVtx() const
ElectronMVAEstimatorRun2Phys14NonTrig(const edm::ParameterSet &conf)
Abs< T >::type abs(const T &t)
float eEleClusterOverPout() const
bool isEndcap(GeomDetEnumerators::SubDetector m)
float mvaValue(const edm::Ptr< reco::Candidate > &particle, const edm::Event &evt) const override
double p() const final
magnitude of momentum vector
void constrainMVAVariables(AllVariables &vars) const
bool isEndcapCategory(int category) const
reco::TrackRef closestCtfTrackRef() const override
override the reco::GsfElectron::closestCtfTrackRef method, to access the internal storage of the trac...
float deltaEtaSeedClusterTrackAtCalo() const
SuperClusterRef superCluster() const override
reference to a SuperCluster
#define DEFINE_EDM_PLUGIN(factory, type, name)
~ElectronMVAEstimatorRun2Phys14NonTrig() override
int findCategory(const edm::Ptr< reco::Candidate > &particle) const override