1 import FWCore.ParameterSet.Config
as cms
4 from SimMuon.DTDigitizer.dtChamberMasker_cfi
import dtChamberMasker
as _dtChamberMasker
8 if hasattr(process,
'muonDTDigis')
and hasattr(process,
'RawToDigi'):
10 sys.stderr.write(
"[appendDTChamberMasker] : Found muonDTDigis, applying filter\n")
12 process.preDtDigis = process.muonDTDigis.clone()
13 process.muonDTDigis = _dtChamberMasker.clone()
15 process.muonDTDigis.digiTag = cms.InputTag(
'preDtDigis')
17 process.filteredDtDigiSequence = cms.Sequence(process.preDtDigis + process.muonDTDigis)
18 process.RawToDigi.replace(process.muonDTDigis, process.filteredDtDigiSequence)
20 if hasattr(process,
"dtTriggerEfficiencyMonitor") :
21 process.dtTriggerEfficiencyMonitor.inputTagDDU =
'preDtDigis' 23 if hasattr(process,
"RandomNumberGeneratorService") :
24 process.RandomNumberGeneratorService.muonDTDigis = cms.PSet(
25 initialSeed = cms.untracked.uint32(789342)
28 process.RandomNumberGeneratorService = cms.Service(
29 "RandomNumberGeneratorService",
30 muonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
37 if hasattr(process,
'hltMuonDTDigis')
and \
38 ( hasattr(process,
'HLTMuonLocalRecoSequence')
or \
39 hasattr(process,
'HLTMuonLocalRecoMeanTimerSequence')) :
41 sys.stderr.write(
"[appendDTChamberMasker] : Found hltMuonDTDigis, applying filter\n")
43 process.preHltDtDigis = process.hltMuonDTDigis.clone()
44 process.hltMuonDTDigis = _dtChamberMasker.clone()
46 process.hltMuonDTDigis.digiTag =
"preHltDtDigis" 48 process.filteredHltDtDigiSequence = cms.Sequence(process.preHltDtDigis + process.hltMuonDTDigis)
49 if hasattr(process,
'HLTMuonLocalRecoSequence') :
51 process.HLTMuonLocalRecoSequence.replace(process.hltMuonDTDigis, process.filteredHltDtDigiSequence)
52 if hasattr(process,
'HLTMuonLocalRecoMeanTimerSequence') :
54 process.HLTMuonLocalRecoMeanTimerSequence.replace(process.hltMuonDTDigis, process.filteredHltDtDigiSequence)
56 process.globalReplace(
"hltMuonDTDigis",filteredHltDtDigiSequence)
58 if hasattr(process,
"RandomNumberGeneratorService") :
59 process.RandomNumberGeneratorService.hltMuonDTDigis = cms.PSet(
60 initialSeed = cms.untracked.uint32(789342)
63 process.RandomNumberGeneratorService = cms.Service(
64 "RandomNumberGeneratorService",
65 hltMuonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
72 if hasattr(process,
'simDtTriggerPrimitiveDigis')
and hasattr(process,
'SimL1TMuonCommon') :
74 sys.stderr.write(
"[appendDTChamberMasker] : Found simMuonDtTriggerPrimitivesDigis, applying filter\n")
76 process.preSimDtTriggerDigis = _dtChamberMasker.clone()
78 process.simDtTriggerPrimitiveDigis.digiTag =
"preSimDtDigis" 80 process.filteredSimDtTriggerSequence = cms.Sequence(process.preSimDtTriggerDigis + process.simDtTriggerPrimitiveDigis)
81 process.SimL1TMuonCommon.replace(process.simMuonDTDigis, process.filteredSimDtTriggerSequence)
83 if hasattr(process,
"RandomNumberGeneratorService") :
84 process.RandomNumberGeneratorService.simMuonDTDigis = cms.PSet(
85 initialSeed = cms.untracked.uint32(789342)
88 process.RandomNumberGeneratorService = cms.Service(
89 "RandomNumberGeneratorService",
90 simMuonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
def appendDTChamberMaskerAtHLT(process)
def appendDTChamberMaskerBeforeL1Trigger(process)
def appendDTChamberMaskerAtUnpacking(process)