CMS 3D CMS Logo

Functions
cscChamberMasker_cff Namespace Reference

Functions

def appendCSCChamberMaskerAtHLT (process)
 
def appendCSCChamberMaskerAtUnpacking (process)
 

Function Documentation

◆ appendCSCChamberMaskerAtHLT()

def cscChamberMasker_cff.appendCSCChamberMaskerAtHLT (   process)

Definition at line 36 of file cscChamberMasker_cff.py.

36 def appendCSCChamberMaskerAtHLT(process):
37 
38  if hasattr(process,'hltMuonCSCDigis') :
39 
40  sys.stderr.write("[appendCSCChamberMasker] : Found hltMuonCSCDigis, applying filter\n")
41 
42  process.preHltCSCDigis = process.hltMuonCSCDigis.clone()
43  process.hltMuonCSCDigis = _cscChamberMasker.clone()
44 
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")
51 
52 
53  process.filteredHltCSCDigiSequence = cms.Sequence(process.preHltCSCDigis + process.hltMuonCSCDigis)
54  process.HLTMuonLocalRecoSequence.replace(process.hltMuonCSCDigis, process.filteredHltCSCDigiSequence)
55 
56  if hasattr(process,"RandomNumberGeneratorService") :
57  process.RandomNumberGeneratorService.hltMuonCSCDigis = cms.PSet(
58  initialSeed = cms.untracked.uint32(789342)
59  )
60  else :
61  process.RandomNumberGeneratorService = cms.Service(
62  "RandomNumberGeneratorService",
63  hltMuonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
64  )
65 
66  return process
67 
def appendCSCChamberMaskerAtHLT(process)

◆ appendCSCChamberMaskerAtUnpacking()

def cscChamberMasker_cff.appendCSCChamberMaskerAtUnpacking (   process)

Definition at line 6 of file cscChamberMasker_cff.py.

7 
8  if hasattr(process,'muonCSCDigis') :
9 
10  sys.stderr.write("[appendCSCChamberMasker] : Found muonCSCDigis, applying filter\n")
11 
12  process.preCSCDigis = process.muonCSCDigis.clone()
13  process.muonCSCDigis = _cscChamberMasker.clone()
14 
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")
21 
22  process.RawToDigiTask.add(process.preCSCDigis)
23 
24  if hasattr(process,"RandomNumberGeneratorService") :
25  process.RandomNumberGeneratorService.muonCSCDigis = cms.PSet(
26  initialSeed = cms.untracked.uint32(789342)
27  )
28  else :
29  process.RandomNumberGeneratorService = cms.Service(
30  "RandomNumberGeneratorService",
31  muonCSCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
32  )
33 
34  return process
35 
def appendCSCChamberMaskerAtUnpacking(process)