CMS 3D CMS Logo

customizeHLTforCMSSW.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # helper fuctions
5 
6 # add one customisation function per PR
7 # - put the PR number into the name of the function
8 # - add a short comment
9 # for example:
10 
11 # CCCTF tuning
12 # def customiseFor12718(process):
13 # for pset in process._Process__psets.values():
14 # if hasattr(pset,'ComponentType'):
15 # if (pset.ComponentType == 'CkfBaseTrajectoryFilter'):
16 # if not hasattr(pset,'minGoodStripCharge'):
17 # pset.minGoodStripCharge = cms.PSet(refToPSet_ = cms.string('HLTSiStripClusterChargeCutNone'))
18 # return process
19 
21  for producer in producers_by_type(process, "HBHEPhase1Reconstructor"):
22  producer.algorithm.useMahi = cms.bool(True)
23  producer.algorithm.useM2 = cms.bool(False)
24  producer.algorithm.useM3 = cms.bool(False)
25  return process
26 
28  for producer in producers_by_type(process, "HBHEPhase1Reconstructor"):
29  if (producer.algorithm.useM2 == cms.bool(True)):
30  producer.algorithm.useMahi = cms.bool(True)
31  producer.algorithm.useM2 = cms.bool(False)
32  producer.algorithm.useM3 = cms.bool(False)
33  return process
34 
36  """Adapt the HLT to run the legacy DT unpacking
37  for pre2018 data/MC workflows as the default"""
38 
39  if hasattr(process,'hltMuonDTDigis'):
40  process.hltMuonDTDigis = cms.EDProducer( "DTUnpackingModule",
41  useStandardFEDid = cms.bool( True ),
42  maxFEDid = cms.untracked.int32( 779 ),
43  inputLabel = cms.InputTag( "rawDataCollector" ),
44  minFEDid = cms.untracked.int32( 770 ),
45  dataType = cms.string( "DDU" ),
46  readOutParameters = cms.PSet(
47  localDAQ = cms.untracked.bool( False ),
48  debug = cms.untracked.bool( False ),
49  rosParameters = cms.PSet(
50  localDAQ = cms.untracked.bool( False ),
51  debug = cms.untracked.bool( False ),
52  writeSC = cms.untracked.bool( True ),
53  readDDUIDfromDDU = cms.untracked.bool( True ),
54  readingDDU = cms.untracked.bool( True ),
55  performDataIntegrityMonitor = cms.untracked.bool( False )
56  ),
57  performDataIntegrityMonitor = cms.untracked.bool( False )
58  ),
59  dqmOnly = cms.bool( False )
60  )
61 
62  return process
63 
64 # CMSSW version specific customizations
65 def customizeHLTforCMSSW(process, menuType="GRun"):
66 
67  # add call to action function in proper order: newest last!
68  # process = customiseFor12718(process)
69 
70  return process
def customizeHLTforCMSSW(process, menuType="GRun")
def customiseFor2017DtUnpacking(process)
def customiseFor21664_forMahiOn(process)
def producers_by_type(process, types)
Definition: common.py:5
def customiseFor21664_forMahiOnM2only(process)