Skip to content

Commit

Permalink
add options to exclude chunks of ggntup (cms-sw#165)
Browse files Browse the repository at this point in the history
by default, electrons and muons are excluded from non-ged version
  • Loading branch information
bi-ran committed Feb 28, 2019
1 parent 9f69ce0 commit bd3b075
Show file tree
Hide file tree
Showing 7 changed files with 553 additions and 511 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@
process.ggHiNtuplizer.doElectronVID = True

process.ggHiNtuplizerGED = process.ggHiNtuplizer.clone(
doElectrons = True,
doMuons = True,
recoPhotonSrc = cms.InputTag('gedPhotons'),
recoPhotonHiIsolationMap = cms.InputTag('photonIsolationHIProducerppGED'))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@
process.ggHiNtuplizer.doElectronVID = True

process.ggHiNtuplizerGED = process.ggHiNtuplizer.clone(
doElectrons = True,
doMuons = True,
recoPhotonSrc = cms.InputTag('gedPhotons'),
recoPhotonHiIsolationMap = cms.InputTag('photonIsolationHIProducerppGED'))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
process.ggHiNtuplizer.doElectronVID = True

process.ggHiNtuplizerGED = process.ggHiNtuplizer.clone(
doElectrons = True,
doMuons = True,
recoPhotonSrc = cms.InputTag('gedPhotons'),
recoPhotonHiIsolationMap = cms.InputTag('photonIsolationHIProducerppGED'))

Expand Down
2 changes: 2 additions & 0 deletions HeavyIonsAnalysis/JetAnalysis/test/runForestAOD_pp_MC_94X.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
process.ggHiNtuplizer.doElectronVID = True

process.ggHiNtuplizerGED = process.ggHiNtuplizer.clone(
doElectrons = True,
doMuons = True,
recoPhotonSrc = cms.InputTag('gedPhotons'),
recoPhotonHiIsolationMap = cms.InputTag('photonIsolationHIProducerppGED'))

Expand Down
3 changes: 3 additions & 0 deletions HeavyIonsAnalysis/PhotonAnalysis/interface/ggHiNtuplizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class ggHiNtuplizer : public edm::EDAnalyzer {

// switches
bool doGenParticles_;
bool doElectrons_;
bool doPhotons_;
bool doMuons_;
bool runOnParticleGun_;
bool useValMapIso_;
bool doPfIso_;
Expand Down
1,050 changes: 539 additions & 511 deletions HeavyIonsAnalysis/PhotonAnalysis/plugins/ggHiNtuplizer.cc

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions HeavyIonsAnalysis/PhotonAnalysis/python/ggHiNtuplizer_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
ggHiNtuplizer = cms.EDAnalyzer(
"ggHiNtuplizer",
doGenParticles = cms.bool(True),
doElectrons = cms.bool(False),
doPhotons = cms.bool(True),
doMuons = cms.bool(False),
runOnParticleGun = cms.bool(False),
useValMapIso = cms.bool(True),
doElectronVID = cms.bool(False),
Expand Down

0 comments on commit bd3b075

Please sign in to comment.