1 import FWCore.ParameterSet.Config
as cms
4 from SimMuon.RPCDigitizer.rpcChamberMasker_cfi
import rpcChamberMasker
as _rpcChamberMasker
5 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
9 if phase2_muon.isChosen():
22 if hasattr(process,
'rpcRecHits') :
24 sys.stderr.write(
"[appendRPCChamberMasker] : Found rpcRecHits, applying filter\n")
26 process.rpcAgedDigis = _rpcChamberMasker.clone()
27 process.rpcAgedDigis.digiTag = cms.InputTag(
'simMuonRPCDigis')
29 process.rpcRecHits = process.rpcRecHits.clone()
30 process.rpcRecHits.rpcDigiLabel = cms.InputTag(
'rpcAgedDigis')
32 process.filteredRpcDigiSequence = cms.Sequence(process.rpcAgedDigis \
35 process.reconstruction.replace(process.rpcRecHits, \
36 process.filteredRpcDigiSequence)
38 if hasattr(process,
"RandomNumberGeneratorService") :
39 process.RandomNumberGeneratorService.rpcAgedDigis = cms.PSet(
40 initialSeed = cms.untracked.uint32(789342)
43 process.RandomNumberGeneratorService = cms.Service(
44 "RandomNumberGeneratorService",
45 rpcAgedDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
55 if hasattr(process,
'muonRPCDigis') :
57 sys.stderr.write(
"[appendRPCChamberMasker] : Found muonRPCDigis, applying filter\n")
59 process.preRPCDigis = process.muonRPCDigis.clone()
60 process.muonRPCDigis = _rpcChamberMasker.clone()
62 if hasattr(process,
"RandomNumberGeneratorService") :
63 process.RandomNumberGeneratorService.muonRPCDigis = cms.PSet(
64 initialSeed = cms.untracked.uint32(789342)
67 process.RandomNumberGeneratorService = cms.Service(
68 "RandomNumberGeneratorService",
69 muonRPCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
72 process.filteredRPCDigiSequence = cms.Sequence(process.preRPCDigis \
73 + process.muonRPCDigis)
74 process.RawToDigi.replace(process.muonRPCDigis, \
75 process.filteredRPCDigiSequence)
def appendRPCChamberMaskerAtUnpacking(process)
def appendRPCChamberMaskerAtReco(process)
def appendRPCChamberMaskerBeforeRecHits(process)