Skip to content

Commit

Permalink
Merge pull request cms-sw#50 from doanhien/HoverE_forElectron
Browse files Browse the repository at this point in the history
add new HoverE variable same as the one used in pp
  • Loading branch information
R. Alex Barbieri committed Jan 21, 2016
2 parents 2013f49 + 3a4253c commit 8bf5637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
5 changes: 4 additions & 1 deletion HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 8bf5637

Please sign in to comment.