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_mix_addGEM
 
def customize_mix_addGEM_addME0_muon_only
 
def customize_mix_addGEM_muon_only
 
def customize_mix_addME0
 
def customize_mix_muon_only
 
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
 

Function Documentation

def customizeGEMDigi.append_GEMDigi_event (   process)

Definition at line 252 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(), and customize_digi_addGEM_muon_only().

253 def append_GEMDigi_event(process):
254  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
255  for a in alist:
256  b=a+'output'
257  if hasattr(process,b):
258  getattr(process,b).outputCommands.append('keep *_simMuonGEMDigis_*_*')
259  getattr(process,b).outputCommands.append('keep *_simMuonGEMPadDigis_*_*')
260  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
261  return process
def customizeGEMDigi.customize_digi_addGEM (   process)

Definition at line 125 of file customizeGEMDigi.py.

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

126 def customize_digi_addGEM(process):
127  process = load_GEM_digitizers(process)
128  process = customize_random_GEMDigi(process)
129  process = customize_mix_addGEM(process)
130  process.doAllDigi = cms.Sequence(
131  process.calDigi +
132  process.muonDigi
133  )
134  process.pdigi = cms.Sequence(
135  cms.SequencePlaceholder("randomEngineStateProducer")*
136  cms.SequencePlaceholder("mix")*
137  process.doAllDigi*
138  process.addPileupInfo
139  )
140  process = append_GEMDigi_event(process)
141  return process
142 
143 
# 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_addME0 (   process)

Definition at line 180 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().

181 def customize_digi_addGEM_addME0(process):
182  process = load_GEM_digitizers(process)
183  process = load_ME0_digitizers(process)
184  process = customize_random_GEMDigi(process)
185  process = customize_random_ME0Digi(process)
186  process = customize_mix_addGEM(process)
187  process = customize_mix_addME0(process)
188  process.muonDigi = cms.Sequence(
189  process.simMuonCSCDigis +
190  process.simMuonDTDigis +
191  process.simMuonRPCDigis +
192  process.simMuonGEMDigis +
193  process.simMuonGEMPadDigis +
194  process.simMuonME0Digis
195  )
196  process.doAllDigi = cms.Sequence(
197  process.calDigi +
198  process.muonDigi
199  )
200  process.pdigi = cms.Sequence(
201  cms.SequencePlaceholder("randomEngineStateProducer")*
202  cms.SequencePlaceholder("mix")*
203  process.doAllDigi*
204  process.addPileupInfo
205  )
206  process = append_GEMDigi_event(process)
207  return process
208 
209 
# 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 234 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().

236  process = load_GEM_digitizers(process)
237  process = load_ME0_digitizers(process)
238  process = customize_random_GEMDigi(process)
239  process = customize_random_ME0Digi(process)
240  process = customize_mix_addGEM_addME0_muon_only(process)
241  process.pdigi = cms.Sequence(
242  cms.SequencePlaceholder("randomEngineStateProducer")*
243  cms.SequencePlaceholder("mix")*
244  process.simMuonGEMDigis*
245  process.simMuonGEMPadDigis*
246  process.simMuonME0Digis
247  )
248  process = append_GEMDigi_event(process)
249  return process
250 
251 
# 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 210 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().

212  process = load_GEM_digitizers(process)
213  process = load_ME0_digitizers(process)
214  process = customize_random_GEMDigi(process)
215  process = customize_random_ME0Digi(process)
216  process = customize_mix_addGEM_addME0_muon_only(process)
217  process.muonDigi = cms.Sequence(
218  process.simMuonCSCDigis +
219  process.simMuonDTDigis +
220  process.simMuonRPCDigis +
221  process.simMuonGEMDigis +
222  process.simMuonGEMPadDigis +
223  process.simMuonME0Digis
224  )
225  process.pdigi = cms.Sequence(
226  cms.SequencePlaceholder("randomEngineStateProducer")*
227  cms.SequencePlaceholder("mix")*
228  process.muonDigi
229  )
230  process = append_GEMDigi_event(process)
231  return process
232 
233 
# 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 165 of file customizeGEMDigi.py.

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

166 def customize_digi_addGEM_gem_only(process):
167  process = load_GEM_digitizers(process)
168  process = customize_random_GEMDigi(process)
169  process = customize_mix_addGEM_muon_only(process)
170  process.pdigi = cms.Sequence(
171  cms.SequencePlaceholder("randomEngineStateProducer")*
172  cms.SequencePlaceholder("mix")*
173  process.simMuonGEMDigis*
174  process.simMuonGEMPadDigis
175  )
176  process = append_GEMDigi_event(process)
177  return process
178 
179 
# customize the full digitization sequence pdigi by adding GEMs
def load_GEM_digitizers
load the digitizer and pad producer
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_digi_addGEM_muon_only (   process)

