Functions | |
def | switchToCustomL1Digis |
def | switchToL1Emulator |
def | switchToSimGctGtDigis |
def | switchToSimGmtGctGtDigis |
def | switchToSimGmtGtDigis |
def | switchToSimGtDigis |
def customizeHLTforL1Emulator::switchToCustomL1Digis | ( | process, | |
customGmt, | |||
customGct, | |||
customGt | |||
) |
patch the process to use custom GMT, GCT and GT results
Definition at line 20 of file customizeHLTforL1Emulator.py.
00021 : 00022 """patch the process to use custom GMT, GCT and GT results""" 00023 00024 # explicit replacements to use "simGtDigis", "simGmtDigis" and "simGctDigis" instead of "hltGtDigis" or "hltGctDigis" 00025 if 'hltL1GtObjectMap' in process.__dict__: 00026 process.hltL1GtObjectMap.GmtInputTag = cms.InputTag( customGmt ) 00027 process.hltL1GtObjectMap.GctInputTag = cms.InputTag( customGct ) 00028 if 'hltL1extraParticles' in process.__dict__: 00029 process.hltL1extraParticles.muonSource = cms.InputTag( customGmt ) 00030 process.hltL1extraParticles.isolatedEmSource = cms.InputTag( customGct, 'isoEm' ) 00031 process.hltL1extraParticles.nonIsolatedEmSource = cms.InputTag( customGct, 'nonIsoEm' ) 00032 process.hltL1extraParticles.centralJetSource = cms.InputTag( customGct, 'cenJets' ) 00033 process.hltL1extraParticles.forwardJetSource = cms.InputTag( customGct, 'forJets' ) 00034 process.hltL1extraParticles.tauJetSource = cms.InputTag( customGct, 'tauJets' ) 00035 process.hltL1extraParticles.etTotalSource = cms.InputTag( customGct ) 00036 process.hltL1extraParticles.etHadSource = cms.InputTag( customGct ) 00037 process.hltL1extraParticles.etMissSource = cms.InputTag( customGct ) 00038 if 'hltL2MuonSeeds' in process.__dict__: 00039 process.hltL2MuonSeeds.GMTReadoutCollection = cms.InputTag( customGmt ) 00040 00041 # automatic replacements to use "simGtDigis" and "simGctDigis" instead of "hltGtDigis" or "hltGctDigis" 00042 for module in process.__dict__.itervalues(): 00043 if isinstance(module, cms._Parameterizable): 00044 for parameter in module.__dict__.itervalues(): 00045 if isinstance(parameter, cms.InputTag): 00046 if parameter.moduleLabel == 'hltGtDigis': 00047 parameter.moduleLabel = customGt 00048 elif parameter.moduleLabel == 'hltGctDigis': 00049 parameter.moduleLabel = customGct 00050 00051 # check if "hltGtDigis" and "hltGctDigis" are defined 00052 hasGtDigis = 'hltGtDigis' in process.producers 00053 hasGctDigis = 'hltGctDigis' in process.producers 00054 00055 # remove "hltGtDigis" and "hltGctDigis" from all paths, endpaths and sequences 00056 for iterable in process.sequences.itervalues(): 00057 if hasGtDigis: iterable.remove( process.hltGtDigis ) 00058 if hasGctDigis: iterable.remove( process.hltGctDigis ) 00059 00060 for iterable in process.paths.itervalues(): 00061 if hasGtDigis: iterable.remove( process.hltGtDigis ) 00062 if hasGctDigis: iterable.remove( process.hltGctDigis ) 00063 00064 for iterable in process.endpaths.itervalues(): 00065 if hasGtDigis: iterable.remove( process.hltGtDigis ) 00066 if hasGctDigis: iterable.remove( process.hltGctDigis ) 00067 00068 return process 00069
def customizeHLTforL1Emulator::switchToL1Emulator | ( | process | ) |
patch the process to run the RawToDigi and SimL1Emulator sequences instead of unpacking the hltGctDigis and hltGtDigis
Definition at line 3 of file customizeHLTforL1Emulator.py.
00004 : 00005 """patch the process to run the RawToDigi and SimL1Emulator sequences instead of unpacking the hltGctDigis and hltGtDigis""" 00006 HLTL1UnpackerSequence = cms.Sequence( process.RawToDigi + process.SimL1Emulator + process.hltL1GtObjectMap + process.hltL1extraParticles ) 00007 00008 for iterable in process.sequences.itervalues(): 00009 iterable.replace( process.HLTL1UnpackerSequence, HLTL1UnpackerSequence) 00010 00011 for iterable in process.paths.itervalues(): 00012 iterable.replace( process.HLTL1UnpackerSequence, HLTL1UnpackerSequence) 00013 00014 for iterable in process.endpaths.itervalues(): 00015 iterable.replace( process.HLTL1UnpackerSequence, HLTL1UnpackerSequence) 00016 00017 process.HLTL1UnpackerSequence = HLTL1UnpackerSequence 00018 00019 return process
def customizeHLTforL1Emulator::switchToSimGctGtDigis | ( | process | ) |
patch the process to use gtDigis for GMT results, and newly emulated GCT and GT results
Definition at line 80 of file customizeHLTforL1Emulator.py.
def customizeHLTforL1Emulator::switchToSimGmtGctGtDigis | ( | process | ) |
patch the process to use newly emulated GMT, GCT and GT results
Definition at line 75 of file customizeHLTforL1Emulator.py.
def customizeHLTforL1Emulator::switchToSimGmtGtDigis | ( | process | ) |
patch the process to use gctDigis for GCT results, and newly emulated GMT and GT results
Definition at line 85 of file customizeHLTforL1Emulator.py.
def customizeHLTforL1Emulator::switchToSimGtDigis | ( | process | ) |
patch the process to use newly emulated GMT, GCT and GT results
Definition at line 70 of file customizeHLTforL1Emulator.py.