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 simSiPixelDigis = cms.EDAlias(
26  mix = cms.VPSet(
27  cms.PSet(type = cms.string('PixelDigiedmDetSetVector')),
28  cms.PSet(type = cms.string('PixelDigiSimLinkedmDetSetVector'))
29  )
30 )
31 simSiStripDigis = cms.EDAlias(
32  mix = cms.VPSet(
33  cms.PSet(type = cms.string('SiStripDigiedmDetSetVector')),
34  cms.PSet(type = cms.string('SiStripRawDigiedmDetSetVector')),
35  cms.PSet(type = cms.string('StripDigiSimLinkedmDetSetVector'))
36  )
37 )
38 simHGCalUnsuppressedDigis = cms.EDAlias(
39  mix = cms.VPSet(
40  cms.PSet(
41  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
42  fromProductInstance = cms.string("HGCDigisEE"),
43  toProductInstance = cms.string("EE"),
44  ),
45  cms.PSet(
46  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
47  fromProductInstance = cms.string("HGCDigisHEfront"),
48  toProductInstance = cms.string("HEfront"),
49  ),
50  cms.PSet(
51  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
52  fromProductInstance = cms.string("HGCDigisHEback"),
53  toProductInstance = cms.string("HEback"),
54  ),
55  )
56 )
57 simHFNoseUnsuppressedDigis = cms.EDAlias(
58  mix = cms.VPSet(
59  cms.PSet(
60  type = cms.string("DetIdHGCSampleHGCDataFramesSorted"),
61  fromProductInstance = cms.string("HFNoseDigis"),
62  toProductInstance = cms.string("HFNose"),
63  ),
64  )
65 )
66 
67 # no castor,pixel,strip digis in fastsim
68 from Configuration.Eras.Modifier_fastSim_cff import fastSim
69 fastSim.toModify(simCastorDigis, mix = None)
70 fastSim.toModify(simSiPixelDigis, mix = None)
71 fastSim.toModify(simSiStripDigis, mix = None)
72 
73 from Configuration.Eras.Modifier_run3_common_cff import run3_common
74 run3_common.toModify(simCastorDigis, mix = None)
75 
76 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
77 (~phase2_hgcal).toModify(simHGCalUnsuppressedDigis, mix = None)
78 
79 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
80 (premix_stage1 & phase2_hgcal).toModify(simHGCalUnsuppressedDigis,
81  mix = {
82  0 : dict(type = "PHGCSimAccumulator"),
83  1 : dict(type = "PHGCSimAccumulator"),
84  2 : dict(type = "PHGCSimAccumulator"),
85  }
86 )
87 
88 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
89 (~phase2_hfnose).toModify(simHFNoseUnsuppressedDigis, mix = None)