CMS 3D CMS Logo

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

Functions

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

Function Documentation

def customizeMuonDigi.append_GEMDigi_event (   process)

Definition at line 224 of file customizeMuonDigi.py.

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().

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

Definition at line 258 of file customizeMuonDigi.py.

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

Definition at line 183 of file customizeMuonDigi.py.

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

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

Definition at line 202 of file customizeMuonDigi.py.

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

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

Definition at line 128 of file customizeMuonDigi.py.

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

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

Definition at line 162 of file customizeMuonDigi.py.

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

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

Definition at line 102 of file customizeMuonDigi.py.

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

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

Definition at line 143 of file customizeMuonDigi.py.

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

Referenced by me0Custom.customise_digitization().

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

Definition at line 115 of file customizeMuonDigi.py.

References customize_mix_addME0_muon_only(), and load_ME0_digitizers().

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

Definition at line 234 of file customizeMuonDigi.py.

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

Definition at line 238 of file customizeMuonDigi.py.

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

Definition at line 243 of file customizeMuonDigi.py.

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

Definition at line 248 of file customizeMuonDigi.py.

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

Definition at line 253 of file customizeMuonDigi.py.

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

Definition at line 45 of file customizeMuonDigi.py.

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

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

Definition at line 94 of file customizeMuonDigi.py.

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().

94 
96  process = customize_mix_muon_only(process)
97  process = customize_mix_addGEM(process)
98  process = customize_mix_addME0(process)
99  return process
100 
101 
# customize the digitization sequence pdigi to only digitize GEM
def customize_mix_addGEM_addME0_muon_only
def customizeMuonDigi.customize_mix_addGEM_muon_only (   process)

Definition at line 75 of file customizeMuonDigi.py.

References customize_mix_addGEM(), and customize_mix_muon_only().

Referenced by customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

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

Definition at line 53 of file customizeMuonDigi.py.

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

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

Definition at line 84 of file customizeMuonDigi.py.

References customize_mix_addME0(), and customize_mix_muon_only().

Referenced by customize_digi_addME0_me0_only().

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

Definition at line 19 of file customizeMuonDigi.py.

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

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

load the digitizer and pad producer

Definition at line 61 of file customizeMuonDigi.py.

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().

61 
62 def load_GEM_digitizers(process):
63  process.load('SimMuon.GEMDigitizer.muonGEMDigi_cff')
64  return process
65 
def load_GEM_digitizers
load the digitizer and pad producer
def customizeMuonDigi.load_ME0_digitizers (   process)

load the digitizer and pad producer

Definition at line 67 of file customizeMuonDigi.py.

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().

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