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)
135 std::unique_ptr<const GBRForest>
142 TMVA::Reader tmpTMVAReader(
"!Color:Silent:Error" );
152 tmpTMVAReader.AddVariable(
"ele_oldsigmaietaieta", &
_allMVAVars.
see);
153 tmpTMVAReader.AddVariable(
"ele_oldsigmaiphiiphi", &
_allMVAVars.
spp);
189 return std::make_unique<const GBRForest>(
dynamic_cast<TMVA::MethodBDT*
>(tmpTMVAReader.FindMVA(
_MethodName) ) );
202 <<
" given particle is expected to be reco::GsfElectron or pat::Electron," << std::endl
203 <<
" but appears to be neither" << std::endl;
224 allMVAVars.
kfhits = (validKF) ? myTrackRef->hitPattern().trackerLayersWithMeasurement() : -1. ;
230 allMVAVars.
etawidth = superCluster->etaWidth();
231 allMVAVars.
phiwidth = superCluster->phiWidth();
234 allMVAVars.
PreShowerOverRaw = superCluster->preshowerEnergy() / superCluster->rawEnergy();
236 allMVAVars.
kfchi2 = (validKF) ? myTrackRef->normalizedChi2() : 0;
248 allMVAVars.
pt = eleRecoPtr->
pt();
249 const float scEta = superCluster->eta();
253 allMVAVars.
SCeta = scEta;
257 std::vector<float> vars;
354 "ElectronMVAEstimatorRun2Phys14NonTrig");
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
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
TrackRef closestCtfTrackRef() const
float full5x5_sigmaIetaIeta() const
std::vector< float > packMVAVariables(const Args...args) const
std::vector< std::unique_ptr< const GBRForest > > _gbrForests
float deltaEtaSuperClusterTrackAtVtx() const
std::unique_ptr< const GBRForest > createSingleReader(const int iCategory, const edm::FileInPath &weightFile)
float hadronicOverEm() const
std::vector< float > fillMVAVariables(const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override
reco::TrackRef closestCtfTrackRef() const
override the reco::GsfElectron::closestCtfTrackRef method, to access the internal storage of the trac...
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
float deltaPhiSuperClusterTrackAtVtx() const
ElectronMVAEstimatorRun2Phys14NonTrig(const edm::ParameterSet &conf)
Abs< T >::type abs(const T &t)
virtual double p() const final
magnitude of momentum vector
float eEleClusterOverPout() const
~ElectronMVAEstimatorRun2Phys14NonTrig()
bool isEndcap(GeomDetEnumerators::SubDetector m)
float mvaValue(const edm::Ptr< reco::Candidate > &particle, const edm::Event &evt) const override
void constrainMVAVariables(AllVariables &vars) const
bool isEndcapCategory(int category) const
float deltaEtaSeedClusterTrackAtCalo() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::string fullPath() const
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
int findCategory(const edm::Ptr< reco::Candidate > &particle) const override