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 240 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(), and customize_digi_addGEM_muon_only().

241 def append_GEMDigi_event(process):
242  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
243  for a in alist:
244  b=a+'output'
245  if hasattr(process,b):
246  getattr(process,b).outputCommands.append('keep *_simMuonGEMDigis_*_*')
247  getattr(process,b).outputCommands.append('keep *_simMuonGEMPadDigis_*_*')
248  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
249  return process
def customizeGEMDigi.customize_digi_addGEM (   process)

Definition at line 125 of file customizeGEMDigi.py.

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

126 def customize_digi_addGEM(process):
127  process = customize_random_GEMDigi(process)
128  process = customize_mix_addGEM(process)
129  process.doAllDigi = cms.Sequence(process.trDigi + process.calDigi + process.muonDigi)
130  process.pdigi = cms.Sequence(
131  cms.SequencePlaceholder("randomEngineStateProducer")*
132  cms.SequencePlaceholder("mix")*
133  process.doAllDigi*
134  process.addPileupInfo
135  )
136  process = append_GEMDigi_event(process)
137  return process
138 
139 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def customizeGEMDigi.customize_digi_addGEM_addME0 (   process)

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

169 def customize_digi_addGEM_addME0(process):
170  process = load_GEM_digitizers(process)
171  process = load_ME0_digitizers(process)
172  process = customize_random_GEMDigi(process)
173  process = customize_random_ME0Digi(process)
174  process = customize_mix_addGEM(process)
175  process = customize_mix_addME0(process)
176  process.muonDigi = cms.Sequence(
177  process.simMuonCSCDigis +
178  process.simMuonDTDigis +
179  process.simMuonRPCDigis +
180  process.simMuonGEMDigis +
181  process.simMuonGEMPadDigis +
182  process.simMuonME0Digis
183  )
184  process.doAllDigi = cms.Sequence(
185  process.calDigi +
186  process.muonDigi
187  )
188  process.pdigi = cms.Sequence(
189  cms.SequencePlaceholder("randomEngineStateProducer")*
190  cms.SequencePlaceholder("mix")*
191  process.doAllDigi*
192  process.addPileupInfo
193  )
194  process = append_GEMDigi_event(process)
195  return process
196 
197 
# 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 222 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().

224  process = load_GEM_digitizers(process)
225  process = load_ME0_digitizers(process)
226  process = customize_random_GEMDigi(process)
227  process = customize_random_ME0Digi(process)
228  process = customize_mix_addGEM_addME0_muon_only(process)
229  process.pdigi = cms.Sequence(
230  cms.SequencePlaceholder("randomEngineStateProducer")*
231  cms.SequencePlaceholder("mix")*
232  process.simMuonGEMDigis*
233  process.simMuonGEMPadDigis*
234  process.simMuonME0Digis
235  )
236  process = append_GEMDigi_event(process)
237  return process
238 
239 
# 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 198 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().

200  process = load_GEM_digitizers(process)
201  process = load_ME0_digitizers(process)
202  process = customize_random_GEMDigi(process)
203  process = customize_random_ME0Digi(process)
204  process = customize_mix_addGEM_addME0_muon_only(process)
205  process.muonDigi = cms.Sequence(
206  process.simMuonCSCDigis +
207  process.simMuonDTDigis +
208  process.simMuonRPCDigis +
209  process.simMuonGEMDigis +
210  process.simMuonGEMPadDigis +
211  process.simMuonME0Digis
212  )
213  process.pdigi = cms.Sequence(
214  cms.SequencePlaceholder("randomEngineStateProducer")*
215  cms.SequencePlaceholder("mix")*
216  process.muonDigi
217  )
218  process = append_GEMDigi_event(process)
219  return process
220 
221 
# 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 154 of file customizeGEMDigi.py.

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

155 def customize_digi_addGEM_gem_only(process):
156  process = customize_random_GEMDigi(process)
157  process = customize_mix_addGEM_muon_only(process)
158  process.pdigi = cms.Sequence(
159  cms.SequencePlaceholder("randomEngineStateProducer")*
160  cms.SequencePlaceholder("mix")*
161  process.simMuonGEMDigis*
162  process.simMuonGEMPadDigis
163  )
164  process = append_GEMDigi_event(process)
165  return process
166 
167 
# customize the full digitization sequence pdigi by adding GEMs
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_digi_addGEM_muon_only (   process)

Definition at line 140 of file customizeGEMDigi.py.

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

142  process = customize_random_GEMDigi(process)
143  process = customize_mix_addGEM_muon_only(process)
144  process.muonDigi = cms.Sequence(process.simMuonCSCDigis + process.simMuonDTDigis + process.simMuonRPCDigis + process.simMuonGEMDigis + process.simMuonGEMPadDigis)
145  process.pdigi = cms.Sequence(
146  cms.SequencePlaceholder("randomEngineStateProducer")*
147  cms.SequencePlaceholder("mix")*
148  process.muonDigi
149  )
150  process = append_GEMDigi_event(process)
151  return process
152 
153 
# customize the digitization sequence pdigi to only digitize GEM
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(), 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(), 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_addME0(), customize_digi_addGEM_addME0_gem_only(), and customize_digi_addGEM_addME0_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.