CMS 3D CMS Logo

Functions | Variables
customizeME0Digi Namespace Reference

Functions

def append_ME0Digi_event (process)
 
def customize_digi_addME0 (process)
 
def customize_digi_addME0_me0_only (process)
 
def customize_digi_addME0_muon_only (process)
 
def customize_digi_noME0bkg (process)
 
def customize_digi_noME0safety (process)
 
def customize_mix_addME0 (process)
 
def customize_mix_addME0_muon_only (process)
 
def customize_mix_muon_only (process)
 
def customize_random_ME0Digi (process)
 
def load_ME0_digitizer (process)
 load the digitizer More...
 
def mixObjects_addME0 (mixSH)
 

Variables

 crossingFrames
 
 input
 
 makeCrossingFrame
 
 mixCH
 
 mixHepMC
 
 mixObjects_dt_csc_rpc
 
 mixSH
 
 mixTracks
 
 mixVertices
 
 subdets
 
 type
 

Function Documentation

def customizeME0Digi.append_ME0Digi_event (   process)

Definition at line 158 of file customizeME0Digi.py.

Referenced by customize_digi_addME0(), customize_digi_addME0_me0_only(), and customize_digi_addME0_muon_only().

158 def append_ME0Digi_event(process):
159  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
160  for a in alist:
161  b=a+'output'
162  if hasattr(process,b):
163  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
164  return process
165 
166 # Customizations for the background (to be updated once the realistic digi is in place)
def append_ME0Digi_event(process)
def customizeME0Digi.customize_digi_addME0 (   process)

Definition at line 98 of file customizeME0Digi.py.

References append_ME0Digi_event(), customize_mix_addME0(), customize_random_ME0Digi(), and load_ME0_digitizer().

98 def customize_digi_addME0(process):
99  process = load_ME0_digitizer(process)
100  process = customize_random_ME0Digi(process)
101  process = customize_mix_addME0(process)
102  process.muonDigi = cms.Sequence(
103  process.simMuonCSCDigis +
104  process.simMuonDTDigis +
105  process.simMuonRPCDigis +
106  process.simMuonME0Digis
107  )
108  process.doAllDigi = cms.Sequence(
109  process.calDigi +
110  process.muonDigi
111  )
112  process.pdigi = cms.Sequence(
113  cms.SequencePlaceholder("randomEngineStateProducer")*
114  cms.SequencePlaceholder("mix")*
115  process.doAllDigi*
116  process.trackingParticles*
117  process.addPileupInfo
118  )
119  process = append_ME0Digi_event(process)
120  return process
121 
122 
123 # customize the digitization sequence pdigi to only digitize DT+CSC+RPC+ME0
def customize_random_ME0Digi(process)
def load_ME0_digitizer(process)
load the digitizer
def append_ME0Digi_event(process)
def customize_mix_addME0(process)
def customize_digi_addME0(process)
def customizeME0Digi.customize_digi_addME0_me0_only (   process)

Definition at line 144 of file customizeME0Digi.py.

References append_ME0Digi_event(), customize_mix_addME0_muon_only(), customize_random_ME0Digi(), and load_ME0_digitizer().

145  process = load_ME0_digitizer(process)
146  process = customize_random_ME0Digi(process)
147  process = customize_mix_addME0_muon_only(process)
148  process.pdigi = cms.Sequence(
149  cms.SequencePlaceholder("randomEngineStateProducer")*
150  cms.SequencePlaceholder("mix")*
151  process.simMuonME0Digis
152  )
153  process = append_ME0Digi_event(process)
154  return process
155 
156 
157 # insert the ME0Digi collection to the event
def customize_random_ME0Digi(process)
def load_ME0_digitizer(process)
load the digitizer
def customize_digi_addME0_me0_only(process)
def append_ME0Digi_event(process)
def customize_mix_addME0_muon_only(process)
def customizeME0Digi.customize_digi_addME0_muon_only (   process)

Definition at line 124 of file customizeME0Digi.py.

References append_ME0Digi_event(), customize_mix_addME0_muon_only(), customize_random_ME0Digi(), and load_ME0_digitizer().

125  process = load_ME0_digitizer(process)
126  process = customize_random_ME0Digi(process)
127  process = customize_mix_addME0_muon_only(process)
128  process.muonDigi = cms.Sequence(
129  process.simMuonCSCDigis +
130  process.simMuonDTDigis +
131  process.simMuonRPCDigis +
132  process.simMuonME0Digis
133  )
134  process.pdigi = cms.Sequence(
135  cms.SequencePlaceholder("randomEngineStateProducer")*
136  cms.SequencePlaceholder("mix")*
137  process.muonDigi
138  )
139  process = append_ME0Digi_event(process)
140  return process
141 
142 
143 # customize the digitization sequence pdigi to only digitize ME0
def customize_random_ME0Digi(process)
def load_ME0_digitizer(process)
load the digitizer
def append_ME0Digi_event(process)
def customize_digi_addME0_muon_only(process)
def customize_mix_addME0_muon_only(process)
def customizeME0Digi.customize_digi_noME0bkg (   process)

