CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customizeHLTforMC Namespace Reference

Functions

def customizeHLTforMC
 

Function Documentation

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