CMS 3D CMS Logo

Functions
customizeHLTforCMSSW Namespace Reference

Functions

def customiseForOffline (process)
 
def customizeHLTforCMSSW (process, menuType="GRun")
 

Function Documentation

◆ customiseForOffline()

def customizeHLTforCMSSW.customiseForOffline (   process)

Definition at line 22 of file customizeHLTforCMSSW.py.

References common.esproducers_by_type(), and createfilelist.int.

Referenced by customizeHLTforCMSSW().

22 def customiseForOffline(process):
23  # For running HLT offline on Run-3 Data, use "(OnlineBeamSpotESProducer).timeThreshold = 1e6",
24  # in order to pick the beamspot that was actually used by the HLT (instead of a "fake" beamspot).
25  # These same settings can be used offline for Run-3 Data and Run-3 MC alike.
26  # Note: the products of the OnlineBeamSpotESProducer are used only
27  # if the configuration uses "(BeamSpotOnlineProducer).useTransientRecord = True".
28  # See CMSHLT-2271 and CMSHLT-2300 for further details.
29  for prod in esproducers_by_type(process, 'OnlineBeamSpotESProducer'):
30  prod.timeThreshold = int(1e6)
31 
32  # For running HLT offline and relieve the strain on Frontier so it will no longer inject a
33  # transaction id which tells Frontier to add a unique "&freshkey" to many query URLs.
34  # That was intended as a feature to only be used by the Online HLT, to guarantee that fresh conditions
35  # from the database were loaded at each Lumi section
36  # Seee CMSHLT-3123 for further details
37  if hasattr(process, 'GlobalTag'):
38  # Set ReconnectEachRun and RefreshEachRun to False
39  process.GlobalTag.ReconnectEachRun = cms.untracked.bool(False)
40  process.GlobalTag.RefreshEachRun = cms.untracked.bool(False)
41 
42  if hasattr(process.GlobalTag, 'toGet'):
43  # Filter out PSet objects containing only 'record' and 'refreshTime'
44  process.GlobalTag.toGet = [
45  pset for pset in process.GlobalTag.toGet
46  if set(pset.parameterNames_()) != {'record', 'refreshTime'}
47  ]
48 
49  return process
50 
51 
52 # CMSSW version specific customizations
def customiseForOffline(process)
def esproducers_by_type(process, types)
Definition: common.py:21

◆ customizeHLTforCMSSW()

def customizeHLTforCMSSW.customizeHLTforCMSSW (   process,
  menuType = "GRun" 
)

Definition at line 53 of file customizeHLTforCMSSW.py.

References customiseForOffline().

53 def customizeHLTforCMSSW(process, menuType="GRun"):
54 
55  process = customiseForOffline(process)
56 
57  # add call to action function in proper order: newest last!
58  # process = customiseFor12718(process)
59 
60  return process
61 
def customizeHLTforCMSSW(process, menuType="GRun")
def customiseForOffline(process)