CMS 3D CMS Logo

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

Functions

def customize_digi_addGEM
 
def customize_digi_addGEM_gem_only
 
def customize_digi_addGEM_muon_only
 
def customize_mix_addGEM
 
def customize_mix_addGEM_muon_only
 
def customize_mix_muon_only
 
def customize_random_GEMDigi
 
def mixObjects_addGEM
 

Variables

tuple mixObjects_dt_csc_rpc
 

Function Documentation

def customizeGEMDigi.customize_digi_addGEM (   process)

Definition at line 92 of file customizeGEMDigi.py.

References customize_mix_addGEM(), and customize_random_GEMDigi().

92 
93 def customize_digi_addGEM(process):
94  process = customize_random_GEMDigi(process)
95  process = customize_mix_addGEM(process)
96  process.muonDigi = cms.Sequence(process.simMuonCSCDigis + process.simMuonDTDigis + process.simMuonRPCDigis + process.simMuonGEMDigis + process.simMuonGEMCSCPadDigis)
97  process.doAllDigi = cms.Sequence(process.trDigi + process.calDigi + process.muonDigi)
98  process.pdigi = cms.Sequence(
99  cms.SequencePlaceholder("randomEngineStateProducer")*
100  cms.SequencePlaceholder("mix")*
101  process.doAllDigi*
102  process.trackingParticles*
103  process.addPileupInfo )
104  return process
105 
106 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def customizeGEMDigi.customize_digi_addGEM_gem_only (   process)

Definition at line 119 of file customizeGEMDigi.py.

References customize_mix_addGEM_muon_only(), and customize_random_GEMDigi().

120 def customize_digi_addGEM_gem_only(process):
121  process = customize_random_GEMDigi(process)
122  process = customize_mix_addGEM_muon_only(process)
123  process.muonDigi = cms.Sequence(process.simMuonCSCDigis + process.simMuonDTDigis + process.simMuonRPCDigis + process.simMuonGEMDigis + process.simMuonGEMCSCPadDigis)
124  process.pdigi = cms.Sequence(
125  cms.SequencePlaceholder("randomEngineStateProducer")*
126  cms.SequencePlaceholder("mix")*
127  process.simMuonGEMDigis*
128  process.simMuonGEMCSCPadDigis )
129  return process
130 
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_digi_addGEM_muon_only (   process)

Definition at line 107 of file customizeGEMDigi.py.

References customize_mix_addGEM_muon_only(), and customize_random_GEMDigi().

109  process = customize_random_GEMDigi(process)
110  process = customize_mix_addGEM_muon_only(process)
111  process.muonDigi = cms.Sequence(process.simMuonCSCDigis + process.simMuonDTDigis + process.simMuonRPCDigis + process.simMuonGEMDigis + process.simMuonGEMCSCPadDigis)
112  process.pdigi = cms.Sequence(
113  cms.SequencePlaceholder("randomEngineStateProducer")*
114  cms.SequencePlaceholder("mix")*
115  process.muonDigi )
116  return process
117 
118 
# customize the digitization sequence pdigi to only digitize GEM
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_mix_addGEM (   process)

Definition at line 68 of file customizeGEMDigi.py.

References mixObjects_addGEM().

Referenced by customize_digi_addGEM().

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

Definition at line 76 of file customizeGEMDigi.py.

References customize_mix_muon_only(), and mixObjects_addGEM().

Referenced by customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

76 
78  process = customize_mix_muon_only(process)
79  mixObjects_addGEM(process.mix.mixObjects.mixSH)
80  return process
81 
82 
# Add simMuonGEMDigis to the list of modules served by RandomNumberGeneratorService
def customize_mix_addGEM_muon_only
def customizeGEMDigi.customize_mix_muon_only (   process)

Definition at line 51 of file customizeGEMDigi.py.

References alcazmumu_cfi.filter.

Referenced by 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 
# a modifier to append GEM SimHit collection definitions to mixObjects.mixSH
def customizeGEMDigi.customize_random_GEMDigi (   process)

Definition at line 83 of file customizeGEMDigi.py.

Referenced by customize_digi_addGEM(), customize_digi_addGEM_gem_only(), and customize_digi_addGEM_muon_only().

83 
84 def customize_random_GEMDigi(process):
85  process.RandomNumberGeneratorService.simMuonGEMDigis = cms.PSet(
86  initialSeed = cms.untracked.uint32(1234567),
87  engineName = cms.untracked.string('HepJamesRandom')
88  )
89  return process
90 
91 
# customize the full digitization sequence pdigi by adding GEMs
def customizeGEMDigi.mixObjects_addGEM (   mixSH)

Definition at line 60 of file customizeGEMDigi.py.

Referenced by customize_mix_addGEM(), and customize_mix_addGEM_muon_only().

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

Variable Documentation

tuple customizeGEMDigi.mixObjects_dt_csc_rpc

Definition at line 5 of file customizeGEMDigi.py.