Definition at line 144 of file customizeGEMDigi.py.

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

Referenced by gemCustom.customise_digitization(), and gemCustoms.customise_digitization().

146  process = load_GEM_digitizers(process)
147  process = customize_random_GEMDigi(process)
148  process = customize_mix_addGEM_muon_only(process)
149  process.muonDigi = cms.Sequence(
150  process.simMuonCSCDigis +
151  process.simMuonDTDigis +
152  process.simMuonRPCDigis +
153  process.simMuonGEMDigis +
154  process.simMuonGEMPadDigis
155  )
156  process.pdigi = cms.Sequence(
157  cms.SequencePlaceholder("randomEngineStateProducer")*
158  cms.SequencePlaceholder("mix")*
159  process.muonDigi
160  )
161  process = append_GEMDigi_event(process)
162  return process
163 
164 
# customize the digitization sequence pdigi to only digitize GEM
def load_GEM_digitizers
load the digitizer and pad producer
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_mix_addGEM (   process)

Definition at line 60 of file customizeGEMDigi.py.

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

60 
61 def customize_mix_addGEM(process):
62  process.mix.mixObjects.mixSH.crossingFrames.append('MuonGEMHits')
63  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonGEMHits"))
64  process.mix.mixObjects.mixSH.subdets.append('MuonGEMHits')
65  return process
66 
67 
# 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 87 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().

87 
89  process = customize_mix_muon_only(process)
90  process = customize_mix_addGEM(process)
91  process = customize_mix_addME0(process)
92  return process
93 
94 
# Add simMuonGEMDigis to the list of modules served by RandomNumberGeneratorService
def customize_mix_addGEM_addME0_muon_only
def customizeGEMDigi.customize_mix_addGEM_muon_only (   process)

Definition at line 78 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().

78 
80  process = customize_mix_muon_only(process)
81  process = customize_mix_addGEM(process)
82  return process
83 
84 
85 # Customize process.mix to be used for running muon (DT, CSC, RPC + GEM) digi only.
86 # - first do such customization for (DT, CSC, RPC)
# - append GEM SimHit collection definitions to mix.mixObjects.mixSH
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_mix_addME0 (   process)

Definition at line 68 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM_addME0(), and customize_mix_addGEM_addME0_muon_only().

68 
69 def customize_mix_addME0(process):
70  process.mix.mixObjects.mixSH.crossingFrames.append('MuonME0Hits')
71  process.mix.mixObjects.mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
72  process.mix.mixObjects.mixSH.subdets.append('MuonME0Hits')
73  return process
74 
75 
76 # Customize process.mix to be used for running muon (DT, CSC, RPC + GEM) digi only.
77 # - 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 51 of file customizeGEMDigi.py.

References alcazmumu_cfi.filter.

Referenced by customize_mix_addGEM_addME0_muon_only(), and customize_mix_addGEM_muon_only().

51 
52 def customize_mix_muon_only(process):
53  process.mix.digitizers = digitizers = cms.PSet()
54  digi_aliases = filter(lambda n: 'Digi' in n, process.aliases.keys())
55  for a in digi_aliases: process.__delattr__(a)
56  process.mix.mixObjects = mixObjects_dt_csc_rpc
57  return process
58 
59 
# customize process.mix by appending GEM SimHit collection definitions to mix.mixObjects.mixSH
def customizeGEMDigi.customize_random_GEMDigi (   process)

Definition at line 95 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(), and customize_digi_addGEM_muon_only().

95 
96 def customize_random_GEMDigi(process):
97  process.RandomNumberGeneratorService.simMuonGEMDigis = cms.PSet(
98  initialSeed = cms.untracked.uint32(1234567),
99  engineName = cms.untracked.string('HepJamesRandom')
100  )
101  return process
102 
103 
# Add simMuonME0Digis to the list of modules served by RandomNumberGeneratorService
def customizeGEMDigi.customize_random_ME0Digi (   process)

Definition at line 104 of file customizeGEMDigi.py.

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

105 def customize_random_ME0Digi(process):
106  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
107  initialSeed = cms.untracked.uint32(1234567),
108  engineName = cms.untracked.string('HepJamesRandom')
109  )
110  return process
111 
def customizeGEMDigi.load_GEM_digitizers (   process)

load the digitizer and pad producer

Definition at line 113 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(), and customize_digi_addGEM_muon_only().

114 def load_GEM_digitizers(process):
115  process.load('SimMuon.GEMDigitizer.muonGEMDigi_cff')
116  return process
117 
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 119 of file customizeGEMDigi.py.

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

120 def load_ME0_digitizers(process):
121  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
122  return process
123 
124 
# 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 5 of file customizeGEMDigi.py.