CMS 3D CMS Logo

Functions
customizeHLTforMC Namespace Reference

Functions

def customizeHLTforMC (process)
 

Function Documentation

◆ customizeHLTforMC()

def customizeHLTforMC.customizeHLTforMC (   process)
adapt the HLT to run on MC, instead of data
see Configuration/StandardSequences/Reconstruction_Data_cff.py
which does the opposite, for RECO

Definition at line 3 of file customizeHLTforMC.py.

3 def customizeHLTforMC(process):
4  """adapt the HLT to run on MC, instead of data
5  see Configuration/StandardSequences/Reconstruction_Data_cff.py
6  which does the opposite, for RECO"""
7 
8  # PFRecHitProducerHCAL
9  if 'hltParticleFlowRecHitHCAL' in process.__dict__:
10  process.hltParticleFlowRecHitHCAL.ApplyPulseDPG = cms.bool(False)
11  process.hltParticleFlowRecHitHCAL.LongShortFibre_Cut = cms.double(1000000000.0)
12 
13  # customise hltHbhereco to use the Method 3 time slew parametrization and response correction for Monte Carlo (PR #11091)
14  if 'hltHbhereco' in process.__dict__:
15  if process.hltHbhereco._TypedParameterizable__type == 'HcalHitReconstructor':
16  # 2015-2016 Run 2
17  process.hltHbhereco.pedestalSubtractionType = cms.int32( 1 )
18  process.hltHbhereco.pedestalUpperLimit = cms.double( 2.7 )
19  process.hltHbhereco.timeSlewParsType = cms.int32( 3 )
20  # new time slew parametrisation
21  process.hltHbhereco.timeSlewPars = cms.vdouble( 12.2999, -2.19142, 0, 12.2999, -2.19142, 0, 12.2999, -2.19142, 0 )
22  # old response correction, matching the 2015D 25ns data
23  process.hltHbhereco.respCorrM3 = cms.double( 1.0 )
24  elif process.hltHbhereco._TypedParameterizable__type == 'HBHEPhase1Reconstructor':
25  # 2017 "plan 0"
26  process.hltHbhereco.algorithm.respCorrM3 = cms.double( 1.0 )
27 
28  if 'hltHbhePhase1Reco' in process.__dict__:
29  if process.hltHbhePhase1Reco._TypedParameterizable__type == 'HBHEPhase1Reconstructor':
30  # 2017 "plan 1"
31  # assume retuning the pulse shapes will give the same response
32  # in data and MC for Method 2 and Method 3
33  pass
34 
35  return process
36 
def customizeHLTforMC(process)