1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
5 from SimMuon.DTDigitizer.dtChamberMasker_cfi
import dtChamberMasker
as _dtChamberMasker
9 if hasattr(process,
'muonDTDigis')
and hasattr(process,
'RawToDigi'):
11 sys.stderr.write(
"[appendDTChamberMasker] : Found muonDTDigis, applying filter\n")
13 process.preDtDigis = process.muonDTDigis.clone()
14 process.muonDTDigis = _dtChamberMasker.clone()
16 process.muonDTDigis.digiTag = cms.InputTag(
'preDtDigis')
18 process.RawToDigiTask.add(process.preDtDigis)
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 appendDTChamberMaskerBeforeL1Trigger
def appendDTChamberMaskerAtHLT
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def appendDTChamberMaskerAtUnpacking