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 
39 simSiPixelDigis = cms.EDAlias(
40  mix = _pixelCommon
41 )
42 simSiStripDigis = cms.EDAlias(
43  mix = cms.VPSet(
44  cms.PSet(type = cms.string('SiStripDigiedmDetSetVector')),
45  cms.PSet(type = cms.string('SiStripRawDigiedmDetSetVector')),
46  cms.PSet(type = cms.string('StripDigiSimLinkedmDetSetVector'))
47  )
48 )
49 simHGCalUnsuppressedDigis = cms.EDAlias(
50  mix = cms.VPSet(
51  cms.PSet(
52  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
53  fromProductInstance = cms.string("HGCDigisEE"),
54  toProductInstance = cms.string("EE"),
55  ),
56  cms.PSet(
57  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
58  fromProductInstance = cms.string("HGCDigisHEfront"),
59  toProductInstance = cms.string("HEfront"),
60  ),
61  cms.PSet(
62  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
63  fromProductInstance = cms.string("HGCDigisHEback"),
64  toProductInstance = cms.string("HEback"),
65  ),
66  )
67 )
68 simHFNoseUnsuppressedDigis = cms.EDAlias(
69  mix = cms.VPSet(
70  cms.PSet(
71  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
72  fromProductInstance = cms.string("HFNoseDigis"),
73  toProductInstance = cms.string("HFNose"),
74  ),
75  )
76 )
77 
78 simAPVsaturation = cms.EDAlias(
79  mix = cms.VPSet(
80  cms.PSet(type = cms.string('bool'))
81  )
82 )
83 
84 from Configuration.Eras.Modifier_run3_common_cff import run3_common
85 run3_common.toModify(simCastorDigis, mix = None)
86 
87 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
88 (~phase2_hgcal).toModify(simHGCalUnsuppressedDigis, mix = None)
89 
90 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
91 (premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
92  mix = {
93  0 : dict(type = "PHGCSimAccumulator"),
94  1 : dict(type = "PHGCSimAccumulator"),
95  2 : dict(type = "PHGCSimAccumulator"),
96  }
97 )
98 from Configuration.ProcessModifiers.runDependentForPixel_cff import runDependentForPixel
99 (runDependentForPixel).toModify(simSiPixelDigis, mix = _pixelCommon + [cms.PSet(type = cms.string('PixelSimHitExtraInfoedmDetSetVector'))])
100 
101 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
102 (~phase2_hfnose).toModify(simHFNoseUnsuppressedDigis, mix = None)
103 
104 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
105 phase1Pixel.toModify(simSiPixelDigis, mix = _pixelCommon + [cms.PSet(type = cms.string('PixelFEDChanneledmNewDetSetVector'))])
106 (phase1Pixel & runDependentForPixel).toModify(simSiPixelDigis, mix = _pixelCommon + [cms.PSet(type = cms.string('PixelSimHitExtraInfoedmDetSetVector'))] + [cms.PSet(type = cms.string('PixelFEDChanneledmNewDetSetVector'))])
107 
108 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
109 phase2_tracker.toModify(simSiStripDigis, mix = None)
110 phase2_tracker.toModify(simAPVsaturation, mix = None)
111 
112 # no castor,pixel,strip digis in fastsim
113 from Configuration.Eras.Modifier_fastSim_cff import fastSim
114 (fastSim & ~run3_common).toModify(simCastorDigis, mix = None)
115 fastSim.toModify(simSiPixelDigis, mix = None)
116 fastSim.toModify(simSiStripDigis, mix = None)
117 fastSim.toModify(simAPVsaturation, mix = None)