CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
customizeGEMDigi Namespace Reference

Functions

def append_GEMDigi_event
 
def customize_digi_addGEM
 
def customize_digi_addGEM_addME0
 
def customize_digi_addGEM_addME0_gem_only
 
def customize_digi_addGEM_addME0_muon_only
 
def customize_digi_addGEM_gem_only
 
def customize_digi_addGEM_muon_only
 
def customize_digi_addGEM_nocalo
 
def customize_mix_addGEM
 
def customize_mix_addGEM_addME0_muon_only
 
def customize_mix_addGEM_addME0_nocalo
 
def customize_mix_addGEM_muon_only
 
def customize_mix_addGEM_nocalo
 
def customize_mix_addME0
 
def customize_mix_muon_only
 
def customize_mix_nocalo
 
def customize_random_GEMDigi
 
def customize_random_ME0Digi
 
def load_GEM_digitizers
 load the digitizer and pad producer More...
 
def load_ME0_digitizers
 load the digitizer and pad producer More...
 

Variables

tuple mixObjects_dt_csc_rpc
 
tuple mixObjects_dt_csc_rpc_trk
 

Function Documentation

def customizeGEMDigi.append_GEMDigi_event (   process)

Definition at line 445 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_only(), customize_digi_addGEM_addME0_muon_only(), customize_digi_addGEM_gem_only(), customizeRPCDigi.customize_digi_addGEM_muon_only(), customize_digi_addGEM_muon_only(), and customize_digi_addGEM_nocalo().

446 def append_GEMDigi_event(process):
447  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
448  for a in alist:
449  b=a+'output'
450  if hasattr(process,b):
451  getattr(process,b).outputCommands.append('drop *')
452  # getattr(process,b).outputCommands.append('keep *_mix_*_*')
453  getattr(process,b).outputCommands.append('keep *_g4SimHits__*')
454  getattr(process,b).outputCommands.append('keep *_g4SimHits_Muon*_*')
455  getattr(process,b).outputCommands.append('keep *_g4SimHits_Tracker*_*')
456  getattr(process,b).outputCommands.append('keep *_generator_*_*')
457  getattr(process,b).outputCommands.append('keep *_genParticles_*_*')
458  getattr(process,b).outputCommands.append('keep *_*Muon*_*_*')
459  getattr(process,b).outputCommands.append('keep *_*Strip*_*_*')
460  getattr(process,b).outputCommands.append('keep *_*Pixel*_*_*')
461  # getattr(process,b).outputCommands.append('keep *_*_*_*')
462  # getattr(process,b).outputCommands.append('keep *_simSiPixelDigis_*_*')
463  # getattr(process,b).outputCommands.append('keep *_simSiStripDigis_*_*')
464 
465  return process
def customizeGEMDigi.customize_digi_addGEM (   process)

Definition at line 339 of file customizeGEMDigi.py.

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

340 def customize_digi_addGEM(process):
341  process = load_GEM_digitizers(process)
342  process = customize_random_GEMDigi(process)
343  process = customize_mix_addGEM(process)
344  process.doAllDigi = cms.Sequence(
345  process.calDigi +
346  process.muonDigi
347  )
348  process.pdigi = cms.Sequence(
349  cms.SequencePlaceholder("randomEngineStateProducer")*
350  cms.SequencePlaceholder("mix")*
351  process.doAllDigi*
352  process.addPileupInfo
353  )
354  process = append_GEMDigi_event(process)
355  return process
356 
357 
# customize the digitization sequence pdigi to only digitize GEM
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.customize_digi_addGEM_addME0 (   process)

Definition at line 373 of file customizeGEMDigi.py.

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

374 def customize_digi_addGEM_addME0(process):
375  process = load_GEM_digitizers(process)
376  process = load_ME0_digitizers(process)
377  process = customize_random_GEMDigi(process)
378  process = customize_random_ME0Digi(process)
379  process = customize_mix_addGEM(process)
380  process = customize_mix_addME0(process)
381  process.muonDigi = cms.Sequence(
382  process.simMuonCSCDigis +
383  process.simMuonDTDigis +
384  process.simMuonRPCDigis +
385  process.simMuonGEMDigis +
386  process.simMuonGEMPadDigis +
387  process.simMuonME0Digis
388  )
389  process.doAllDigi = cms.Sequence(
390  process.calDigi +
391  process.muonDigi
392  )
393  process.pdigi = cms.Sequence(
394  cms.SequencePlaceholder("randomEngineStateProducer")*
395  cms.SequencePlaceholder("mix")*
396  process.doAllDigi*
397  process.addPileupInfo
398  )
399  process = append_GEMDigi_event(process)
400  return process
401 
402 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def load_ME0_digitizers
load the digitizer and pad producer
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.customize_digi_addGEM_addME0_gem_only (   process)

