From 6d7cf53336aff338e66450430770f188a0a62483 Mon Sep 17 00:00:00 2001
From: hiendoan <dthien@phys.hcmuns.edu.vn>
Date: Thu, 21 Jan 2016 12:11:15 +0100
Subject: [PATCH 1/2] add one more HoverE variable for electron

---
 HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc b/HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc
index e25bfba44facf..09b26511c7557 100644
--- a/HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc
+++ b/HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc
@@ -110,6 +110,7 @@ ggHiNtuplizer::ggHiNtuplizer(const edm::ParameterSet& ps)
   tree_->Branch("eleSCEtaWidth",         &eleSCEtaWidth_);
   tree_->Branch("eleSCPhiWidth",         &eleSCPhiWidth_);
   tree_->Branch("eleHoverE",             &eleHoverE_);
+  tree_->Branch("eleHoverEBc",           &eleHoverEBc_);
   tree_->Branch("eleEoverP",             &eleEoverP_);
   tree_->Branch("eleEoverPInv",          &eleEoverPInv_);
   tree_->Branch("eleBrem",               &eleBrem_);
@@ -410,6 +411,7 @@ void ggHiNtuplizer::analyze(const edm::Event& e, const edm::EventSetup& es)
   eleSCEtaWidth_        .clear();
   eleSCPhiWidth_        .clear();
   eleHoverE_            .clear();
+  eleHoverEBc_          .clear();
   eleEoverP_            .clear();
   eleEoverPInv_         .clear();
   eleBrem_              .clear();
@@ -862,7 +864,8 @@ void ggHiNtuplizer::fillElectrons(const edm::Event& e, const edm::EventSetup& es
     eleSCRawEn_          .push_back(ele->superCluster()->rawEnergy());
     eleSCEtaWidth_       .push_back(ele->superCluster()->etaWidth());
     eleSCPhiWidth_       .push_back(ele->superCluster()->phiWidth());
-    eleHoverE_           .push_back(ele->hcalOverEcalBc());
+    eleHoverE_           .push_back(ele->hcalOverEcal());
+    eleHoverEBc_         .push_back(ele->hcalOverEcalBc());
     eleEoverP_           .push_back(ele->eSuperClusterOverP());
     eleEoverPInv_        .push_back(fabs(1./ele->ecalEnergy()-1./ele->trackMomentumAtVtx().R()));
     eleBrem_             .push_back(ele->fbrem());

From 3a4253cafd8a3df7c02cfdb50f233dd7b5327a70 Mon Sep 17 00:00:00 2001
From: hiendoan <dthien@phys.hcmuns.edu.vn>
Date: Thu, 21 Jan 2016 12:11:24 +0100
Subject: [PATCH 2/2] add one more HoverE variable for electron

---
 HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h b/HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h
index cbe1aaebc626f..ef849c05dc4c7 100644
--- a/HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h
+++ b/HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h
@@ -126,6 +126,7 @@ class ggHiNtuplizer : public edm::EDAnalyzer {
    vector<float>  eleSCEtaWidth_;
    vector<float>  eleSCPhiWidth_;
    vector<float>  eleHoverE_;
+   vector<float>  eleHoverEBc_;
    vector<float>  eleEoverP_;
    vector<float>  eleEoverPInv_;
    vector<float>  eleBrem_;