CMS 3D CMS Logo

mixObjects_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 mixSimHits = cms.PSet(
4  input = cms.VInputTag( # note that this list needs to be in the same order as the subdets
5  #cms.InputTag("g4SimHits","BSCHits"), cms.InputTag("g4SimHits","BCM1FHits"), cms.InputTag("g4SimHits","PLTHits"), cms.InputTag("g4SimHits","FP420SI"),
6  cms.InputTag("g4SimHits","MuonCSCHits"), cms.InputTag("g4SimHits","MuonDTHits"), cms.InputTag("g4SimHits","MuonRPCHits"),
7  #cms.InputTag("g4SimHits","TotemHitsRP"), cms.InputTag("g4SimHits","TotemHitsT1"), cms.InputTag("g4SimHits","TotemHitsT2Gem"),
8  cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof"), cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof"),
9  cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof"), cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof"), cms.InputTag("g4SimHits","TrackerHitsTECHighTof"), cms.InputTag("g4SimHits","TrackerHitsTECLowTof"), cms.InputTag("g4SimHits","TrackerHitsTIBHighTof"),
10  cms.InputTag("g4SimHits","TrackerHitsTIBLowTof"), cms.InputTag("g4SimHits","TrackerHitsTIDHighTof"), cms.InputTag("g4SimHits","TrackerHitsTIDLowTof"), cms.InputTag("g4SimHits","TrackerHitsTOBHighTof"), cms.InputTag("g4SimHits","TrackerHitsTOBLowTof")),
11  type = cms.string('PSimHit'),
12  subdets = cms.vstring(
13  # 'BSCHits',
14  # 'BCM1FHits',
15  # 'PLTHits',
16  # 'FP420SI',
17  'MuonCSCHits',
18  'MuonDTHits',
19  'MuonRPCHits',
20  # 'TotemHitsRP',
21  # 'TotemHitsT1',
22  # 'TotemHitsT2Gem',
23  'TrackerHitsPixelBarrelHighTof',
24  'TrackerHitsPixelBarrelLowTof',
25  'TrackerHitsPixelEndcapHighTof',
26  'TrackerHitsPixelEndcapLowTof',
27  'TrackerHitsTECHighTof',
28  'TrackerHitsTECLowTof',
29  'TrackerHitsTIBHighTof',
30  'TrackerHitsTIBLowTof',
31  'TrackerHitsTIDHighTof',
32  'TrackerHitsTIDLowTof',
33  'TrackerHitsTOBHighTof',
34  'TrackerHitsTOBLowTof'),
35  crossingFrames = cms.untracked.vstring(
36  'MuonCSCHits',
37  'MuonDTHits',
38  'MuonRPCHits'),
39  #crossingFrames = cms.untracked.vstring(
40  # 'BSCHits',
41  # 'BCM1FHits',
42  # 'PLTHits'
43  # 'FP420SI',
44  # 'MuonCSCHits',
45  # 'MuonDTHits',
46  # 'MuonRPCHits',
47  # 'TotemHitsRP',
48  # 'TotemHitsT1',
49  # 'TotemHitsT2Gem')
50 )
51 
52 # fastsim customs
53 from Configuration.Eras.Modifier_fastSim_cff import fastSim
54 if fastSim.isChosen():
55  mixSimHits.input = cms.VInputTag(
56  cms.InputTag("MuonSimHits","MuonCSCHits"),
57  cms.InputTag("MuonSimHits","MuonDTHits"),
58  cms.InputTag("MuonSimHits","MuonRPCHits"),
59  cms.InputTag("famosSimHits","TrackerHits"))
60  mixSimHits.subdets = cms.vstring(
61  'MuonCSCHits',
62  'MuonDTHits',
63  'MuonRPCHits',
64  'TrackerHits')
65 
66 mixCaloHits = cms.PSet(
67  input = cms.VInputTag( # note that this list needs to be in the same order as the subdets
68  #cms.InputTag("g4SimHits","CaloHitsTk"), cms.InputTag("g4SimHits","CastorBU"), cms.InputTag("g4SimHits","CastorPL"), cms.InputTag("g4SimHits","CastorTU"),
69  cms.InputTag("g4SimHits","CastorFI"),
70  cms.InputTag("g4SimHits","EcalHitsEB"), cms.InputTag("g4SimHits","EcalHitsEE"), cms.InputTag("g4SimHits","EcalHitsES"),
71  #cms.InputTag("g4SimHits","EcalTBH4BeamHits"), cms.InputTag("g4SimHits","HcalTB06BeamHits"),
72  cms.InputTag("g4SimHits","HcalHits"),
73  cms.InputTag("g4SimHits","ZDCHITS")),
74  type = cms.string('PCaloHit'),
75  subdets = cms.vstring(
76  #'CaloHitsTk',
77  #'CastorBU',
78  'CastorFI',
79  #'CastorPL',
80  #'CastorTU',
81  'EcalHitsEB',
82  'EcalHitsEE',
83  'EcalHitsES',
84  #'EcalTBH4BeamHits',
85  'HcalHits',
86  #'HcalTB06BeamHits',
87  'ZDCHITS'),
88  crossingFrames = cms.untracked.vstring()
89 )
90 
91 # fastsim customs
92 if fastSim.isChosen():
93  mixCaloHits.input = cms.VInputTag(
94  cms.InputTag("famosSimHits","EcalHitsEB"),
95  cms.InputTag("famosSimHits","EcalHitsEE"),
96  cms.InputTag("famosSimHits","EcalHitsES"),
97  cms.InputTag("famosSimHits","HcalHits"))
98  mixCaloHits.subdets = cms.vstring(
99  'EcalHitsEB',
100  'EcalHitsEE',
101  'EcalHitsES',
102  'HcalHits')
103 
104 
105 mixSimTracks = cms.PSet(
106  makeCrossingFrame = cms.untracked.bool(False),
107  input = cms.VInputTag(cms.InputTag("g4SimHits")),
108  type = cms.string('SimTrack')
109 )
110 mixSimVertices = cms.PSet(
111  makeCrossingFrame = cms.untracked.bool(False),
112  input = cms.VInputTag(cms.InputTag("g4SimHits")),
113  type = cms.string('SimVertex')
114 )
115 
116 # fastsim customs
117 if fastSim.isChosen():
118  mixSimTracks.input = cms.VInputTag(cms.InputTag("famosSimHits"))
119  mixSimVertices.input = cms.VInputTag(cms.InputTag("famosSimHits"))
120 
121 mixHepMCProducts = cms.PSet(
122  makeCrossingFrame = cms.untracked.bool(False),
123  input = cms.VInputTag(cms.InputTag("generatorSmeared"),cms.InputTag("generator")),
124  type = cms.string('HepMCProduct')
125 )
126 
127 # reconstructed tracks for fastsim
128 mixReconstructedTracks = cms.PSet(
129  input = cms.VInputTag(cms.InputTag("generalTracksBeforeMixing")),
130  type = cms.string('RecoTrack')
131  )
132 
133 theMixObjects = cms.PSet(
134  mixCH = cms.PSet(
135  mixCaloHits
136  ),
137  mixTracks = cms.PSet(
138  mixSimTracks
139  ),
140  mixVertices = cms.PSet(
141  mixSimVertices
142  ),
143  mixSH = cms.PSet(
144  mixSimHits
145  ),
146  mixHepMC = cms.PSet(
147  mixHepMCProducts
148  )
149 )
150 
151 # fastsim customs
152 if fastSim.isChosen():
153  theMixObjects = cms.PSet(
154  theMixObjects,
155  mixRecoTracks = cms.PSet(mixReconstructedTracks)
156  )
157 
158 mixPCFSimHits = cms.PSet(
159  input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHitsBSCHits"), cms.InputTag("CFWriter","g4SimHitsBCM1FHits"), cms.InputTag("CFWriter","g4SimHitsPLTHits"), cms.InputTag("CFWriter","g4SimHitsFP420SI"), cms.InputTag("CFWriter","g4SimHitsMuonCSCHits"), cms.InputTag("CFWriter","g4SimHitsMuonDTHits"), cms.InputTag("CFWriter","g4SimHitsMuonRPCHits"),
160  cms.InputTag("CFWriter","g4SimHitsTotemHitsRP"), cms.InputTag("CFWriter","g4SimHitsTotemHitsT1"), cms.InputTag("CFWriter","g4SimHitsTotemHitsT2Gem"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsPixelBarrelHighTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsPixelBarrelLowTof"),
161  cms.InputTag("CFWriter","g4SimHitsTrackerHitsPixelEndcapHighTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsPixelEndcapLowTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTECHighTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTECLowTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTIBHighTof"),
162  cms.InputTag("CFWriter","g4SimHitsTrackerHitsTIBLowTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTIDHighTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTIDLowTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTOBHighTof"), cms.InputTag("CFWriter","g4SimHitsTrackerHitsTOBLowTof")),
163  type = cms.string('PSimHitPCrossingFrame'),
164  subdets = cms.vstring('BSCHits',
165  'BCM1FHits',
166  'PLTHits',
167  'FP420SI',
168  'MuonCSCHits',
169  'MuonDTHits',
170  'MuonRPCHits',
171  'TotemHitsRP',
172  'TotemHitsT1',
173  'TotemHitsT2Gem',
174  'TrackerHitsPixelBarrelHighTof',
175  'TrackerHitsPixelBarrelLowTof',
176  'TrackerHitsPixelEndcapHighTof',
177  'TrackerHitsPixelEndcapLowTof',
178  'TrackerHitsTECHighTof',
179  'TrackerHitsTECLowTof',
180  'TrackerHitsTIBHighTof',
181  'TrackerHitsTIBLowTof',
182  'TrackerHitsTIDHighTof',
183  'TrackerHitsTIDLowTof',
184  'TrackerHitsTOBHighTof',
185  'TrackerHitsTOBLowTof')
186 )
187 
188 mixPCFCaloHits = cms.PSet(
189  input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHitsCaloHitsTk"), cms.InputTag("CFWriter","g4SimHitsCastorBU"), cms.InputTag("CFWriter","g4SimHitsCastorFI"), cms.InputTag("CFWriter","g4SimHitsCastorPL"), cms.InputTag("CFWriter","g4SimHitsCastorTU"),
190  cms.InputTag("CFWriter","g4SimHitsEcalHitsEB"), cms.InputTag("CFWriter","g4SimHitsEcalHitsEE"), cms.InputTag("CFWriter","g4SimHitsEcalHitsES"), cms.InputTag("CFWriter","g4SimHitsEcalTBH4BeamHits"), cms.InputTag("CFWriter","g4SimHitsHcalHits"),
191  cms.InputTag("CFWriter","g4SimHitsHcalTB06BeamHits"), cms.InputTag("CFWriter","g4SimHitsZDCHITS")),
192  type = cms.string('PCaloHitPCrossingFrame'),
193  subdets = cms.vstring('CaloHitsTk',
194  'CastorBU',
195  'CastorFI',
196  'CastorPL',
197  'CastorTU',
198  'EcalHitsEB',
199  'EcalHitsEE',
200  'EcalHitsES',
201  'EcalTBH4BeamHits',
202  'HcalHits',
203  'HcalTB06BeamHits',
204  'ZDCHITS')
205 )
206 
207 mixPCFSimTracks = cms.PSet(
208  input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHits")),
209  type = cms.string('SimTrackPCrossingFrame')
210 )
211 
212 mixPCFSimVertices = cms.PSet(
213  input = cms.VInputTag(cms.InputTag("CFWriter","g4SimHits")),
214  type = cms.string('SimVertexPCrossingFrame')
215 )
216 
217 mixPCFHepMCProducts = cms.PSet(
218  input = cms.VInputTag(cms.InputTag("CFWriter","generator")),
219  type = cms.string('HepMCProductPCrossingFrame')
220 )
221 
222 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchefrontDigitizer
223 
224 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
225 run3_GEM.toModify( theMixObjects,
226  mixSH = dict(
227  input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonGEMHits") ],
228  subdets = theMixObjects.mixSH.subdets + [ 'MuonGEMHits' ],
229  crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonGEMHits' ]
230  )
231 )
232 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
233 phase2_muon.toModify( theMixObjects,
234  mixSH = dict(
235  input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","MuonME0Hits") ],
236  subdets = theMixObjects.mixSH.subdets + [ 'MuonME0Hits' ],
237  crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'MuonME0Hits' ]
238  )
239 )
240 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
241 phase2_hgcal.toModify( theMixObjects,
242  mixCH = dict(
243  input = theMixObjects.mixCH.input + [ cms.InputTag("g4SimHits",hgceeDigitizer.hitCollection.value()),
244  cms.InputTag("g4SimHits",hgchefrontDigitizer.hitCollection.value()) ],
245  subdets = theMixObjects.mixCH.subdets + [ hgceeDigitizer.hitCollection.value(),
246  hgchefrontDigitizer.hitCollection.value() ]
247  )
248 )
249 
250 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
251 phase2_timing_layer.toModify( theMixObjects,
252  mixSH = dict(
253  input = theMixObjects.mixSH.input + [ cms.InputTag("g4SimHits","FastTimerHitsBarrel"), cms.InputTag("g4SimHits","FastTimerHitsEndcap") ],
254  subdets = theMixObjects.mixSH.subdets + [ 'FastTimerHitsBarrel','FastTimerHitsEndcap' ],
255  crossingFrames = theMixObjects.mixSH.crossingFrames + [ 'FastTimerHitsBarrel','FastTimerHitsEndcap' ]
256  )
257 )