Definition at line 427 of file customizeGEMDigi.py.

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

429  process = load_GEM_digitizers(process)
430  process = load_ME0_digitizers(process)
431  process = customize_random_GEMDigi(process)
432  process = customize_random_ME0Digi(process)
433  process = customize_mix_addGEM_addME0_muon_only(process)
434  process.pdigi = cms.Sequence(
435  cms.SequencePlaceholder("randomEngineStateProducer")*
436  cms.SequencePlaceholder("mix")*
437  process.simMuonGEMDigis*
438  process.simMuonGEMPadDigis*
439  process.simMuonME0Digis
440  )
441  process = append_GEMDigi_event(process)
442  return process
443 
444 
# insert the GEMDigi and GEMPadDigi collection to the event
def load_ME0_digitizers
load the digitizer and pad producer
def customize_digi_addGEM_addME0_gem_only
def load_GEM_digitizers
load the digitizer and pad producer
def customize_mix_addGEM_addME0_muon_only
def customizeGEMDigi.customize_digi_addGEM_addME0_muon_only (   process)

Definition at line 403 of file customizeGEMDigi.py.

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

405  process = load_GEM_digitizers(process)
406  process = load_ME0_digitizers(process)
407  process = customize_random_GEMDigi(process)
408  process = customize_random_ME0Digi(process)
409  process = customize_mix_addGEM_addME0_muon_only(process)
410  process.muonDigi = cms.Sequence(
411  process.simMuonCSCDigis +
412  process.simMuonDTDigis +
413  process.simMuonRPCDigis +
414  process.simMuonGEMDigis +
415  process.simMuonGEMPadDigis +
416  process.simMuonME0Digis
417  )
418  process.pdigi = cms.Sequence(
419  cms.SequencePlaceholder("randomEngineStateProducer")*
420  cms.SequencePlaceholder("mix")*
421  process.muonDigi
422  )
423  process = append_GEMDigi_event(process)
424  return process
425 
426 
# customize the digitization sequence pdigi to only digitize GEM
def load_ME0_digitizers
load the digitizer and pad producer
def load_GEM_digitizers
load the digitizer and pad producer
def customize_digi_addGEM_addME0_muon_only
def customize_mix_addGEM_addME0_muon_only
def customizeGEMDigi.customize_digi_addGEM_gem_only (   process)

Definition at line 358 of file customizeGEMDigi.py.

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

359 def customize_digi_addGEM_gem_only(process):
360  process = load_GEM_digitizers(process)
361  process = customize_random_GEMDigi(process)
362  process = customize_mix_addGEM_muon_only(process)
363  process.pdigi = cms.Sequence(
364  cms.SequencePlaceholder("randomEngineStateProducer")*
365  cms.SequencePlaceholder("mix")*
366  process.simMuonGEMDigis*
367  process.simMuonGEMPadDigis
368  )
369  process = append_GEMDigi_event(process)
370  return process
371 
372 
# customize the full digitization sequence pdigi by adding GEMs
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.customize_digi_addGEM_muon_only (   process)

Definition at line 232 of file customizeGEMDigi.py.

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

234  process = load_GEM_digitizers(process)
235  process = customize_random_GEMDigi(process)
236  process = customize_mix_addGEM_muon_only(process)
237  process.muonDigi = cms.Sequence(
238  process.simMuonCSCDigis +
239  process.simMuonDTDigis +
240  process.simMuonRPCDigis +
241  process.simMuonGEMDigis +
242  process.simMuonGEMPadDigis
243  )
244  process.pdigi = cms.Sequence(
245  cms.SequencePlaceholder("randomEngineStateProducer")*
246  cms.SequencePlaceholder("mix")*
247  process.muonDigi
248  )
249  process = append_GEMDigi_event(process)
250  return process
251 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.customize_digi_addGEM_nocalo (   process)

Definition at line 252 of file customizeGEMDigi.py.

References append_GEMDigi_event(), customize_mix_addGEM_nocalo(), customize_random_GEMDigi(), and load_GEM_digitizers().

