Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:06:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def customizeHLTforMC(process):
0004   """adapt the HLT to run on MC, instead of data
0005   see Configuration/StandardSequences/Reconstruction_Data_cff.py
0006   which does the opposite, for RECO"""
0007 
0008   # PFRecHitProducerHCAL
0009   if 'hltParticleFlowRecHitHCAL' in process.__dict__:
0010     process.hltParticleFlowRecHitHCAL.ApplyPulseDPG      = cms.bool(False)
0011     process.hltParticleFlowRecHitHCAL.LongShortFibre_Cut = cms.double(1000000000.0)
0012 
0013   # customise hltHbhereco to use the Method 3 time slew parametrization and response correction for Monte Carlo (PR #11091)
0014   if 'hltHbhereco' in process.__dict__:
0015     if process.hltHbhereco._TypedParameterizable__type == 'HcalHitReconstructor':
0016       # 2015-2016 Run 2
0017       process.hltHbhereco.pedestalSubtractionType = cms.int32( 1 )
0018       process.hltHbhereco.pedestalUpperLimit      = cms.double( 2.7 )
0019       process.hltHbhereco.timeSlewParsType        = cms.int32( 3 )
0020       # new time slew parametrisation
0021       process.hltHbhereco.timeSlewPars            = cms.vdouble( 12.2999, -2.19142, 0, 12.2999, -2.19142, 0, 12.2999, -2.19142, 0 )
0022       # old response correction, matching the 2015D 25ns data
0023       process.hltHbhereco.respCorrM3              = cms.double( 1.0 )
0024     elif process.hltHbhereco._TypedParameterizable__type == 'HBHEPhase1Reconstructor':
0025       # 2017 "plan 0"
0026       process.hltHbhereco.algorithm.respCorrM3    = cms.double( 1.0 )
0027 
0028   if 'hltHbhePhase1Reco' in process.__dict__:
0029     if process.hltHbhePhase1Reco._TypedParameterizable__type == 'HBHEPhase1Reconstructor':
0030       # 2017 "plan 1"
0031       # assume retuning the pulse shapes will give the same response
0032       # in data and MC for Method 2 and Method 3
0033       pass
0034 
0035   return process