1 import FWCore.ParameterSet.Config
as cms
4 from SimMuon.CSCDigitizer.cscChamberMasker_cfi
import cscChamberMasker
as _cscChamberMasker
8 if hasattr(process,
'muonCSCDigis') :
10 sys.stderr.write(
"[appendCSCChamberMasker] : Found muonCSCDigis, applying filter\n")
12 process.preCSCDigis = process.muonCSCDigis.clone()
13 process.muonCSCDigis = _cscChamberMasker.clone()
15 process.muonCSCDigis.stripDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCStripDigi")
16 process.muonCSCDigis.wireDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCWireDigi")
17 process.muonCSCDigis.comparatorDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCComparatorDigi")
18 process.muonCSCDigis.rpcDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCRPCDigi")
19 process.muonCSCDigis.alctDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCALCTDigi")
20 process.muonCSCDigis.clctDigiTag = cms.InputTag(
"preCSCDigis",
"MuonCSCCLCTDigi")
22 process.RawToDigiTask.add(process.preCSCDigis)
24 if hasattr(process,
"RandomNumberGeneratorService") :
25 process.RandomNumberGeneratorService.muonCSCDigis = cms.PSet(
26 initialSeed = cms.untracked.uint32(789342)
29 process.RandomNumberGeneratorService = cms.Service(
30 "RandomNumberGeneratorService",
31 muonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
38 if hasattr(process,
'hltMuonCSCDigis') :
40 sys.stderr.write(
"[appendCSCChamberMasker] : Found hltMuonCSCDigis, applying filter\n")
42 process.preHltCSCDigis = process.hltMuonCSCDigis.clone()
43 process.hltMuonCSCDigis = _cscChamberMasker.clone()
45 process.hltMuonCSCDigis.stripDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCStripDigi")
46 process.hltMuonCSCDigis.wireDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCWireDigi")
47 process.hltMuonCSCDigis.comparatorDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCComparatorDigi")
48 process.hltMuonCSCDigis.rpcDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCRPCDigi")
49 process.hltMuonCSCDigis.alctDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCALCTDigi")
50 process.hltMuonCSCDigis.clctDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCCLCTDigi")
53 process.filteredHltCSCDigiSequence = cms.Sequence(process.preHltCSCDigis + process.hltMuonCSCDigis)
54 process.HLTMuonLocalRecoSequence.replace(process.hltMuonCSCDigis, process.filteredHltCSCDigiSequence)
56 if hasattr(process,
"RandomNumberGeneratorService") :
57 process.RandomNumberGeneratorService.hltMuonCSCDigis = cms.PSet(
58 initialSeed = cms.untracked.uint32(789342)
61 process.RandomNumberGeneratorService = cms.Service(
62 "RandomNumberGeneratorService",
63 hltMuonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))