CMS 3D CMS Logo

Functions
customizeMuonDigi Namespace Reference

Functions

def append_GEMDigi_event (process)
 
def customise_rpcRedigi (process)
 
def customize_digi_addGEM (process)
 
def customize_digi_addGEM_addME0 (process)
 
def customize_digi_addGEM_addME0_gem_me0_only (process)
 
def customize_digi_addGEM_addME0_muon_only (process)
 
def customize_digi_addGEM_gem_only (process)
 
def customize_digi_addGEM_muon_only (process)
 
def customize_digi_addME0_me0_only (process)
 
def customize_digi_noGEMbkg (process)
 
def customize_digi_noGEMsafety (process)
 
def customize_digi_noME0bkg (process)
 
def customize_digi_noME0safety (process)
 
def customize_digi_noRPCbkg (process)
 
def customize_mix_addGEM (process)
 
def customize_mix_addGEM_addME0_muon_only (process)
 
def customize_mix_addGEM_muon_only (process)
 
def customize_mix_addME0 (process)
 
def customize_mix_addME0_muon_only (process)
 
def customize_mix_muon_only (process)
 
def load_GEM_digitizers (process)
 load the digitizer and pad producer More...
 
def load_ME0_digitizers (process)
 load the digitizer and pad producer More...
 

Function Documentation

◆ append_GEMDigi_event()

def customizeMuonDigi.append_GEMDigi_event (   process)

Definition at line 224 of file customizeMuonDigi.py.

224 def append_GEMDigi_event(process):
225  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
226  for a in alist:
227  b=a+'output'
228  if hasattr(process,b):
229  getattr(process,b).outputCommands.extend(['keep *_g4SimHits_Muon*_*', 'keep *_*Muon*_*_*'])
230 
231  return process
232 
233 # Customizations for the background

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_me0_only(), customize_digi_addGEM_addME0_muon_only(), customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

◆ customise_rpcRedigi()

def customizeMuonDigi.customise_rpcRedigi (   process)

Definition at line 258 of file customizeMuonDigi.py.

258 def customise_rpcRedigi(process):
259  process.load('Configuration.StandardSequences.Digi_cff')
260  process.simMuonRPCReDigis = process.simMuonRPCDigis.clone()
261  process.simMuonRPCReDigis.digiModelConfig = process.simMuonRPCDigis.digiModelConfig.clone(
262  IRPC_time_resolution = cms.double(1.5),
263  IRPC_electronics_jitter = cms.double(0.1),
264  )
265  process.simMuonRPCReDigis.digiIRPCModelConfig = process.simMuonRPCReDigis.digiModelConfig.clone(
266  IRPC_time_resolution = cms.double(1.0),
267  do_Y_coordinate = cms.bool(True),
268  )
269  process.simMuonRPCReDigis.digiModel = cms.string('RPCSimModelTiming')
270  process.RandomNumberGeneratorService.simMuonRPCReDigis = cms.PSet(
271  initialSeed = cms.untracked.uint32(13579),
272  engineName = cms.untracked.string('TRandom3')
273  )
274  process.rpcRecHits.rpcDigiLabel = cms.InputTag("simMuonRPCReDigis")
275  process.validationMuonRPCDigis.rpcDigiTag = cms.untracked.InputTag("simMuonRPCReDigis")
276  process.reconstruction_step.replace(
277  process.rpcRecHits,
278  cms.Sequence(process.simMuonRPCReDigis+process.rpcRecHits)
279  )
280  return process

◆ customize_digi_addGEM()

def customizeMuonDigi.customize_digi_addGEM (   process)

Definition at line 183 of file customizeMuonDigi.py.

183 def customize_digi_addGEM(process):
184  process = load_GEM_digitizers(process)
185  process = customize_mix_addGEM(process)
186  process.doAllDigi = cms.Sequence(
187  process.calDigi +
188  process.muonDigi +
189  process.muonGEMDigi
190  )
191  process.pdigi = cms.Sequence(
192  cms.SequencePlaceholder("randomEngineStateProducer")*
193  cms.SequencePlaceholder("mix")*
194  process.doAllDigi*
195  process.addPileupInfo
196  )
197  process = append_GEMDigi_event(process)
198  return process
199 
200 
201 # customize the full digitization sequence pdigi by adding GEMs