Definition at line 167 of file customizeME0Digi.py.

168  process.simMuonME0Digis.simulateElectronBkg = False
169  process.simMuonME0Digis.simulateNeutralBkg = False
170  return process
171 
def customize_digi_noME0bkg(process)
def customizeME0Digi.customize_digi_noME0safety (   process)

Definition at line 172 of file customizeME0Digi.py.

173  process.simMuonME0Digis.rateFact = 1
174  return process
175 
def customize_digi_noME0safety(process)
def customizeME0Digi.customize_mix_addME0 (   process)

Definition at line 68 of file customizeME0Digi.py.

References mixObjects_addME0().

Referenced by customize_digi_addME0().

68 def customize_mix_addME0(process):
69  mixObjects_addME0(process.mix.mixObjects.mixSH)
70  return process
71 
72 
73 # Customize process.mix to be used for running muon (DT, CSC, RPC + ME0) digi only.
74 # - first do such customization for (DT, CSC, RPC)
75 # - append ME0 SimHit collection definitions to mix.mixObjects.mixSH
def mixObjects_addME0(mixSH)
def customize_mix_addME0(process)
def customizeME0Digi.customize_mix_addME0_muon_only (   process)

Definition at line 76 of file customizeME0Digi.py.

References customize_mix_muon_only(), and mixObjects_addME0().

Referenced by customize_digi_addME0_me0_only(), and customize_digi_addME0_muon_only().

77  process = customize_mix_muon_only(process)
78  mixObjects_addME0(process.mix.mixObjects.mixSH)
79  return process
80 
81 
82 # Add simMuonME0Digis to the list of modules served by RandomNumberGeneratorService
def mixObjects_addME0(mixSH)
def customize_mix_muon_only(process)
def customize_mix_addME0_muon_only(process)
def customizeME0Digi.customize_mix_muon_only (   process)

Definition at line 51 of file customizeME0Digi.py.

References ALCARECOTkAlBeamHalo_cff.filter.

Referenced by customize_mix_addME0_muon_only().

52  process.mix.digitizers = digitizers = cms.PSet()
53  digi_aliases = filter(lambda n: 'Digi' in n, process.aliases.keys())
54  for a in digi_aliases: process.__delattr__(a)
55  process.mix.mixObjects = mixObjects_dt_csc_rpc
56  return process
57 
58 
59 # a modifier to append ME0 SimHit collection definitions to mixObjects.mixSH
def customize_mix_muon_only(process)
def customizeME0Digi.customize_random_ME0Digi (   process)

Definition at line 83 of file customizeME0Digi.py.

Referenced by customize_digi_addME0(), customize_digi_addME0_me0_only(), and customize_digi_addME0_muon_only().

84  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
85  initialSeed = cms.untracked.uint32(1234567),
86  engineName = cms.untracked.string('HepJamesRandom')
87  )
88  return process
89 
90 
def customize_random_ME0Digi(process)
def customizeME0Digi.load_ME0_digitizer (   process)

load the digitizer

Definition at line 92 of file customizeME0Digi.py.

Referenced by customize_digi_addME0(), customize_digi_addME0_me0_only(), and customize_digi_addME0_muon_only().

92 def load_ME0_digitizer(process):
93  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
94  return process
95 
96 
97 # customize the full digitization sequence pdigi by adding ME0s
def load_ME0_digitizer(process)
load the digitizer
def customizeME0Digi.mixObjects_addME0 (   mixSH)

Definition at line 60 of file customizeME0Digi.py.

Referenced by customize_mix_addME0(), and customize_mix_addME0_muon_only().

60 def mixObjects_addME0(mixSH):
61  mixSH.crossingFrames.append('MuonME0Hits')
62  mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
63  mixSH.subdets.append('MuonME0Hits')
64  return mixSH
65 
66 
67 # customize process.mix by appending ME0 SimHit collection definitions to mix.mixObjects.mixSH
def mixObjects_addME0(mixSH)

Variable Documentation

customizeME0Digi.crossingFrames

Definition at line 7 of file customizeME0Digi.py.

customizeME0Digi.input

Definition at line 8 of file customizeME0Digi.py.

customizeME0Digi.makeCrossingFrame

Definition at line 14 of file customizeME0Digi.py.

customizeME0Digi.mixCH

Definition at line 6 of file customizeME0Digi.py.

customizeME0Digi.mixHepMC

Definition at line 12 of file customizeME0Digi.py.

customizeME0Digi.mixObjects_dt_csc_rpc

Definition at line 5 of file customizeME0Digi.py.

customizeME0Digi.mixSH

Definition at line 22 of file customizeME0Digi.py.

customizeME0Digi.mixTracks

Definition at line 39 of file customizeME0Digi.py.

customizeME0Digi.mixVertices

Definition at line 17 of file customizeME0Digi.py.

customizeME0Digi.subdets

Definition at line 10 of file customizeME0Digi.py.

customizeME0Digi.type

Definition at line 9 of file customizeME0Digi.py.