Skip to content

Commit

Permalink
fix nummuons and numtaus partially addressing #44
Browse files Browse the repository at this point in the history
  • Loading branch information
caredg committed Jul 17, 2021
1 parent ad87943 commit 4510f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions PhysObjectExtractor/src/MuonAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ MuonAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)

if(mymuons.isValid()){

// get the number of muons in the event
nummuon=(*mymuons).size();
const float mu_min_pt = 3;
math::XYZPoint pv(vertices->begin()->position());

Expand Down Expand Up @@ -231,7 +229,8 @@ MuonAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
}
muon_genpartidx.push_back(-1);
muon_jetidx.push_back(-1);
}
nummuon++;
}
}
}

Expand Down
5 changes: 2 additions & 3 deletions PhysObjectExtractor/src/TauAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ TauAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
tau_idantimutight.clear();

if(mytaus.isValid()){
// get the number of taus in the event
numtau=mytaus->size();


const float tau_min_pt = 15;
for (reco::PFTauCollection::const_iterator itTau=mytaus->begin(); itTau!=mytaus->end(); ++itTau){
if (itTau->pt() > tau_min_pt) {
Expand All @@ -222,6 +220,7 @@ TauAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
tau_idantimutight.push_back(tausTightMuonRej->operator[](idx).second);

tau_reliso_all.push_back((itTau->isolationPFChargedHadrCandsPtSum() + itTau->isolationPFGammaCandsEtSum()) / itTau->pt());
numtau++;
}
}
}
Expand Down

0 comments on commit 4510f5e

Please sign in to comment.