253 def customize_digi_addGEM_nocalo(process):
254  process = load_GEM_digitizers(process)
255  process = customize_random_GEMDigi(process)
256  process = customize_mix_addGEM_nocalo(process)
257  process.muonDigi = cms.Sequence(
258  process.simMuonCSCDigis +
259  process.simMuonDTDigis +
260  process.simMuonRPCDigis +
261  process.simMuonGEMDigis +
262  process.simMuonGEMPadDigis
263  )
264  process.pdigi = cms.Sequence(
265  cms.SequencePlaceholder("randomEngineStateProducer")*
266  cms.SequencePlaceholder("mix")*
267  process.muonDigi
268  )
269  # process.pdigi.remove(simCastorDigis)
270  process = append_GEMDigi_event(process)
271  return process
272 
273 
274 
275 
276 
# customize process.mix by appending GEM SimHit collection definitions to mix.mixObjects.mixSH
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.customize_mix_addGEM (   process)

Definition at line 277 of file customizeGEMDigi.py.

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

278 def customize_mix_addGEM(process):
279  process.mix.mixObjects.mixSH.crossingFrames.append('MuonGEMHits')
280  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonGEMHits"))
281  process.mix.mixObjects.mixSH.subdets.append('MuonGEMHits')
282  return process
283 
284 
# customize process.mix by appending ME0 SimHit collection definitions to mix.mixObjects.mixSH
def customizeGEMDigi.customize_mix_addGEM_addME0_muon_only (   process)

Definition at line 295 of file customizeGEMDigi.py.

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

Referenced by customize_digi_addGEM_addME0_gem_only(), and customize_digi_addGEM_addME0_muon_only().

297  process = customize_mix_muon_only(process)
298  process = customize_mix_addGEM(process)
299  process = customize_mix_addME0(process)
300  return process
def customize_mix_addGEM_addME0_muon_only
def customizeGEMDigi.customize_mix_addGEM_addME0_nocalo (   process)

Definition at line 301 of file customizeGEMDigi.py.

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

303  process = customize_mix_nocalo(process)
304  process = customize_mix_addGEM(process)
305  process = customize_mix_addME0(process)
306  return process
307 
308 
# Add simMuonGEMDigis to the list of modules served by RandomNumberGeneratorService
def customize_mix_addGEM_addME0_nocalo
def customizeGEMDigi.customize_mix_addGEM_muon_only (   process)

Definition at line 221 of file customizeGEMDigi.py.

References customize_mix_addGEM(), and customize_mix_muon_only().

Referenced by customize_digi_addGEM_gem_only(), customizeRPCDigi.customize_digi_addGEM_muon_only(), and customize_digi_addGEM_muon_only().

222 def customize_mix_addGEM_muon_only(process):
223  process = customize_mix_muon_only(process)
224  process = customize_mix_addGEM(process)
225  return process
def customizeGEMDigi.customize_mix_addGEM_nocalo (   process)

Definition at line 226 of file customizeGEMDigi.py.

References customize_mix_addGEM(), and customize_mix_nocalo().

Referenced by customize_digi_addGEM_nocalo().

227 def customize_mix_addGEM_nocalo(process):
228  process = customize_mix_nocalo(process)
229  process = customize_mix_addGEM(process)
230  return process
231 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def customizeGEMDigi.customize_mix_addME0 (   process)

Definition at line 285 of file customizeGEMDigi.py.

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

286 def customize_mix_addME0(process):
287  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
288  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
289  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
290  return process
291 
292 
293 # Customize process.mix to be used for running muon (DT, CSC, RPC + GEM) digi only.
294 # - first do such customization for (DT, CSC, RPC)
# - append GEM SimHit collection definitions to mix.mixObjects.mixSH
def customizeGEMDigi.customize_mix_muon_only (   process)

Definition at line 173 of file customizeGEMDigi.py.

References alcazmumu_cfi.filter.

Referenced by customize_mix_addGEM_addME0_muon_only(), and customize_mix_addGEM_muon_only().

174 def customize_mix_muon_only(process):
175  process.mix.digitizers = digitizers = cms.PSet()
176  digi_aliases = filter(lambda n: 'Digi' in n, process.aliases.keys())
177  for a in digi_aliases: process.__delattr__(a)
178  process.mix.mixObjects = mixObjects_dt_csc_rpc
179  return process
180 
181 # Customize process.mix to be used for running muon and tracker digi only.
182 # - remove calo digitizers that are now run as part of mixing process
183 # - delete all the digitizers' aliases apart of pixel and strip aliasses.
184 # - reset the simCastorDigis, simEcalUnsuppressedDigis
185 # and simHcalUnsuppressedDigis
# - drop unnecessary mixObjects
def customizeGEMDigi.customize_mix_nocalo (   process)

Definition at line 186 of file customizeGEMDigi.py.

References alcazmumu_cfi.filter, and reco.print().

Referenced by customize_mix_addGEM_addME0_nocalo(), and customize_mix_addGEM_nocalo().

187 def customize_mix_nocalo(process):
188  process.mix.digitizers = digitizers = cms.PSet(
189  pixel = cms.PSet(
190  pixelDigitizer
191  ),
192  strip = cms.PSet(
193  stripDigitizer
194  ),
195  )
196  process.mix.theDigitizersValid = cms.PSet(
197  pixel = cms.PSet(
198  pixelDigitizer
199  ),
200  strip = cms.PSet(
201  stripDigitizer
202  )
203  )
204  # delete some contents of SimGeneral/MixingModule/python/aliases_cfi.py
205  # i was not able to delete these processes in a different way
206  process.simCastorDigis = cms.EDAlias()
207  process.simEcalUnsuppressedDigis = cms.EDAlias()
208  process.simHcalUnsuppressedDigis = cms.EDAlias()
209  # delete all digitizer aliasses apart of pixel and strip aliases
210  digi_aliases = filter(lambda n: 'Digi' in n, process.aliases.keys())
211  print("digi aliases before clean up: ")
212  for a in digi_aliases:
213  print(a)
214  if ('Strip' not in a) and ('Pixel' not in a):
215  process.__delattr__(a)
216  process.mix.mixObjects = mixObjects_dt_csc_rpc_trk
217  return process
218 
219 # Customize process.mix to be used for running muon (DT, CSC, RPC + GEM) digi only.
220 # - first do such customization for (DT, CSC, RPC)
# - append GEM SimHit collection definitions to mix.mixObjects.mixSH
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10
def customizeGEMDigi.customize_random_GEMDigi (   process)

Definition at line 309 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_only(), customize_digi_addGEM_addME0_muon_only(), customize_digi_addGEM_gem_only(), customizeRPCDigi.customize_digi_addGEM_muon_only(), customize_digi_addGEM_muon_only(), and customize_digi_addGEM_nocalo().

310 def customize_random_GEMDigi(process):
311  process.RandomNumberGeneratorService.simMuonGEMDigis = cms.PSet(
312  initialSeed = cms.untracked.uint32(1234567),
313  engineName = cms.untracked.string('HepJamesRandom')
314  )
315  return process
316 
317 
# Add simMuonME0Digis to the list of modules served by RandomNumberGeneratorService
def customizeGEMDigi.customize_random_ME0Digi (   process)

Definition at line 318 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_only(), and customize_digi_addGEM_addME0_muon_only().

319 def customize_random_ME0Digi(process):
320  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
321  initialSeed = cms.untracked.uint32(1234567),
322  engineName = cms.untracked.string('HepJamesRandom')
323  )
324  return process
325 
def customizeGEMDigi.load_GEM_digitizers (   process)

load the digitizer and pad producer

Definition at line 327 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM(), customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_only(), customize_digi_addGEM_addME0_muon_only(), customize_digi_addGEM_gem_only(), customizeRPCDigi.customize_digi_addGEM_muon_only(), customize_digi_addGEM_muon_only(), and customize_digi_addGEM_nocalo().

328 def load_GEM_digitizers(process):
329  process.load('SimMuon.GEMDigitizer.muonGEMDigi_cff')
330  return process
331 
def load_GEM_digitizers
load the digitizer and pad producer
def customizeGEMDigi.load_ME0_digitizers (   process)

load the digitizer and pad producer

Definition at line 333 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM_addME0(), customize_digi_addGEM_addME0_gem_only(), and customize_digi_addGEM_addME0_muon_only().

334 def load_ME0_digitizers(process):
335  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
336  return process
337 
338 
# customize the full digitization sequence pdigi by adding GEMs
def load_ME0_digitizers
load the digitizer and pad producer

Variable Documentation

tuple customizeGEMDigi.mixObjects_dt_csc_rpc

Definition at line 11 of file customizeGEMDigi.py.

tuple customizeGEMDigi.mixObjects_dt_csc_rpc_trk

Definition at line 90 of file customizeGEMDigi.py.