15 tmvaReader_ =
new TMVA::Reader(
"!Color:Silent");
16 tmvaReader_->AddVariable(
"fbrem",&fbrem);
17 tmvaReader_->AddVariable(
"detain", &detain);
18 tmvaReader_->AddVariable(
"dphiin", &dphiin);
19 tmvaReader_->AddVariable(
"sieie", &sieie);
20 tmvaReader_->AddVariable(
"hoe", &hoe);
21 tmvaReader_->AddVariable(
"eop", &eop);
22 tmvaReader_->AddVariable(
"e1x5e5x5", &e1x5e5x5);
23 tmvaReader_->AddVariable(
"eleopout", &eleopout);
24 tmvaReader_->AddVariable(
"detaeleout", &detaeleout);
25 tmvaReader_->AddVariable(
"kfchi2", &kfchi2);
26 tmvaReader_->AddVariable(
"kfhits", &mykfhits);
27 tmvaReader_->AddVariable(
"mishits",&mymishits);
28 tmvaReader_->AddVariable(
"dist", &absdist);
29 tmvaReader_->AddVariable(
"dcot", &absdcot);
30 tmvaReader_->AddVariable(
"nvtx", &myNvtx);
32 tmvaReader_->AddSpectator(
"eta",&
eta);
33 tmvaReader_->AddSpectator(
"pt",&
pt);
34 tmvaReader_->AddSpectator(
"ecalseed",&ecalseed);
39 tmvaReader_->BookMVA(
"BDTSimpleCat",
fileName.c_str());
43 std::vector<std::string> weightsfiles;
47 weightsfiles.push_back(path_mvaWeightFileEleID);
74 tmvaReader_->BookMVA(
"BDTSimpleCat",weightsfiles[0]);
94 kfchi2 = (validKF) ? myTrackRef->normalizedChi2() : 0 ;
95 kfhits = (validKF) ? myTrackRef->hitPattern().trackerLayersWithMeasurement() : -1.;
bool isNonnull() const
Checks for non-null.
virtual float pt() const
transverse momentum
float eSuperClusterOverP() const
TrackRef closestCtfTrackRef() const
float deltaEtaSuperClusterTrackAtVtx() const
float sigmaIetaIeta() const
virtual float eta() const
momentum pseudorapidity
float deltaPhiSuperClusterTrackAtVtx() const
float hcalOverEcal() const
float eEleClusterOverPout() const
TMVA::Reader * tmvaReader_
float deltaEtaEleClusterTrackAtCalo() const
std::vector< std::string > vweightsfiles
double mva(const reco::GsfElectron &myElectron, int nvertices=0)
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
bool ecalDrivenSeed() const