9 std::vector<std::string> weightsfiles;
13 weightsfiles.push_back(path_mvaWeightFileEleID);
23 UInt_t ExpectedNBins = 1;
27 std::cout <<
"Error: Expected Number of bins = " << ExpectedNBins <<
" does not equal to weightsfiles.size() = "
34 for (
unsigned int i=0;
i<ExpectedNBins; ++
i) {
92 bool ptrange[3],etarange[3],purange[2];
93 ptrange[0]=pt > 2 && pt < 5;
94 ptrange[1]=pt > 5 && pt < 10;
96 etarange[0]=fabs(eta) < 0.8;
97 etarange[1]=fabs(eta) > 0.8 && fabs(eta) <1.4;
98 etarange[2]=fabs(eta) > 1.4;
103 for(
int kPU=0;kPU<2;kPU++)
104 for(
int kETA=0;kETA<3;kETA++)
105 for(
int kPT=0;kPT<3;kPT++){
106 if (purange[kPU] && ptrange[kPT] && etarange[kETA]) bin=
index;
117 evt.
getByLabel(
"offlinePrimaryVertices", FullprimaryVertexCollection);
134 kfchi2 =(validKF) ? myTrackRef->normalizedChi2() : 0 ;
135 kfhits =(validKF) ? myTrackRef->hitPattern().trackerLayersWithMeasurement() : -1. ;
float sigmaIphiIphi() const
~SoftElectronMVAEstimator()
float eSuperClusterOverP() const
virtual double p() const GCC11_FINAL
magnitude of momentum vector
SoftElectronMVAEstimator(const Configuration &)
TMVA::Reader * tmvaReader_
math::XYZVectorF trackMomentumAtVtx() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< std::string > vweightsfiles
TrackRef closestCtfTrackRef() const
bool isNonnull() const
Checks for non-null.
float deltaEtaSuperClusterTrackAtVtx() const
float sigmaIetaIeta() const
UInt_t GetMVABin(int pu, double eta, double pt) const
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
float deltaPhiSuperClusterTrackAtVtx() const
float eEleClusterOverPout() const
Float_t DeltaEtaTrackEcalSeed
float hcalOverEcalBc() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< TMVA::Reader * > fmvaReader
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
float deltaEtaEleClusterTrackAtCalo() const
T const * product() const
math::XYZVectorF trackMomentumAtEleClus() const
double mva(const reco::GsfElectron &myElectron, const edm::Event &evt)
float deltaEtaSeedClusterTrackAtCalo() const
T const * get() const
Returns C++ pointer to the item.
virtual float pt() const GCC11_FINAL
transverse momentum
float sigmaEtaEta() const
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack