Skip to content

Commit

Permalink
Merge pull request #16236 from yetkinyilmaz/rho_80X_01
Browse files Browse the repository at this point in the history
Rho 8_0_X backport of PR 15233
  • Loading branch information
cmsbuild committed Oct 20, 2016
2 parents 9a75ea5 + 02b98ea commit 5f38639
Show file tree
Hide file tree
Showing 8 changed files with 991 additions and 1 deletion.
38 changes: 38 additions & 0 deletions RecoHI/Configuration/python/customise_PPwithHI.py
Expand Up @@ -138,6 +138,42 @@ def storeCaloTowersAOD(process):
process.AODSIMoutput.outputCommands.extend(['keep *_towerMaker_*_*'])

return process

# Add rhoProducer to AOD event content
def addRhoProducer(process):
process.load('RecoJets.JetProducers.kt4PFJets_cfi')
process.load('RecoHI.HiJetAlgos.hiFJRhoProducer')
process.load('RecoHI.HiJetAlgos.hiFJGridEmptyAreaCalculator_cff')

process.kt4PFJetsForRho = process.kt4PFJets.clone()
process.kt4PFJetsForRho.doAreaFastjet = True
process.kt4PFJetsForRho.jetPtMin = cms.double(0.0)
process.kt4PFJetsForRho.GhostArea = cms.double(0.005)
process.hiFJGridEmptyAreaCalculator.doCentrality = False

# extend AOD content
process.reconstruction *= process.kt4PFJetsForRho
process.reconstruction *= process.hiFJRhoProducer
process.reconstruction *= process.hiFJGridEmptyAreaCalculator

# extend AOD content
if hasattr(process,'AODoutput'):
process.AODoutput.outputCommands.extend(['keep *_hiFJGridEmptyAreaCalculator_*_*'])
process.AODoutput.outputCommands.extend(['keep *_hiFJRhoProducer_*_*'])

if hasattr(process,'AODSIMoutput'):
process.AODSIMoutput.outputCommands.extend(['keep *_hiFJGridEmptyAreaCalculator_*_*'])
process.AODSIMoutput.outputCommands.extend(['keep *_hiFJRhoProducer_*_*'])

if hasattr(process,'RECOSIMoutput'):
process.RECOSIMoutput.outputCommands.extend(['keep *_hiFJGridEmptyAreaCalculator_*_*'])
process.RECOSIMoutput.outputCommands.extend(['keep *_hiFJRhoProducer_*_*'])

if hasattr(process,'RECOoutput'):
process.RECOoutput.outputCommands.extend(['keep *_hiFJGridEmptyAreaCalculator_*_*'])
process.RECOoutput.outputCommands.extend(['keep *_hiFJRhoProducer_*_*'])

return process

# Add Centrality reconstruction in pp reco
def customiseRecoCentrality(process):
Expand Down Expand Up @@ -176,11 +212,13 @@ def customisePPrecoforPPb(process):

process=addHIIsolationProducer(process)
process=storeCaloTowersAOD(process)
process=addRhoProducer(process)
process=customiseRecoCentrality(process)
process=storePPbAdditionalAOD(process)

return process


def customisePPrecoForPeripheralPbPb(process):

process=addHIIsolationProducer(process)
Expand Down
2 changes: 1 addition & 1 deletion RecoHI/HiJetAlgos/plugins/BuildFile.xml
Expand Up @@ -12,7 +12,7 @@
<use name="cgal"/>
<use name="f77compiler"/>

<flags CXXFLAGS="-frounding-math -Wno-unknown-pragmas"/>
<flags CXXFLAGS="-DCGAL_DISABLE_ROUNDING_MATH_CHECK -Wno-unknown-pragmas"/>
<flags REM_CXXFLAGS="-Werror=unused-variable"/>
<flags EDM_PLUGIN="1"/>
<library file="*.cc,*.f" name="HiJetAlgosPlugins">
Expand Down

0 comments on commit 5f38639

Please sign in to comment.