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.doAllDigi = cms.Sequence(process.trDigi + process.calDigi + process.muonDigi)
97  process.pdigi = cms.Sequence(
98  cms.SequencePlaceholder("randomEngineStateProducer")*
99  cms.SequencePlaceholder("mix")*
100  process.doAllDigi*
101  process.trackingParticles*
102  process.addPileupInfo )
103  return process
104 
105 
# customize the digitization sequence pdigi to only digitize DT+CSC+RPC+GEM
def customizeGEMDigi.customize_digi_addGEM_gem_only (   process)

Definition at line 118 of file customizeGEMDigi.py.

References customize_mix_addGEM_muon_only(), and customize_random_GEMDigi().

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

Definition at line 106 of file customizeGEMDigi.py.

References customize_mix_addGEM_muon_only(), and customize_random_GEMDigi().

108  process = customize_random_GEMDigi(process)
109  process = customize_mix_addGEM_muon_only(process)
110  process.muonDigi = cms.Sequence(process.simMuonCSCDigis + process.simMuonDTDigis + process.simMuonRPCDigis + process.simMuonGEMDigis + process.simMuonGEMPadDigis)
111  process.pdigi = cms.Sequence(
112  cms.SequencePlaceholder("randomEngineStateProducer")*
113  cms.SequencePlaceholder("mix")*
114  process.muonDigi )
115  return process
116 
117 
# 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.