CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
rpcChamberMasker_cff Namespace Reference

Functions

def appendRPCChamberMaskerAtReco
 
def appendRPCChamberMaskerAtUnpacking
 
def appendRPCChamberMaskerBeforeRecHits
 

Function Documentation

def rpcChamberMasker_cff.appendRPCChamberMaskerAtReco (   process)

Definition at line 7 of file rpcChamberMasker_cff.py.

7 
9 
10  phase2_muon.toModify(process, appendRPCChamberMaskerBeforeRecHits)
11  (~phase2_muon).toModify(process, appendRPCChamberMaskerAtUnpacking)
12 
13  return process
14 
15 
16 # To be used for PhaseII
17 # no packin/unpacking is available for RE3/1 RE4/1
# must start from sim digis
def rpcChamberMasker_cff.appendRPCChamberMaskerAtUnpacking (   process)

Definition at line 51 of file rpcChamberMasker_cff.py.

51 
53 
54  if hasattr(process,'muonRPCDigis') :
55 
56  sys.stderr.write("[appendRPCChamberMasker] : Found muonRPCDigis, applying filter\n")
57 
58  process.preRPCDigis = process.muonRPCDigis.clone()
59  process.muonRPCDigis = _rpcChamberMasker.clone()
60 
61  if hasattr(process,"RandomNumberGeneratorService") :
62  process.RandomNumberGeneratorService.muonRPCDigis = cms.PSet(
63  initialSeed = cms.untracked.uint32(789342)
64  )
65  else :
66  process.RandomNumberGeneratorService = cms.Service(
67  "RandomNumberGeneratorService",
68  muonRPCDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
69  )
70 
71  process.RawToDigiTask.add(process.preRPCDigis)
72 
73  return process
def rpcChamberMasker_cff.appendRPCChamberMaskerBeforeRecHits (   process)

Definition at line 18 of file rpcChamberMasker_cff.py.

Referenced by customiseForMuonAging.enableAgingAtReco().

18 
20 
21  if hasattr(process,'rpcRecHits') :
22 
23  sys.stderr.write("[appendRPCChamberMasker] : Found rpcRecHits, applying filter\n")
24 
25  process.rpcAgedDigis = _rpcChamberMasker.clone()
26  process.rpcAgedDigis.digiTag = cms.InputTag('simMuonRPCDigis')
27 
28  process.rpcRecHits = process.rpcRecHits.clone()
29  process.rpcRecHits.rpcDigiLabel = cms.InputTag('rpcAgedDigis')
30 
31  process.filteredRpcDigiSequence = cms.Sequence(process.rpcAgedDigis \
32  + process.rpcRecHits)
33 
34  process.reconstruction.replace(process.rpcRecHits, \
35  process.filteredRpcDigiSequence)
36 
37  if hasattr(process,"RandomNumberGeneratorService") :
38  process.RandomNumberGeneratorService.rpcAgedDigis = cms.PSet(
39  initialSeed = cms.untracked.uint32(789342)
40  )
41  else :
42  process.RandomNumberGeneratorService = cms.Service(
43  "RandomNumberGeneratorService",
44  rpcAgedDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
45  )
46 
47  return process
48 
49 
50 # To be used for PhaseII
# exploit unpacking of digis