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 
16 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
17 phase2_ecal_devel.toModify(simEcalUnsuppressedDigis,
18  mix = cms.VPSet(
19  cms.PSet(type = cms.string('EBDigiCollectionPh2'))
20  )
21 )
22 
23 
24 simHcalUnsuppressedDigis = cms.EDAlias(
25  mix = cms.VPSet(
26  cms.PSet(type = cms.string('HBHEDataFramesSorted')),
27  cms.PSet(type = cms.string('HFDataFramesSorted')),
28  cms.PSet(type = cms.string('HODataFramesSorted')),
29  cms.PSet(type = cms.string('ZDCDataFramesSorted')),
30  cms.PSet(type = cms.string('QIE10DataFrameHcalDataFrameContainer')),
31  cms.PSet(type = cms.string('QIE11DataFrameHcalDataFrameContainer'))
32  )
33 )
34 _pixelCommon = cms.VPSet(
35  cms.PSet(type = cms.string('PixelDigiedmDetSetVector')),
36  cms.PSet(type = cms.string('PixelDigiSimLinkedmDetSetVector'))
37 )
38 simSiPixelDigis = cms.EDAlias(
39  mix = _pixelCommon
40 )
41 simSiStripDigis = cms.EDAlias(
42  mix = cms.VPSet(
43  cms.PSet(type = cms.string('SiStripDigiedmDetSetVector')),
44  cms.PSet(type = cms.string('SiStripRawDigiedmDetSetVector')),
45  cms.PSet(type = cms.string('StripDigiSimLinkedmDetSetVector'))
46  )
47 )
48 simHGCalUnsuppressedDigis = cms.EDAlias(
49  mix = cms.VPSet(
50  cms.PSet(
51  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
52  fromProductInstance = cms.string("HGCDigisEE"),
53  toProductInstance = cms.string("EE"),
54  ),
55  cms.PSet(
56  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
57  fromProductInstance = cms.string("HGCDigisHEfront"),
58  toProductInstance = cms.string("HEfront"),
59  ),
60  cms.PSet(
61  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
62  fromProductInstance = cms.string("HGCDigisHEback"),
63  toProductInstance = cms.string("HEback"),
64  ),
65  )
66 )
67 simHFNoseUnsuppressedDigis = cms.EDAlias(
68  mix = cms.VPSet(
69  cms.PSet(
70  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
71  fromProductInstance = cms.string("HFNoseDigis"),
72  toProductInstance = cms.string("HFNose"),
73  ),
74  )
75 )
76 
77 simAPVsaturation = cms.EDAlias(
78  mix = cms.VPSet(
79  cms.PSet(type = cms.string('bool'))
80  )
81 )
82 
83 from Configuration.Eras.Modifier_run3_common_cff import run3_common
84 run3_common.toModify(simCastorDigis, mix = None)
85 
86 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
87 (~phase2_hgcal).toModify(simHGCalUnsuppressedDigis, mix = None)
88 
89 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
90 (premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
91  mix = {
92  0 : dict(type = "PHGCSimAccumulator"),
93  1 : dict(type = "PHGCSimAccumulator"),
94  2 : dict(type = "PHGCSimAccumulator"),
95  }
96 )
97 
98 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
99 (~phase2_hfnose).toModify(simHFNoseUnsuppressedDigis, mix = None)
100 
101 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
102 phase1Pixel.toModify(simSiPixelDigis, mix = _pixelCommon + [cms.PSet(type = cms.string('PixelFEDChanneledmNewDetSetVector'))])
103 
104 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
105 phase2_tracker.toModify(simSiStripDigis, mix = None)
106 phase2_tracker.toModify(simAPVsaturation, mix = None)
107 
108 # no castor,pixel,strip digis in fastsim
109 from Configuration.Eras.Modifier_fastSim_cff import fastSim
110 (fastSim & ~run3_common).toModify(simCastorDigis, mix = None)
111 fastSim.toModify(simSiPixelDigis, mix = None)
112 fastSim.toModify(simSiStripDigis, mix = None)
113 fastSim.toModify(simAPVsaturation, mix = None)