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.filteredCscDigiSequence = cms.Sequence(process.preCSCDigis + process.muonCSCDigis)
23 process.RawToDigi.replace(process.muonCSCDigis, process.filteredCscDigiSequence)
25 if hasattr(process,
"RandomNumberGeneratorService") :
26 process.RandomNumberGeneratorService.muonCSCDigis = cms.PSet(
27 initialSeed = cms.untracked.uint32(789342)
30 process.RandomNumberGeneratorService = cms.Service(
31 "RandomNumberGeneratorService",
32 muonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
39 if hasattr(process,
'hltMuonCSCDigis') :
41 sys.stderr.write(
"[appendCSCChamberMasker] : Found hltMuonCSCDigis, applying filter\n")
43 process.preHltCSCDigis = process.hltMuonCSCDigis.clone()
44 process.hltMuonCSCDigis = _cscChamberMasker.clone()
46 process.hltMuonCSCDigis.stripDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCStripDigi")
47 process.hltMuonCSCDigis.wireDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCWireDigi")
48 process.hltMuonCSCDigis.comparatorDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCComparatorDigi")
49 process.hltMuonCSCDigis.rpcDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCRPCDigi")
50 process.hltMuonCSCDigis.alctDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCALCTDigi")
51 process.hltMuonCSCDigis.clctDigiTag = cms.InputTag(
"preHltCSCDigis",
"MuonCSCCLCTDigi")
54 process.filteredHltCSCDigiSequence = cms.Sequence(process.preHltCSCDigis + process.hltMuonCSCDigis)
55 process.HLTMuonLocalRecoSequence.replace(process.hltMuonCSCDigis, process.filteredHltCSCDigiSequence)
57 if hasattr(process,
"RandomNumberGeneratorService") :
58 process.RandomNumberGeneratorService.hltMuonCSCDigis = cms.PSet(
59 initialSeed = cms.untracked.uint32(789342)
62 process.RandomNumberGeneratorService = cms.Service(
63 "RandomNumberGeneratorService",
64 hltMuonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
def appendCSCChamberMaskerAtHLT(process)
def appendCSCChamberMaskerAtUnpacking(process)