test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mixObjects_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.StandardSequences.Eras import eras
3 
4 mixSimHits = cms.PSet(
5  input = cms.VInputTag( # note that this list needs to be in the same order as the subdets
6  #cms.InputTag("g4SimHits","BSCHits"), cms.InputTag("g4SimHits","BCM1FHits"), cms.InputTag("g4SimHits","PLTHits"), cms.InputTag("g4SimHits","FP420SI"),
7  cms.InputTag("g4SimHits","MuonCSCHits"), cms.InputTag("g4SimHits","MuonDTHits"), cms.InputTag("g4SimHits","MuonRPCHits"),
8  #cms.InputTag("g4SimHits","TotemHitsRP"), cms.InputTag("g4SimHits","TotemHitsT1"), cms.InputTag("g4SimHits","TotemHitsT2Gem"),
9  cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof"), cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof"),
10  cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof"), cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof"), cms.InputTag("g4SimHits","TrackerHitsTECHighTof"), cms.InputTag("g4SimHits","TrackerHitsTECLowTof"), cms.InputTag("g4SimHits","TrackerHitsTIBHighTof"),
11  cms.InputTag("g4SimHits","TrackerHitsTIBLowTof"), cms.InputTag("g4SimHits","TrackerHitsTIDHighTof"), cms.InputTag("g4SimHits","TrackerHitsTIDLowTof"), cms.InputTag("g4SimHits","TrackerHitsTOBHighTof"), cms.InputTag("g4SimHits","TrackerHitsTOBLowTof")),
12  type = cms.string('PSimHit'),
13  subdets = cms.vstring(
14  # 'BSCHits',
15  # 'BCM1FHits',
16  # 'PLTHits',
17  # 'FP420SI',
18  'MuonCSCHits',
19  'MuonDTHits',
20  'MuonRPCHits',
21  # 'TotemHitsRP',
22  # 'TotemHitsT1',
23  # 'TotemHitsT2Gem',
24  'TrackerHitsPixelBarrelHighTof',
25  'TrackerHitsPixelBarrelLowTof',
26  'TrackerHitsPixelEndcapHighTof',
27  'TrackerHitsPixelEndcapLowTof',
28  'TrackerHitsTECHighTof',
29  'TrackerHitsTECLowTof',
30  'TrackerHitsTIBHighTof',
31  'TrackerHitsTIBLowTof',
32  'TrackerHitsTIDHighTof',
33  'TrackerHitsTIDLowTof',
34  'TrackerHitsTOBHighTof',
35  'TrackerHitsTOBLowTof'),
36  crossingFrames = cms.untracked.vstring(
37  'MuonCSCHits',
38  'MuonDTHits',
39  'MuonRPCHits'),
40  #crossingFrames = cms.untracked.vstring(
41  # 'BSCHits',
42  # 'BCM1FHits',
43  # 'PLTHits'
44  # 'FP420SI',
45  # 'MuonCSCHits',
46  # 'MuonDTHits',
47  # 'MuonRPCHits',
48  # 'TotemHitsRP',
49  # 'TotemHitsT1',
50  # 'TotemHitsT2Gem')
51 )
52 
53 # fastsim customs
54 if eras.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 eras.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 eras.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 eras.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 )