CMS 3D CMS Logo

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

Functions

def append_ME0Digi_event
 
def customize_digi_addME0
 
def customize_digi_addME0_me0_only
 
def customize_digi_addME0_muon_only
 
def customize_mix_addME0
 
def customize_mix_addME0_muon_only
 
def customize_mix_muon_only
 
def customize_random_ME0Digi
 
def load_ME0_digitizer
 load the digitizer More...
 
def mixObjects_addME0
 

Variables

tuple mixObjects_dt_csc_rpc
 

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

159 def append_ME0Digi_event(process):
160  alist=['AODSIM','RECOSIM','FEVTSIM','FEVTDEBUG','FEVTDEBUGHLT','RECODEBUG','RAWRECOSIMHLT','RAWRECODEBUGHLT']
161  for a in alist:
162  b=a+'output'
163  if hasattr(process,b):
164  getattr(process,b).outputCommands.append('keep *_simMuonME0Digis_*_*')
165  return 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 
99 def customize_digi_addME0(process):
100  process = load_ME0_digitizer(process)
101  process = customize_random_ME0Digi(process)
102  process = customize_mix_addME0(process)
103  process.muonDigi = cms.Sequence(
104  process.simMuonCSCDigis +
105  process.simMuonDTDigis +
106  process.simMuonRPCDigis +
107  process.simMuonME0Digis
108  )
109  process.doAllDigi = cms.Sequence(
110  process.calDigi +
111  process.muonDigi
112  )
113  process.pdigi = cms.Sequence(
114  cms.SequencePlaceholder("randomEngineStateProducer")*
115  cms.SequencePlaceholder("mix")*
116  process.doAllDigi*
117  process.trackingParticles*
118  process.addPileupInfo
119  )
120  process = append_ME0Digi_event(process)
121  return process
122 
123 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+ME0
def load_ME0_digitizer
load the digitizer
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 def customize_digi_addME0_me0_only(process):
146  process = load_ME0_digitizer(process)
147  process = customize_random_ME0Digi(process)
148  process = customize_mix_addME0_muon_only(process)
149  process.pdigi = cms.Sequence(
150  cms.SequencePlaceholder("randomEngineStateProducer")*
151  cms.SequencePlaceholder("mix")*
152  process.simMuonME0Digis
153  )
154  process = append_ME0Digi_event(process)
155  return process
156 
157 
# insert the ME0Digi collection to the event
def load_ME0_digitizer
load the digitizer
def customize_mix_addME0_muon_only
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().

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

Definition at line 68 of file customizeME0Digi.py.

References mixObjects_addME0().

Referenced by customize_digi_addME0().

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

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

Definition at line 51 of file customizeME0Digi.py.

References alcazmumu_cfi.filter.

Referenced by customize_mix_addME0_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 
# a modifier to append ME0 SimHit collection definitions to mixObjects.mixSH
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().

83 
84 def customize_random_ME0Digi(process):
85  process.RandomNumberGeneratorService.simMuonME0Digis = cms.PSet(
86  initialSeed = cms.untracked.uint32(1234567),
87  engineName = cms.untracked.string('HepJamesRandom')
88  )
89  return process
90 
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 
93 def load_ME0_digitizer(process):
94  process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
95  return process
96 
97 
# customize the full digitization sequence pdigi by adding ME0s
def load_ME0_digitizer
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 
61 def mixObjects_addME0(mixSH):
62  mixSH.crossingFrames.append('MuonME0Hits')
63  mixSH.input.append(cms.InputTag("g4SimHits","MuonME0Hits"))
64  mixSH.subdets.append('MuonME0Hits')
65  return mixSH
66 
67 
# customize process.mix by appending ME0 SimHit collection definitions to mix.mixObjects.mixSH

Variable Documentation

tuple customizeME0Digi.mixObjects_dt_csc_rpc

Definition at line 5 of file customizeME0Digi.py.