References append_GEMDigi_event(), customize_mix_addGEM(), and load_GEM_digitizers().

◆ customize_digi_addGEM_addME0()

def customizeMuonDigi.customize_digi_addGEM_addME0 (   process)

Definition at line 202 of file customizeMuonDigi.py.

202 def customize_digi_addGEM_addME0(process):
203  process = load_GEM_digitizers(process)
204  process = load_ME0_digitizers(process)
205  process = customize_mix_addGEM(process)
206  process = customize_mix_addME0(process)
207  process.doAllDigi = cms.Sequence(
208  process.calDigi +
209  process.muonDigi +
210  process.muonGEMDigi +
211  process.muonME0Digi
212  )
213  process.pdigi = cms.Sequence(
214  cms.SequencePlaceholder("randomEngineStateProducer")*
215  cms.SequencePlaceholder("mix")*
216  process.doAllDigi*
217  process.addPileupInfo
218  )
219  process = append_GEMDigi_event(process)
220  return process
221 
222 
223 # insert the GEMDigi and GEMPadDigi collection to the event

References append_GEMDigi_event(), customize_mix_addGEM(), customize_mix_addME0(), load_GEM_digitizers(), and load_ME0_digitizers().

◆ customize_digi_addGEM_addME0_gem_me0_only()

def customizeMuonDigi.customize_digi_addGEM_addME0_gem_me0_only (   process)

Definition at line 128 of file customizeMuonDigi.py.

129  process = load_GEM_digitizers(process)
130  process = load_ME0_digitizers(process)
131  process = customize_mix_addGEM_addME0_muon_only(process)
132  process.pdigi = cms.Sequence(
133  cms.SequencePlaceholder("randomEngineStateProducer")*
134  cms.SequencePlaceholder("mix")*
135  process.muonGEMDigi*
136  process.muonME0Digi
137  )
138  process = append_GEMDigi_event(process)
139  return process
140 
141 
142 # customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM

References append_GEMDigi_event(), customize_mix_addGEM_addME0_muon_only(), load_GEM_digitizers(), and load_ME0_digitizers().

◆ customize_digi_addGEM_addME0_muon_only()

def customizeMuonDigi.customize_digi_addGEM_addME0_muon_only (   process)

Definition at line 162 of file customizeMuonDigi.py.

163  process = load_GEM_digitizers(process)
164  process = load_ME0_digitizers(process)
165  process = customize_mix_addGEM_addME0_muon_only(process)
166  process.muonDigi = cms.Sequence(
167  process.simMuonCSCDigis +
168  process.simMuonDTDigis +
169  process.simMuonRPCDigis +
170  process.muonGEMDigi +
171  process.muonME0Digi
172  )
173  process.pdigi = cms.Sequence(
174  cms.SequencePlaceholder("randomEngineStateProducer")*
175  cms.SequencePlaceholder("mix")*
176  process.muonDigi
177  )
178  process = append_GEMDigi_event(process)
179  return process
180 
181 
182 # customize the full digitization sequence pdigi by adding GEMs

References append_GEMDigi_event(), customize_mix_addGEM_addME0_muon_only(), load_GEM_digitizers(), and load_ME0_digitizers().

◆ customize_digi_addGEM_gem_only()

def customizeMuonDigi.customize_digi_addGEM_gem_only (   process)

Definition at line 102 of file customizeMuonDigi.py.

102 def customize_digi_addGEM_gem_only(process):
103  process = load_GEM_digitizers(process)
104  process = customize_mix_addGEM_muon_only(process)
105  process.pdigi = cms.Sequence(
106  cms.SequencePlaceholder("randomEngineStateProducer")*
107  cms.SequencePlaceholder("mix")*
108  process.muonGEMDigi
109  )
110  process = append_GEMDigi_event(process)
111  return process
112 
113 
114 # customize the digitization sequence pdigi to only digitize ME0

References append_GEMDigi_event(), customize_mix_addGEM_muon_only(), and load_GEM_digitizers().

◆ customize_digi_addGEM_muon_only()

