Skip to content

Commit

Permalink
use bunchSpacingProducer to control/override auto-detection of bunch …
Browse files Browse the repository at this point in the history
…spacing
  • Loading branch information
slava77devel committed Oct 29, 2015
1 parent 3e71c8e commit b127331
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Configuration/DataProcessing/python/RecoTLR.py
Expand Up @@ -21,6 +21,12 @@ def _addLumiProducer(process):

return process

def _overridesFor50ns(process):
process.bunchSpacingProducer.bunchSpacingOverride = cms.uint32(50)
process.bunchSpacingProducer.overrideBunchSpacing = cms.bool(True)

return process

#gone with the fact that there is no difference between production and development sequence
#def customiseCommon(process):
# return (process)
Expand Down Expand Up @@ -93,13 +99,7 @@ def customiseDataRun2Common_25ns(process):
def customiseDataRun2Common_50nsRunsAfter253000(process):
process = customiseDataRun2Common_withStage1(process)

if hasattr(process,'particleFlowClusterECAL'):
process.particleFlowClusterECAL.energyCorrector.autoDetectBunchSpacing = False
process.particleFlowClusterECAL.energyCorrector.bunchSpacing = cms.int32(50)
if hasattr(process,'ecalMultiFitUncalibRecHit'):
process.ecalMultiFitUncalibRecHit.algoPSet.useLumiInfoRunHeader = False
process.ecalMultiFitUncalibRecHit.algoPSet.bunchSpacing = cms.int32(50)

process = _overridesFor50ns(process)
return process

##############################################################################
Expand Down Expand Up @@ -197,6 +197,7 @@ def customisePromptHI(process):
def customiseRun2CommonHI(process):
process = customiseDataRun2Common_withStage1(process)

process = _overridesFor50ns(process)
# HI Specific additional customizations:
# from L1Trigger.L1TCommon.customsPostLS1 import customiseSimL1EmulatorForPostLS1_Additional_HI
# process = customiseSimL1EmulatorForPostLS1_Additional_HI(process)
Expand Down

0 comments on commit b127331

Please sign in to comment.