Skip to content

Commit

Permalink
Merge pull request #76 from alefisico/jetToolbox_106X
Browse files Browse the repository at this point in the history
Fixing AOD issues
  • Loading branch information
alefisico authored Feb 24, 2020
2 parents ed6f192 + f68898c commit a1bbf0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Python framework for configuration of jet tools via the jet toolbox.
Check the branch for the correspondent release. This branch is for *CMSSW_10_2_X* and higher.
Then for example:
```
cmsrel CMSSW_10_2_15/
cd CMSSW_10_2_15/src/
cmsrel CMSSW_10_6_1/
cd CMSSW_10_6_1/src/
git cms-init
git clone [email protected]:cms-jet/JetToolbox.git JMEAnalysis/JetToolbox -b jetToolbox_102X_v3
scram b -j 18
Expand Down
5 changes: 3 additions & 2 deletions python/jetToolbox_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ def jetToolbox( proc, jetType, jetSequence, outputFile,
svLabel = 'inclusiveCandidateSecondaryVertices'

if runOnMC:
proc.load('RecoJets.Configuration.GenJetParticles_cff')
_addProcessAndTask( proc, mod["GenJetsNoNu"], ak4GenJets.clone( src = 'genParticlesForJetsNoNu', rParam = jetSize, jetAlgorithm = algorithm ) )
from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJetsNoNu
_addProcessAndTask( proc, 'genParticlesForJetsNoNuTMP', genParticlesForJetsNoNu.clone() )
_addProcessAndTask( proc, mod["GenJetsNoNu"], ak4GenJets.clone( src = 'genParticlesForJetsNoNuTMP', rParam = jetSize, jetAlgorithm = algorithm ) )
jetSeq += getattr(proc, mod["GenJetsNoNu"])
#########################################################################

Expand Down

0 comments on commit a1bbf0b

Please sign in to comment.