def customizeMuonDigi.customize_digi_addGEM_muon_only (   process)

Definition at line 143 of file customizeMuonDigi.py.

144  process = load_GEM_digitizers(process)
145  process = customize_mix_addGEM_muon_only(process)
146  process.muonDigi = cms.Sequence(
147  process.simMuonCSCDigis +
148  process.simMuonDTDigis +
149  process.simMuonRPCDigis +
150  process.muonGEMDigi
151  )
152  process.pdigi = cms.Sequence(
153  cms.SequencePlaceholder("randomEngineStateProducer")*
154  cms.SequencePlaceholder("mix")*
155  process.muonDigi
156  )
157  process = append_GEMDigi_event(process)
158  return process
159 
160 
161 # customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM+ME0

References append_GEMDigi_event(), customize_mix_addGEM_muon_only(), and load_GEM_digitizers().

Referenced by me0Custom.customise_digitization().

◆ customize_digi_addME0_me0_only()

def customizeMuonDigi.customize_digi_addME0_me0_only (   process)

Definition at line 115 of file customizeMuonDigi.py.

115 def customize_digi_addME0_me0_only(process):
116  process = load_ME0_digitizers(process)
117  process = customize_mix_addME0_muon_only(process)
118  process.pdigi = cms.Sequence(
119  cms.SequencePlaceholder("randomEngineStateProducer")*
120  cms.SequencePlaceholder("mix")*
121  process.muonME0Digi
122  )
123  process = append_ME0Digi_event(process)
124  return process
125 
126 
127 # customize the digitization sequence pdigi to only digitize GEM, ME0

References customize_mix_addME0_muon_only(), and load_ME0_digitizers().

◆ customize_digi_noGEMbkg()

def customizeMuonDigi.customize_digi_noGEMbkg (   process)

Definition at line 234 of file customizeMuonDigi.py.

234 def customize_digi_noGEMbkg(process):
235  process.simMuonGEMDigis.doBkgNoise = False
236  return process
237 

◆ customize_digi_noGEMsafety()

def customizeMuonDigi.customize_digi_noGEMsafety (   process)

Definition at line 238 of file customizeMuonDigi.py.

238 def customize_digi_noGEMsafety(process):
239  process.simMuonGEMDigis.rateFact = 1
240  return process
241 
242 # Customizations for the background (to be updated once the realistic digi is in place)

◆ customize_digi_noME0bkg()

def customizeMuonDigi.customize_digi_noME0bkg (   process)

Definition at line 243 of file customizeMuonDigi.py.

243 def customize_digi_noME0bkg(process):
244  process.simMuonME0PseudoDigis.simulateElectronBkg = False
245  process.simMuonME0PseudoDigis.simulateNeutralBkg = False
246  return process
247 

◆ customize_digi_noME0safety()

def customizeMuonDigi.customize_digi_noME0safety (   process)

Definition at line 248 of file customizeMuonDigi.py.

248 def customize_digi_noME0safety(process):
249  process.simMuonME0PseudoDigis.rateFact = 1
250  return process
251 
252 # Customizations for the background

◆ customize_digi_noRPCbkg()

def customizeMuonDigi.customize_digi_noRPCbkg (   process)

Definition at line 253 of file customizeMuonDigi.py.

253 def customize_digi_noRPCbkg(process):
254  process.simMuonRPCDigis.doBkgNoise = False
255  return process
256 
257 # adding re-digi costumisation - to be used for dedicated trigger studies

◆ customize_mix_addGEM()

def customizeMuonDigi.customize_mix_addGEM (   process)

Definition at line 45 of file customizeMuonDigi.py.

45 def customize_mix_addGEM(process):
46  process.mix.mixObjects.mixSH.crossingFrames.append('MuonGEMHits')
47  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonGEMHits"))
48  process.mix.mixObjects.mixSH.subdets.append('MuonGEMHits')
49  return process
50 
51 
52 # customize process.mix by appending ME0 SimHit collection definitions to mix.mixObjects.mixSH

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_mix_addGEM_addME0_muon_only(), and customize_mix_addGEM_muon_only().

◆ customize_mix_addGEM_addME0_muon_only()

