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;
134 kfchi2 =(validKF) ? myTrackRef->normalizedChi2() : 0 ;
135 kfhits =(validKF) ? myTrackRef->hitPattern().trackerLayersWithMeasurement() : -1. ;
float sigmaIphiIphi() const
virtual double p() const
magnitude of momentum vector
bool isNonnull() const
Checks for non-null.
~SoftElectronMVAEstimator()
float eSuperClusterOverP() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
SoftElectronMVAEstimator(const Configuration &)
TMVA::Reader * tmvaReader_
math::XYZVectorF trackMomentumAtVtx() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::vector< std::string > vweightsfiles
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
TrackRef closestCtfTrackRef() const
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
T const * get() const
Returns C++ pointer to the item.
Float_t DeltaEtaTrackEcalSeed
float hcalOverEcalBc() const
std::vector< TMVA::Reader * > fmvaReader
T const * product() const
float deltaEtaEleClusterTrackAtCalo() const
math::XYZVectorF trackMomentumAtEleClus() const
double mva(const reco::GsfElectron &myElectron, const edm::Event &evt)
float deltaEtaSeedClusterTrackAtCalo() const
edm::EDGetTokenT< reco::VertexCollection > vtxCollection
float sigmaEtaEta() const
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack