CMS 3D CMS Logo

aliases_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 simCastorDigis = cms.EDAlias(
4  mix = cms.VPSet(
5  cms.PSet(type = cms.string('CastorDataFramesSorted'))
6  )
7 )
8 simEcalUnsuppressedDigis = cms.EDAlias(
9  mix = cms.VPSet(
10  cms.PSet(type = cms.string('EBDigiCollection')),
11  cms.PSet(type = cms.string('EEDigiCollection')),
12  cms.PSet(type = cms.string('ESDigiCollection'))
13  )
14 )
15 simHcalUnsuppressedDigis = cms.EDAlias(
16  mix = cms.VPSet(
17  cms.PSet(type = cms.string('HBHEDataFramesSorted')),
18  cms.PSet(type = cms.string('HFDataFramesSorted')),
19  cms.PSet(type = cms.string('HODataFramesSorted')),
20  cms.PSet(type = cms.string('ZDCDataFramesSorted')),
21  cms.PSet(type = cms.string('QIE10DataFrameHcalDataFrameContainer')),
22  cms.PSet(type = cms.string('QIE11DataFrameHcalDataFrameContainer'))
23  )
24 )
25 _pixelCommon = cms.VPSet(
26  cms.PSet(type = cms.string('PixelDigiedmDetSetVector')),
27  cms.PSet(type = cms.string('PixelDigiSimLinkedmDetSetVector'))
28 )
29 simSiPixelDigis = cms.EDAlias(
30  mix = _pixelCommon
31 )
32 simSiStripDigis = cms.EDAlias(
33  mix = cms.VPSet(
34  cms.PSet(type = cms.string('SiStripDigiedmDetSetVector')),
35  cms.PSet(type = cms.string('SiStripRawDigiedmDetSetVector')),
36  cms.PSet(type = cms.string('StripDigiSimLinkedmDetSetVector'))
37  )
38 )
39 simHGCalUnsuppressedDigis = cms.EDAlias(
40  mix = cms.VPSet(
41  cms.PSet(
42  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
43  fromProductInstance = cms.string("HGCDigisEE"),
44  toProductInstance = cms.string("EE"),
45  ),
46  cms.PSet(
47  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
48  fromProductInstance = cms.string("HGCDigisHEfront"),
49  toProductInstance = cms.string("HEfront"),
50  ),
51  cms.PSet(
52  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
53  fromProductInstance = cms.string("HGCDigisHEback"),
54  toProductInstance = cms.string("HEback"),
55  ),
56  )
57 )
58 simHFNoseUnsuppressedDigis = cms.EDAlias(
59  mix = cms.VPSet(
60  cms.PSet(
61  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
62  fromProductInstance = cms.string("HFNoseDigis"),
63  toProductInstance = cms.string("HFNose"),
64  ),
65  )
66 )
67 
68 simAPVsaturation = cms.EDAlias(
69  mix = cms.VPSet(
70  cms.PSet(type = cms.string('bool'))
71  )
72 )
73 
74 from Configuration.Eras.Modifier_run3_common_cff import run3_common
75 run3_common.toModify(simCastorDigis, mix = None)
76 
77 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
78 (~phase2_hgcal).toModify(simHGCalUnsuppressedDigis, mix = None)
79 
80 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
81 (premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
82  mix = {
83  0 : dict(type = "PHGCSimAccumulator"),
84  1 : dict(type = "PHGCSimAccumulator"),
85  2 : dict(type = "PHGCSimAccumulator"),
86  }
87 )
88 
89 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
90 (~phase2_hfnose).toModify(simHFNoseUnsuppressedDigis, mix = None)
91 
92 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
93 phase1Pixel.toModify(simSiPixelDigis, mix = _pixelCommon + [cms.PSet(type = cms.string('PixelFEDChanneledmNewDetSetVector'))])
94 
95 # no castor,pixel,strip digis in fastsim
96 from Configuration.Eras.Modifier_fastSim_cff import fastSim
97 fastSim.toModify(simCastorDigis, mix = None)
98 fastSim.toModify(simSiPixelDigis, mix = None)
99 fastSim.toModify(simSiStripDigis, mix = None)
100 fastSim.toModify(simAPVsaturation, mix = None)