def customizeMuonDigi.customize_mix_addGEM_addME0_muon_only (   process)

Definition at line 94 of file customizeMuonDigi.py.

95  process = customize_mix_muon_only(process)
96  process = customize_mix_addGEM(process)
97  process = customize_mix_addME0(process)
98  return process
99 
100 
101 # customize the digitization sequence pdigi to only digitize GEM

References customize_mix_addGEM(), customize_mix_addME0(), and customize_mix_muon_only().

Referenced by customize_digi_addGEM_addME0_gem_me0_only(), and customize_digi_addGEM_addME0_muon_only().

◆ customize_mix_addGEM_muon_only()

def customizeMuonDigi.customize_mix_addGEM_muon_only (   process)

Definition at line 75 of file customizeMuonDigi.py.

76  process = customize_mix_muon_only(process)
77  process = customize_mix_addGEM(process)
78  return process
79 
80 
81 # Customize process.mix to be used for running muon (DT, CSC, RPC + ME0) digi only.
82 # - first do such customization for (DT, CSC, RPC)
83 # - append ME0 SimHit collection definitions to mix.mixObjects.mixSH

References customize_mix_addGEM(), and customize_mix_muon_only().

Referenced by customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

◆ customize_mix_addME0()

def customizeMuonDigi.customize_mix_addME0 (   process)

Definition at line 53 of file customizeMuonDigi.py.

53 def customize_mix_addME0(process):
54  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
55  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
56  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
57  return process
58 
59 

Referenced by customize_digi_addGEM_addME0(), customize_mix_addGEM_addME0_muon_only(), and customize_mix_addME0_muon_only().

◆ customize_mix_addME0_muon_only()

def customizeMuonDigi.customize_mix_addME0_muon_only (   process)

Definition at line 84 of file customizeMuonDigi.py.

85  process = customize_mix_muon_only(process)
86  process = customize_mix_addME0(process)
87  return process
88 
89 
90 # Customize process.mix to be used for running muon (DT, CSC, RPC, GEM, ME0) digi only.
91 # - first do such customization for (DT, CSC, RPC)
92 # - append GEM SimHit collection definitions to mix.mixObjects.mixSH
93 # - append ME0 SimHit collection definitions to mix.mixObjects.mixSH

References customize_mix_addME0(), and customize_mix_muon_only().

Referenced by customize_digi_addME0_me0_only().

◆ customize_mix_muon_only()

def customizeMuonDigi.customize_mix_muon_only (   process)

Definition at line 19 of file customizeMuonDigi.py.

19 def customize_mix_muon_only(process):
20  process.mix.digitizers = digitizers = cms.PSet()
21  digi_aliases = [n for n in process.aliases.keys() if 'Digi' in n]
22  for a in digi_aliases: process.__delattr__(a)
23  from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
24  process.mix.mixObjects = theMixObjects
25  process.mix.mixObjects.mixCH = cms.PSet()
26  process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring(
27  'MuonCSCHits',
28  'MuonDTHits',
29  'MuonRPCHits'
30  )
31  process.mix.mixObjects.mixSH.input = cms.VInputTag(
32  cms.InputTag("g4SimHits","MuonCSCHits"),
33  cms.InputTag("g4SimHits","MuonDTHits"),
34  cms.InputTag("g4SimHits","MuonRPCHits")
35  )
36  process.mix.mixObjects.mixSH.subdets = cms.vstring(
37  'MuonCSCHits',
38  'MuonDTHits',
39  'MuonRPCHits'
40  )
41  return process
42 
43 
44 # customize process.mix by appending GEM SimHit collection definitions to mix.mixObjects.mixSH

Referenced by customize_mix_addGEM_addME0_muon_only(), customize_mix_addGEM_muon_only(), and customize_mix_addME0_muon_only().

◆ load_GEM_digitizers()

def customizeMuonDigi.load_GEM_digitizers (   process)

load the digitizer and pad producer

Definition at line 61 of file customizeMuonDigi.py.

61 def load_GEM_digitizers(process):
62  process.load('SimMuon.GEMDigitizer.muonGEMDigi_cff')
63  return process
64 
65 

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_me0_only(), customize_digi_addGEM_addME0_muon_only(), customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

◆ load_ME0_digitizers()

def customizeMuonDigi.load_ME0_digitizers (   process)

load the digitizer and pad producer

Definition at line 67 of file customizeMuonDigi.py.

67 def load_ME0_digitizers(process):
68  process.load('SimMuon.GEMDigitizer.muonME0Digi_cff')
69  return process
70 
71 
72 # Customize process.mix to be used for running muon (DT, CSC, RPC + GEM) digi only.
73 # - first do such customization for (DT, CSC, RPC)
74 # - append GEM SimHit collection definitions to mix.mixObjects.mixSH

Referenced by customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_me0_only(), customize_digi_addGEM_addME0_muon_only(), and customize_digi_addME0_me0_only().

customizeMuonDigi.customize_mix_addGEM_muon_only
def customize_mix_addGEM_muon_only(process)
Definition: customizeMuonDigi.py:75
customizeMuonDigi.customize_mix_addME0
def customize_mix_addME0(process)
Definition: customizeMuonDigi.py:53
customizeMuonDigi.customize_digi_addGEM
def customize_digi_addGEM(process)
Definition: customizeMuonDigi.py:183
customizeMuonDigi.customize_digi_addGEM_addME0_muon_only
def customize_digi_addGEM_addME0_muon_only(process)
Definition: customizeMuonDigi.py:162
customizeMuonDigi.customize_mix_addME0_muon_only
def customize_mix_addME0_muon_only(process)
Definition: customizeMuonDigi.py:84
mixObjects_cfi
customizeMuonDigi.customize_mix_addGEM
def customize_mix_addGEM(process)
Definition: customizeMuonDigi.py:45
customizeMuonDigi.customize_digi_addGEM_muon_only
def customize_digi_addGEM_muon_only(process)
Definition: customizeMuonDigi.py:143
customizeMuonDigi.customize_mix_addGEM_addME0_muon_only
def customize_mix_addGEM_addME0_muon_only(process)
Definition: customizeMuonDigi.py:94
customizeMuonDigi.customize_mix_muon_only
def customize_mix_muon_only(process)
Definition: customizeMuonDigi.py:19
customizeMuonDigi.customize_digi_addME0_me0_only
def customize_digi_addME0_me0_only(process)
Definition: customizeMuonDigi.py:115
customizeMuonDigi.append_GEMDigi_event
def append_GEMDigi_event(process)
Definition: customizeMuonDigi.py:224
customizeMuonDigi.load_ME0_digitizers
def load_ME0_digitizers(process)
load the digitizer and pad producer
Definition: customizeMuonDigi.py:67
customizeMuonDigi.customize_digi_noRPCbkg
def customize_digi_noRPCbkg(process)
Definition: customizeMuonDigi.py:253
customizeMuonDigi.customize_digi_addGEM_addME0
def customize_digi_addGEM_addME0(process)
Definition: customizeMuonDigi.py:202
customizeMuonDigi.customize_digi_addGEM_gem_only
def customize_digi_addGEM_gem_only(process)
Definition: customizeMuonDigi.py:102
customizeMuonDigi.customise_rpcRedigi
def customise_rpcRedigi(process)
Definition: customizeMuonDigi.py:258
customizeMuonDigi.load_GEM_digitizers
def load_GEM_digitizers(process)
load the digitizer and pad producer
Definition: customizeMuonDigi.py:61
customizeMuonDigi.customize_digi_noME0bkg
def customize_digi_noME0bkg(process)
Definition: customizeMuonDigi.py:243
customizeMuonDigi.customize_digi_addGEM_addME0_gem_me0_only
def customize_digi_addGEM_addME0_gem_me0_only(process)
Definition: customizeMuonDigi.py:128
customizeMuonDigi.customize_digi_noGEMbkg
def customize_digi_noGEMbkg(process)
Definition: customizeMuonDigi.py:234
customizeMuonDigi.customize_digi_noGEMsafety
def customize_digi_noGEMsafety(process)
Definition: customizeMuonDigi.py:238
customizeMuonDigi.customize_digi_noME0safety
def customize_digi_noME0safety(process)
Definition: customizeMuonDigi.py:248